Skip to content

Commit

Permalink
Update 998_dump_variables.sh
Browse files Browse the repository at this point in the history
Run init/default/998_dump_variables.sh
only in debugscripts mode where the 'set -x' output in general
already reveals possibly confidential information and additionally
suppress output that contains 'pass' or 'key' or 'crypt' (ignore case)
to skip output e.g. for BACKUP_PROG_CRYPT_KEY
or SSH_ROOT_PASSWORD or  LUKS_CRYPTSETUP_OPTIONS
cf. #2967
  • Loading branch information
jsmeix committed Apr 5, 2023
1 parent c5b4573 commit 95f3082
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion usr/share/rear/init/default/998_dump_variables.sh
@@ -1 +1,11 @@
Debug "Runtime Configuration:$LF$(declare -p)"

# Output all variable values into the log file
# which may also output possibly confidential values
# so do this only in debugscripts mode where the 'set -x' output
# in general already reveals possibly confidential information:
test "$DEBUGSCRIPTS" || return 0

# Suppress output that contains 'pass' or 'key' or 'crypt' (ignore case) to skip output
# e.g. for BACKUP_PROG_CRYPT_KEY or SSH_ROOT_PASSWORD or LUKS_CRYPTSETUP_OPTIONS
# cf. https://github.com/rear/rear/issues/2967
Debug "Runtime Configuration:$LF$( declare -p | egrep -vi 'pass|key|crypt' )"

0 comments on commit 95f3082

Please sign in to comment.