mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
Do not allow adding root user to IAM subsystem (#16803)
This commit is contained in:
@@ -627,6 +627,11 @@ func (s *TestSuiteIAM) TestSTSForRoot(c *check) {
|
||||
if !gotBuckets.Equals(shouldHaveBuckets) {
|
||||
c.Fatalf("root user should have access to all buckets")
|
||||
}
|
||||
|
||||
// This must fail.
|
||||
if err := userAdmClient.AddUser(ctx, globalActiveCred.AccessKey, globalActiveCred.SecretKey); err == nil {
|
||||
c.Fatal("AddUser() for root credential must fail via root STS creds")
|
||||
}
|
||||
}
|
||||
|
||||
// SetUpLDAP - expects to setup an LDAP test server using the test LDAP
|
||||
|
||||
Reference in New Issue
Block a user