CredentialsRequest CR for mounting secrets from AWS Secrets Manager is failing
Issue
-
While creating
CredentialsRequest
CR for mountingsecrets
fromAWS Secrets Manager
, CR is failing with the below error,CredentialsRequest aws-provider-test was failing - aws-provider status: conditions: - lastProbeTime: '2025-03-06T17:31:03Z' lastTransitionTime: '2025-03-06T17:31:03Z' message: 'failed to grant creds: error syncing creds in mint-mode: AccessDenied: User: arn:aws:iam::<user> is not authorized to perform: iam:ListAccessKeys on resource: user <username> because no identity-based policy allows the iam:ListAccessKeys action, status code: 403' reason: CredentialsProvisionFailure status: 'True' type: CredentialsProvisionFailure
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.