Skip to content

Commit 2ffe164

Browse files
committed
XWIKI-542: The cookie encryption keys should be randomly generated
* no need to generate and set the validation and encryption keys anymore
1 parent 4e80c26 commit 2ffe164

File tree

10 files changed

+0
-40
lines changed

10 files changed

+0
-40
lines changed

14/mariadb-tomcat/xwiki/docker-entrypoint.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,6 @@ function configure() {
133133
xwiki_set_cfg "xwiki.db" $DB_DATABASE
134134
fi
135135

136-
echo ' Generating authentication validation and encryption keys...'
137-
xwiki_set_cfg 'xwiki.authentication.validationKey' "$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
138-
xwiki_set_cfg 'xwiki.authentication.encryptionKey' "$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
139-
140136
echo ' Setting permanent directory...'
141137
xwiki_set_properties 'environment.permanentDirectory' '/usr/local/xwiki/data'
142138
echo ' Configure libreoffice...'

14/mysql-tomcat/xwiki/docker-entrypoint.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,6 @@ function configure() {
133133
xwiki_set_cfg "xwiki.db" $DB_DATABASE
134134
fi
135135

136-
echo ' Generating authentication validation and encryption keys...'
137-
xwiki_set_cfg 'xwiki.authentication.validationKey' "$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
138-
xwiki_set_cfg 'xwiki.authentication.encryptionKey' "$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
139-
140136
echo ' Setting permanent directory...'
141137
xwiki_set_properties 'environment.permanentDirectory' '/usr/local/xwiki/data'
142138
echo ' Configure libreoffice...'

14/postgres-tomcat/xwiki/docker-entrypoint.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,6 @@ function configure() {
133133
xwiki_set_cfg "xwiki.db" $DB_DATABASE
134134
fi
135135

136-
echo ' Generating authentication validation and encryption keys...'
137-
xwiki_set_cfg 'xwiki.authentication.validationKey' "$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
138-
xwiki_set_cfg 'xwiki.authentication.encryptionKey' "$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
139-
140136
echo ' Setting permanent directory...'
141137
xwiki_set_properties 'environment.permanentDirectory' '/usr/local/xwiki/data'
142138
echo ' Configure libreoffice...'

15.5/mariadb-tomcat/xwiki/docker-entrypoint.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,6 @@ function configure() {
133133
xwiki_set_cfg "xwiki.db" $DB_DATABASE
134134
fi
135135

136-
echo ' Generating authentication validation and encryption keys...'
137-
xwiki_set_cfg 'xwiki.authentication.validationKey' "$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
138-
xwiki_set_cfg 'xwiki.authentication.encryptionKey' "$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
139-
140136
echo ' Setting permanent directory...'
141137
xwiki_set_properties 'environment.permanentDirectory' '/usr/local/xwiki/data'
142138
echo ' Configure libreoffice...'

15.5/mysql-tomcat/xwiki/docker-entrypoint.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,6 @@ function configure() {
133133
xwiki_set_cfg "xwiki.db" $DB_DATABASE
134134
fi
135135

136-
echo ' Generating authentication validation and encryption keys...'
137-
xwiki_set_cfg 'xwiki.authentication.validationKey' "$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
138-
xwiki_set_cfg 'xwiki.authentication.encryptionKey' "$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
139-
140136
echo ' Setting permanent directory...'
141137
xwiki_set_properties 'environment.permanentDirectory' '/usr/local/xwiki/data'
142138
echo ' Configure libreoffice...'

15.5/postgres-tomcat/xwiki/docker-entrypoint.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,6 @@ function configure() {
133133
xwiki_set_cfg "xwiki.db" $DB_DATABASE
134134
fi
135135

136-
echo ' Generating authentication validation and encryption keys...'
137-
xwiki_set_cfg 'xwiki.authentication.validationKey' "$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
138-
xwiki_set_cfg 'xwiki.authentication.encryptionKey' "$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
139-
140136
echo ' Setting permanent directory...'
141137
xwiki_set_properties 'environment.permanentDirectory' '/usr/local/xwiki/data'
142138
echo ' Configure libreoffice...'

15/mariadb-tomcat/xwiki/docker-entrypoint.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,6 @@ function configure() {
133133
xwiki_set_cfg "xwiki.db" $DB_DATABASE
134134
fi
135135

136-
echo ' Generating authentication validation and encryption keys...'
137-
xwiki_set_cfg 'xwiki.authentication.validationKey' "$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
138-
xwiki_set_cfg 'xwiki.authentication.encryptionKey' "$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
139-
140136
echo ' Setting permanent directory...'
141137
xwiki_set_properties 'environment.permanentDirectory' '/usr/local/xwiki/data'
142138
echo ' Configure libreoffice...'

15/mysql-tomcat/xwiki/docker-entrypoint.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,6 @@ function configure() {
133133
xwiki_set_cfg "xwiki.db" $DB_DATABASE
134134
fi
135135

136-
echo ' Generating authentication validation and encryption keys...'
137-
xwiki_set_cfg 'xwiki.authentication.validationKey' "$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
138-
xwiki_set_cfg 'xwiki.authentication.encryptionKey' "$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
139-
140136
echo ' Setting permanent directory...'
141137
xwiki_set_properties 'environment.permanentDirectory' '/usr/local/xwiki/data'
142138
echo ' Configure libreoffice...'

15/postgres-tomcat/xwiki/docker-entrypoint.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,6 @@ function configure() {
133133
xwiki_set_cfg "xwiki.db" $DB_DATABASE
134134
fi
135135

136-
echo ' Generating authentication validation and encryption keys...'
137-
xwiki_set_cfg 'xwiki.authentication.validationKey' "$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
138-
xwiki_set_cfg 'xwiki.authentication.encryptionKey' "$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
139-
140136
echo ' Setting permanent directory...'
141137
xwiki_set_properties 'environment.permanentDirectory' '/usr/local/xwiki/data'
142138
echo ' Configure libreoffice...'

template/xwiki/docker-entrypoint.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,6 @@ function configure() {
133133
xwiki_set_cfg "xwiki.db" \$DB_DATABASE
134134
fi
135135

136-
echo ' Generating authentication validation and encryption keys...'
137-
xwiki_set_cfg 'xwiki.authentication.validationKey' "\$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
138-
xwiki_set_cfg 'xwiki.authentication.encryptionKey' "\$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
139-
140136
echo ' Setting permanent directory...'
141137
xwiki_set_properties 'environment.permanentDirectory' '/usr/local/xwiki/data'
142138
echo ' Configure libreoffice...'

0 commit comments

Comments
 (0)