mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
export IAM: include site replicator svcacct (#15339)
This commit is contained in:
parent
ed02ee4ef4
commit
957e3ed729
@ -1674,11 +1674,6 @@ func (a adminAPIHandlers) ExportIAM(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
svcAccts := make(map[string]madmin.SRSvcAccCreate)
|
svcAccts := make(map[string]madmin.SRSvcAccCreate)
|
||||||
for user, acc := range serviceAccounts {
|
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)
|
claims, err := globalIAMSys.GetClaimsForSvcAcc(ctx, acc.Credentials.AccessKey)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
writeErrorResponse(ctx, w, exportError(ctx, err, iamFile, ""), r.URL)
|
writeErrorResponse(ctx, w, exportError(ctx, err, iamFile, ""), r.URL)
|
||||||
|
Loading…
Reference in New Issue
Block a user