export IAM: include site replicator svcacct (#15339)

This commit is contained in:
Poorna 2022-07-18 17:38:53 -07:00 committed by GitHub
parent ed02ee4ef4
commit 957e3ed729
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1674,11 +1674,6 @@ func (a adminAPIHandlers) ExportIAM(w http.ResponseWriter, r *http.Request) {
}
svcAccts := make(map[string]madmin.SRSvcAccCreate)
for user, acc := range serviceAccounts {
if user == siteReplicatorSvcAcc {
// skip the site replicate svc account as it should be created automatically if
// site replication is enabled.
continue
}
claims, err := globalIAMSys.GetClaimsForSvcAcc(ctx, acc.Credentials.AccessKey)
if err != nil {
writeErrorResponse(ctx, w, exportError(ctx, err, iamFile, ""), r.URL)