Reduce Minio access key minimum length to 3 (#5478)

This is a generic minimum value. The current reason is to support
Azure blob storage accounts name whose length is less than 5. 3 is the
minimum length for Azure.
This commit is contained in:
A. Elleuch
2018-02-02 04:43:30 +01:00
committed by Nitish Tiwari
parent 2afd196c83
commit da2faa19a1
5 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -39,8 +39,8 @@ func testAuthenticate(authType string, t *testing.T) {
secretKey string
expectedErr error
}{
// Access key (less than 5 chrs) too small.
{"user", cred.SecretKey, auth.ErrInvalidAccessKeyLength},
// Access key (less than 3 chrs) too small.
{"u1", cred.SecretKey, auth.ErrInvalidAccessKeyLength},
// Secret key (less than 8 chrs) too small.
{cred.AccessKey, "pass", auth.ErrInvalidSecretKeyLength},
// Authentication error.