fix: allow root credentials to generate STS, service accounts (#12210)

This commit is contained in:
Harshavardhana
2021-05-04 11:58:19 -07:00
committed by GitHub
parent 804a23a06d
commit 67001e3ce9
3 changed files with 20 additions and 24 deletions

View File

@@ -490,12 +490,6 @@ func (a adminAPIHandlers) AddServiceAccount(w http.ResponseWriter, r *http.Reque
return
}
// Disallow creating service accounts by root user.
if createReq.TargetUser == globalActiveCred.AccessKey {
writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAdminAccountNotEligible), r.URL)
return
}
var (
targetUser string
targetGroups []string