Giter Club home page Giter Club logo

Comments (5)

bober2000 avatar bober2000 commented on June 27, 2024

Seems to be duplicate of #172 but that issue was closed and it seems not resolved

from aws-secrets-manager-credentials-provider-plugin.

chriskilding avatar chriskilding commented on June 27, 2024

It looks like the role is injected from the AWS environment. I'm just wondering if somehow AWS might be changing the environment under the hood in some cases, which might change the role used.

If you wanted to debug this, you could potentially set the role to use explicitly in the plugin's configuration:

unclassified:
  awsCredentialsProvider:
    client:
      credentialsProvider:
        assumeRole:
          roleArn: "arn:aws:iam::111111111111:role/foo"
          roleSessionName: "jenkins"

This should hopefully keep it locked into the role you specify.

from aws-secrets-manager-credentials-provider-plugin.

bober2000 avatar bober2000 commented on June 27, 2024

@chriskilding I've tried that - but than I'm getting other error that arn:aws:sts::000000000:assumed-role/eks-node-group-20230123082959723000000001/i-0259469284873172d is not authorized to perform: assume role
I also tried to give needed permissions to node-group role - error message in logs are gone - but I cant see credentials in list

from aws-secrets-manager-credentials-provider-plugin.

chriskilding avatar chriskilding commented on June 27, 2024

When this error occurs, how are you accessing the credentials? (It can make a difference where you do this from.)

E.g. are you viewing the credentials in the Web UI (i.e. the /jenkins/manage/credentials/ screen)? Or does this happen when you access a credential inside a job?

from aws-secrets-manager-credentials-provider-plugin.

bober2000 avatar bober2000 commented on June 27, 2024

@chriskilding I'm trying to access credentials in Web UI first.
But in general I want to use this plugin together with JCasc to create list of secrets and use them in Jobs

from aws-secrets-manager-credentials-provider-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.