A feature should be added to the starter that allows secrets to be loaded only on startup. The not setting refreshing the refresh doesn't work when using another external configuration provider. i.e. spring-clould-azure's Azure App Configuration provider. When Azure App Configuration reloads configurations the Key Vault Secrets are also reloaded, which isn't desired.
Environment
azure-keyvault-secrets-spring-boot-starter
Java version:
Summary
A feature should be added to the starter that allows secrets to be loaded only on startup. The not setting refreshing the refresh doesn't work when using another external configuration provider. i.e. spring-clould-azure's Azure App Configuration provider. When Azure App Configuration reloads configurations the Key Vault Secrets are also reloaded, which isn't desired.
Also mentioned here: https://github.com/Azure/AppConfiguration/issues/306#issuecomment-613217454
Reproduce steps
Using both azure-keyvault-secrets-spring-boot-starter and spring-cloud-azure-appconfiguration-config-web results in unwanted key vault reloads.
Expected Results
Be able to configure azure-keyvault-secrets-spring-boot-starter to only load on startup.
Actual Results
azure-keyvault-secrets-spring-boot-starter is loaded every time App Configuration reloads.