mirror of
https://github.com/minio/minio.git
synced 2025-11-21 18:26:04 -05:00
validate keys before updating for IAM user (#7720)
New secretkey should be validated before updating it on the config. Fixes #7715
This commit is contained in:
@@ -709,6 +709,7 @@ func testSetAuthWebHandler(obj ObjectLayer, instanceType string, t TestErrHandle
|
||||
}{
|
||||
{"", "", "", "", false},
|
||||
{"1", "1", "1", "1", false},
|
||||
{credentials.AccessKey, credentials.SecretKey, "azerty", "bar", false},
|
||||
{credentials.AccessKey, credentials.SecretKey, "azerty", "foooooooooooooo", true},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user