FIx unexpected behavior when creating service account (#19036)

This commit is contained in:
Taran Pelkey
2024-02-13 10:31:43 +00:00
committed by GitHub
parent 6b63123ca9
commit 4d94609c44
4 changed files with 35 additions and 7 deletions

View File

@@ -57,8 +57,10 @@ const (
// Common errors generated for access and secret key validation.
var (
ErrInvalidAccessKeyLength = fmt.Errorf("access key length should be between %d and %d", accessKeyMinLen, accessKeyMaxLen)
ErrInvalidSecretKeyLength = fmt.Errorf("secret key length should be between %d and %d", secretKeyMinLen, secretKeyMaxLen)
ErrInvalidAccessKeyLength = fmt.Errorf("access key length should be between %d and %d", accessKeyMinLen, accessKeyMaxLen)
ErrInvalidSecretKeyLength = fmt.Errorf("secret key length should be between %d and %d", secretKeyMinLen, secretKeyMaxLen)
ErrNoAccessKeyWithSecretKey = fmt.Errorf("access key must be specified if secret key is specified")
ErrNoSecretKeyWithAccessKey = fmt.Errorf("secret key must be specified if access key is specified")
)
// AnonymousCredentials simply points to empty credentials