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

Change the cosmos db secret name from COSMOSDB_PRIMARY_KEY to a secret name supported by AKV #1839

Open
fvarga01 opened this issue Oct 14, 2021 · 0 comments
Labels
needs-triage For new issues that are raised to get reviewed by internal Microsoft employees

Comments

@fvarga01
Copy link

AKV requires alphanumeric characters. If a user adds AKV functionality to the existing app, they will see an error if they try to use the existing names:

c:>az keyvault secret set --vault-name "mykeyvault" --name "COSMOSDB_PRIMARY_KEY" --value "..."

Error observed: Parameter 'secret_name' must conform to the following pattern: '^[0-9a-zA-Z-]+$'.

Describe the solution you'd like
Change the setting name from COSMOSDB_PRIMARY_KEY to something without underscores, such as COSMOSDBPRIMARYKEY

more info:
https://docs.microsoft.com/en-us/aspnet/core/security/key-vault-configuration?view=aspnetcore-5.0#secret-storage-in-the-production-environment-with-azure-key-vault "Azure Key Vault secret names are limited to alphanumeric characters and dashes."

@ghost ghost added the needs-triage For new issues that are raised to get reviewed by internal Microsoft employees label Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage For new issues that are raised to get reviewed by internal Microsoft employees
Projects
None yet
Development

No branches or pull requests

1 participant