Skip to content

Fetch secret from existing kv using msi #3618

Answered by brwilkinson
Strijd asked this question in Q&A
Discussion options

You must be logged in to vote

Only a few specific resources E.g. Application Gateway support this, however those have implemented on the Application Gateway itself, since it can be assigned with a System OR User Assigned Managed Identity, which is delegated Certs/Secrets/Get via RBAC or Access Policy to the Keyvault to pull a certificate Etc.

Currently the only way to access secrets via a 'Deployment' is with parameters, which will have the `@secure' decorator.

e.g. So what you have in your kv.bicep Module file.

@secure()
param myPassword string

However that will be accessed under the permissions of the account that runs the Deployment. it should just need RBAC or Access Policy assigned to get secrets, plus action: MI…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@brwilkinson
Comment options

@brwilkinson
Comment options

Answer selected by brwilkinson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants