Skip to content
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

Add support for resolving deployment config settings via Key Vault secrets #70

Merged
merged 1 commit into from
Aug 9, 2022

Conversation

JamesDawson
Copy link
Contributor

DeploymentConfig settings can now use the standard .NET configuration syntax to reference a value stored in Azure Key Vault Secrets:

@Microsoft.KeyVault(SecretUri=https://<vault-name>.vault.azure.net/secrets/<secret-name>)
@Microsoft.KeyVault(SecretUri=https://<vault-name>.vault.azure.net/secrets/<secret-name>/<version-id>)

For example:

@{
  $storageAccountName = "myStorageAccount"
  $storageAccessKey = "@Microsoft.KeyVault(SecretUri=https://myvault.vault.azure.net/secrets/StorageAccessKey)"
}

This initial implementation is built on an extensible mechanism for supporting other such external resolution scenarios.

…plements the first such handler to lookup a value from Azure Key Vault using its 'SecretUri'.
@HowardvanRooijen
Copy link
Contributor

Very cool!

Copy link
Contributor

@HowardvanRooijen HowardvanRooijen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@JamesDawson JamesDawson merged commit 76e03ad into main Aug 9, 2022
@JamesDawson JamesDawson deleted the feature/keyvault-config-support branch August 9, 2022 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants