MerryFairyTalesAD440 / API

1 stars 2 forks source link

key vault url should be an application setting #45

Open mviencek opened 5 years ago

mviencek commented 5 years ago

key vault url and key should be an application setting and not hard coded.

var secret = await keyVaultClient.GetSecretAsync("https://key-vault-for-container.vault.azure.net/secrets/connection-string/");
mviencek commented 5 years ago

With the function config keys being KEY_VAULT_URI STORAGE_NAME

niss3n commented 5 years ago

I moved everything into an application setting as well as updated the Azure application settings to read the same values when published. Here is a good article I found useful LINK. I am having an issue with the ad440 key vault. I am getting a "forbidden" error. I will message DevOps and see if I can get this fixed, or adjust my code accordingly.