Flush redacted deployment progress without buffering
Homelab Main / validate (push) Waiting to run Details
Homelab Main / running-update (push) Blocked by required conditions Details
Homelab Main / debian-ops (push) Blocked by required conditions Details

This commit is contained in:
juvenal.diaz 2026-11-02 16:51:05 -06:00
parent 4998920afd
commit 1e912aa806
1 changed files with 9 additions and 1 deletions

View File

@ -107,7 +107,15 @@ jeannie_step_latest_progress_line() {
}
redact_sensitive_output() {
sed -E \
# Redact before logging, but flush each line so quiet/long-running Helm
# operations do not leave the progress display on a buffered plan line.
local -a sed_args=(-E)
if [[ "$(uname -s)" == "Darwin" ]]; then
sed_args+=(-l)
else
sed_args+=(-u)
fi
sed "${sed_args[@]}" \
-e 's/(GITEA_BOOTSTRAP_PASSWORD=)["'\'']?[^"'\''[:space:]]+["'\'']?/\1[REDACTED]/g' \
-e 's/(PIHOLE_WEBPASSWORD=)["'\'']?[^"'\''[:space:]]+["'\'']?/\1[REDACTED]/g' \
-e 's/(COSIGN_PASSWORD=)["'\'']?[^"'\''[:space:]]+["'\'']?/\1[REDACTED]/g' \