You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: sanitize env values in debug logs and fix GetEnvDuration doc
Address review feedback:
1. Sanitize raw env values using sanitize.TruncateSecret() in all 3
debug log lines (GetEnvInt, GetEnvDuration, GetEnvBool). Env vars
could contain secrets, and debug logs are also written to the file
logger, so full values should never be persisted.
2. Update GetEnvDuration doc comment to mention that zero/negative
durations also fall back to defaultValue (matching the d > 0
condition in the code and the existing GetEnvInt doc pattern).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments