Flush redacted deployment progress without buffering
This commit is contained in:
parent
4998920afd
commit
1e912aa806
|
|
@ -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' \
|
||||
|
|
|
|||
Loading…
Reference in New Issue