- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for IsAccessKeyValid (0.05 sec)
-
cmd/signature-v4-parser.go
if len(credElements) < 5 { return ch, ErrCredMalformed } accessKey := strings.Join(credElements[:len(credElements)-4], SlashSeparator) // The access key may contain one or more `/` if !auth.IsAccessKeyValid(accessKey) { return ch, ErrInvalidAccessKeyID } // Save access key id. cred := credentialHeader{ accessKey: accessKey, } credElements = credElements[len(credElements)-4:] var e error
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Oct 10 18:57:35 UTC 2025 - 9.4K bytes - Viewed (0) -
cmd/batch-replicate.go
return c.AccessKey == "" && c.SecretKey == "" && c.SessionToken == "" } // Validate validates if credentials are valid func (c BatchJobReplicateCredentials) Validate() error { if !auth.IsAccessKeyValid(c.AccessKey) || !auth.IsSecretKeyValid(c.SecretKey) { return errInvalidArgument } return nil } // BatchJobReplicateTarget describes target element of the replication job that receives
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Thu Aug 01 12:53:30 UTC 2024 - 6.3K bytes - Viewed (0) -
internal/auth/credentials_test.go
}{ {alphaNumericTable[:accessKeyMinLen], true}, {alphaNumericTable[:accessKeyMinLen+1], true}, {alphaNumericTable[:accessKeyMinLen-1], false}, } for i, testCase := range testCases { result := IsAccessKeyValid(testCase.accessKey) if result != testCase.expectedResult { t.Fatalf("test %v: expected: %v, got: %v", i+1, testCase.expectedResult, result) } } } func TestIsSecretKeyValid(t *testing.T) {Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 5.4K bytes - Viewed (0)