2 parents dae580b + 5da8b77 commit 4e158b5Copy full SHA for 4e158b5
1 file changed
pkg/utils/util.go
@@ -425,7 +425,7 @@ func UUID() (string, error) {
425
func RedactAuthToken(token string) string {
426
// ensure there are enough characters or we'll end up giving away the whole token
427
if len(token) > 30 {
428
- return fmt.Sprintf("%s…%s", token[0:10], token[len(token)-5:])
+ return fmt.Sprintf("%s...%s", token[0:10], token[len(token)-5:])
429
}
430
431
return "[REDACTED]"
0 commit comments