CredentialsRequest CR for mounting secrets from AWS Secrets Manager is failing

Solution Verified - Updated -

Issue

  • While creating CredentialsRequest CR for mounting secrets from AWS 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content