fix: use correct dummy ARN for claim-based OIDC provider when listing access keys (#21549)

fix: use correct dummy ARN for claim-based OIDC provider

When listing OIDC access keys, use the correct ARN when looking up the provider configuration for the claim-based provider.  Without this it was impossible to list access keys for a claim-based provider, only for a role-policy-based provider.

Fixes minio/minio#21548
This commit is contained in:
Ian Roberts 2025-09-06 18:38:46 +01:00 committed by GitHub
parent da532ab93d
commit d0f50cdd9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -173,6 +173,8 @@ func (a adminAPIHandlers) ListAccessKeysOpenIDBulk(w http.ResponseWriter, r *htt
if _, ok := accessKey.Claims[iamPolicyClaimNameOpenID()]; !ok {
continue // skip if no roleArn and no policy claim
}
// claim-based provider is in the roleArnMap under dummy ARN
arn = dummyRoleARN
}
matchingCfgName, ok := roleArnMap[arn]
if !ok {