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

KeyVault references - are returned values cached in the App Service #36650

Closed
neilamoran opened this issue Aug 7, 2019 — with docs.microsoft.com · 5 comments

Comments

Copy link

commented Aug 7, 2019 — with docs.microsoft.com

Can you please clarify whether the value returned would be cached on the App Service (at least up until a restart) or if it would incur a request to KeyVault every time that App Setting was queried by the code?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@RyanHill-MSFT

This comment has been minimized.

Copy link
Contributor

commented Aug 7, 2019

Thanks for the feedback! We are currently investigating and will update you shortly.

@RyanHill-MSFT

This comment has been minimized.

Copy link
Contributor

commented Aug 7, 2019

The settings/values are pulled from KeyVault once the app service process starts. If any changes to the values were made during runtime, the updated values wouldn't be picked up until the service was restarted. However, you could use the Keyvault SDK to retrieve key vault values and cache them yourself.

Hope this helps.

@RyanHill-MSFT

This comment has been minimized.

Copy link
Contributor

commented Aug 7, 2019

@joaopgrassi I was referring to the secrets in the vault. If one were to change the value of secret, the new value wouldn't be read until the app referencing the vault were restarted.

@RyanHill-MSFT

This comment has been minimized.

Copy link
Contributor

commented Aug 8, 2019

@neilamoran we will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

@joaopgrassi

This comment has been minimized.

Copy link

commented Aug 15, 2019

@RyanHill-MSFT thanks for clarifying. I typed my question but deleted it right after. I decided to just try it myself and then your answer made more sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.