secrets: widen the token mask to 10 stars and label first/last 10

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-09-18 11:59:02 -04:00
co-authored by Claude Opus 5
parent cb7ab17769
commit ffedc84cfb
+1 -1
View File
@@ -86,7 +86,7 @@ ask() {
mask() {
printf '%s' "$1" | awk '{ n = length($0)
if (n <= 20) printf "%s (%d chars)", "(too short)", n
else printf "%s**%s (%d chars)", substr($0, 1, 10), substr($0, n - 9), n }'
else printf "%s**********%s (first 10 + last 10 of %d chars)", substr($0, 1, 10), substr($0, n - 9), n }'
}
if [ -z "$OP_SERVICE_ACCOUNT_TOKEN" ] && [ -f "$SECRETS_ENV" ]; then