V8.00.000.2025.06.17
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -68,20 +68,24 @@ partition_encryption() {
|
||||
|
||||
declare -a ary_luks_opts=()
|
||||
|
||||
### SECRETS handling ---------------------------------------------------------------------------------------------------------
|
||||
guard_trace on
|
||||
printf '%s' "${CISS_SECRET_LUKS_BOOT}" >| "${DIR_CNF}/password_luks_boot.txt" && chmod 0600 "${DIR_CNF}/password_luks_boot.txt"
|
||||
printf '%s' "${CISS_SECRET_LUKS_COMMON}" >| "${DIR_CNF}/password_luks_common.txt" && chmod 0600 "${DIR_CNF}/password_luks_common.txt"
|
||||
unset CISS_SECRET_LUKS_BOOT CISS_SECRET_LUKS_COMMON
|
||||
guard_trace on
|
||||
### SECRETS handling ---------------------------------------------------------------------------------------------------------
|
||||
|
||||
if [[ -n "${VAR_LUKS_URL}" ]]; then
|
||||
|
||||
VAR_LUKS_URL=${VAR_LUKS_URL%/}
|
||||
|
||||
### SECRETS handling -------------------------------------------------------------------------------------------------------
|
||||
guard_trace on
|
||||
var_temp_plain_nc_auth="${CISS_SECRET_LUKS_BACKUP}"
|
||||
unset CISS_SECRET_LUKS_BACKUP
|
||||
guard_trace on
|
||||
### SECRETS handling -------------------------------------------------------------------------------------------------------
|
||||
|
||||
do_log "debug" "file_only" "3220() Var: [var_temp_plain_nc_auth] set."
|
||||
|
||||
@@ -272,6 +276,7 @@ partition_encryption() {
|
||||
|
||||
if [[ -n "${VAR_LUKS_URL}" ]]; then
|
||||
|
||||
### SECRETS handling ---------------------------------------------------------------------------------------------------
|
||||
guard_trace on
|
||||
|
||||
if curl --silent --show-error --fail --retry 2 "${VAR_LUKS_URL}/public.php/webdav/${var_luks_backup_name}" \
|
||||
@@ -288,6 +293,7 @@ partition_encryption() {
|
||||
fi
|
||||
|
||||
guard_trace off
|
||||
### SECRETS handling ---------------------------------------------------------------------------------------------------
|
||||
|
||||
fi
|
||||
|
||||
@@ -295,9 +301,11 @@ partition_encryption() {
|
||||
|
||||
done
|
||||
|
||||
### SECRETS handling ---------------------------------------------------------------------------------------------------------
|
||||
guard_trace on
|
||||
[[ -n "${VAR_LUKS_URL}" ]] && unset var_temp_plain_nc_auth
|
||||
guard_trace off
|
||||
### SECRETS handling ---------------------------------------------------------------------------------------------------------
|
||||
|
||||
ciss_secrets_wiper "${DIR_CNF}/password_luks_boot.txt"
|
||||
ciss_secrets_wiper "${DIR_CNF}/password_luks_common.txt"
|
||||
|
||||
Reference in New Issue
Block a user