Coder Social home page Coder Social logo

Comments (9)

heaths avatar heaths commented on August 17, 2024 1

Take a look at https://www.npmjs.com/package/@azure/keyvault-secrets. Our new libraries support easier authentication including MSI. This would also reduce maintenance costs with the helper classes you've defined. See https://www.npmjs.com/package/@azure/keyvault-secrets#getting-a-secret for a simple example.

from get-keyvault-secrets.

N-Usha avatar N-Usha commented on August 17, 2024

Thanks Aaron. Please feel free to contribute.

from get-keyvault-secrets.

heaths avatar heaths commented on August 17, 2024

I'm going to start work on this and add tests since our libraries also make it easy to mock the clients.

from get-keyvault-secrets.

aaronba avatar aaronba commented on August 17, 2024

I'm going to start work on this and add tests since our libraries also make it easy to mock the clients.

I did some more research on this, and isn’t it possible to just have this work if we login with az login —identity from the Azure Login task. Hopefully the creds would flow through?

It would be great to have tests too.

from get-keyvault-secrets.

heaths avatar heaths commented on August 17, 2024

That feature work is planned.

from get-keyvault-secrets.

heaths avatar heaths commented on August 17, 2024

It's also work pointing out that a separate login step really isn't necessary since the clients will authenticate automatically as needed. A custom TokenCredential too read the same format could be added to a ChainedTokenCredential along with DefaultAzureCredential to be back-compat. This is what I was planning in the interim. That TokenCredential could also go in the shared lib.

from get-keyvault-secrets.

heaths avatar heaths commented on August 17, 2024

@actions-devops how are you running the agent as an MSI? I would like to set up a repro/test environment but haven't been able to figure out how to do this. Or it just to run "az login" using MSI?

from get-keyvault-secrets.

kanika1894 avatar kanika1894 commented on August 17, 2024

@actions-devops/ @aaronba any inputs here?

from get-keyvault-secrets.

github-actions avatar github-actions commented on August 17, 2024

This issue is idle because it has been open for 14 days with no activity.

from get-keyvault-secrets.

Related Issues (12)

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.