mirror of
https://github.com/pgsty/minio.git
synced 2026-08-12 09:40:28 +03:00
export IAM: include site replicator svcacct (#15339)
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user