-
Notifications
You must be signed in to change notification settings - Fork 73
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
App Configuration references in App Configuration #852
Comments
@itsdani An App configuration is intended to centralize the management of configurations. Your apps could refer to a single config item for the same value. If you want to group your configurations for multiple apps, you could consider to use keyPrefix or label . https://learn.microsoft.com/en-us/azure/azure-app-configuration/howto-best-practices#key-groupings Give label grouping as an example, you could label the common configuration that can be used across all apps with "common"
Can label the app-specific configuration with appName.
In
In
|
Thank you for your suggestion! AppConfiguration is indeed looking into enabling internal and external configuration references. I can think of multiple scenarios where these can be quite useful. Though, I don't have ETA at the moment, I would like to share a few thoughts regarding that:
Let me know your thoughts as well. On a side note, regarding simplified configuration composition, have you checked AppConfiguration Snapshots? It may help to address certain hierarchical models as well. |
Instead of using label, keyPrefix should be suitable for hierarchic namespaces given that we don't support configuration reference yet. You could group the common configuration that can be used across all apps with "common" prefix
Can group the app-specific configuration with appName.
In
In
|
If supports external configuration reference, need to consider the access permission. |
Based on how KeyVault references are resolved, the access control is independent with identity provided by the caller (ex. configuration providers). It makes sense configuration references to follow similar logic and security isolation. |
Thanks for the suggestions! We have thought about using labels for application-grouping, but we would like to reserve labels for environments (prod/staging/etc). Another issue is that we might want to use application-specific naming for the variables instead of using the common name everywhere (although this might be avoidable), and the config references would be perfect for this. For now we will most likely keep common values in a key vault and use key vault references for the applications where needed. Another thing to consider with references and snapshots is that the snapshot currently doesn't save the value of the reference, but the reference itself, which can cause unexpected changes in an otherwise immutable snapshot. In a key vault reference this can be mitigated by using references to fixed versions, although it's a bit inconvenient. I'm not sure how an app-config reference should work with snapshots. |
Currently App Configuration supports adding Azure Key Vault references, and the providers can resolve those values. Azure App Service configuration also supports references like this, but it works with both Key Vault references and App Configuration references.
We would like to have App Configuration references to other App Configuration values, so basically we would like to create aliases inside App Configuration.
The use case is that we have some configuration values that are used by multiple applications and we would like to specify these values at a single place (so if we need to change it, we don't have to find all the configs and modify all of them). An example of this could be the URL of a service endpoint that is used in multiple applications.
On the other hand, we would like to use hierarchic namespaces (or use another App Configuraton for each app) to group the configs of an app. So in the example, we would specify the URL in an app config, and in the application-specific config we would reference that one value as the single source of truth.
Example App Config reference:
Main config value
Similar Key Vault reference
Compared to a Key Vault reference, the content type would use
appconfigref
instead ofkeyvaultref
, and the uri in the value would point to an App Config value.The text was updated successfully, but these errors were encountered: