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:
+1
-1
@@ -86,7 +86,7 @@ ask() {
|
|||||||
mask() {
|
mask() {
|
||||||
printf '%s' "$1" | awk '{ n = length($0)
|
printf '%s' "$1" | awk '{ n = length($0)
|
||||||
if (n <= 20) printf "%s (%d chars)", "(too short)", n
|
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
|
if [ -z "$OP_SERVICE_ACCOUNT_TOKEN" ] && [ -f "$SECRETS_ENV" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user