-
Notifications
You must be signed in to change notification settings - Fork 762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bicep params support for Key Vault secrets #10652
Comments
Proposal: Adding
|
I'm at a blocker with a project that I am working on. I've tried a few various methods which either don't work or simply makes the secrets appear in plain text. Is there any confirmation when the support will be available? |
## Contributing a feature * [x] I have opened a new issue for the proposal, or commented on an existing one, and ensured that the Bicep maintainers are good with the design of the feature being implemented * [x] I have included "Fixes #{issue_number}" in the PR description, so GitHub can link to the issue and close it when the PR is merged * [x] I have appropriate test coverage of my new feature Fixes #10652 Design Proposal for the `getSecret() support in .bicepparam files` can be found on; #10652 (comment) `getSecret()` helper is added to `az` namespace, so, it can be used in `.bicepparam` files as; `param sqlPwd = getSecret('<subscriptionId>', '<resourceGroupName>', '<keyVaultName>', '<secretName>')` or, with the `az` namespace alias `param webPwd = az.getSecret('<subscriptionId>', '<resourceGroupName>', '<keyVaultName>', '<secretName>', '<secretVersion>')` I added tests to make sure the functionality is working as expected. IntegrationTests and UnitTests projects are passing; `Cli.IntegrationTests` ![image](https://github.com/Azure/bicep/assets/118744/03a2573e-441b-4dac-aaac-2663089998ad) `Core.IntegrationTests` ![image](https://github.com/Azure/bicep/assets/118744/d9a3b9ae-b0b4-40e4-887a-ea907213d59b) `Decompiler.IntegrationTests` ![image](https://github.com/Azure/bicep/assets/118744/01ba311f-40a6-495d-b1e8-52e405bddb1d) `LangServer.IntegrationTests` ![image](https://github.com/Azure/bicep/assets/118744/81ba1fb2-8572-40fb-8616-c00d2135e95a) `Cli.UnitTests` ![image](https://github.com/Azure/bicep/assets/118744/5e69b415-5fed-4996-859d-e51613af05e5) `Core.UnitTests` ![image](https://github.com/Azure/bicep/assets/118744/1791a638-e9d6-403a-8351-3c27998aff6c) `Decompiler.UnitTests` ![image](https://github.com/Azure/bicep/assets/118744/08287f78-46b2-46bd-8e72-bcf433bff3f2) `LangServer.UnitTests` ![image](https://github.com/Azure/bicep/assets/118744/915545e7-da49-4c23-88ac-9c8fb53c8a6f) ###### Microsoft Reviewers: [Open in CodeFlow](https://portal.fabricbot.ms/api/codeflow?pullrequest=https://github.com/Azure/bicep/pull/10879) ###### Microsoft Reviewers: codeflow:open?pullrequest=#11236
I can use the "getSecret()" function in Bicep params file to access Key Vault Secrets
The text was updated successfully, but these errors were encountered: