Variable Providers #9
PascalSenn
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Variable Providers
Variable providers are typically defined in the
.confixrc
or.confix.repository
files but can also be defined in.confix.project
if only have a simple setup without a.confix.repository
The
variableProviders
property determines the variable providers that are available for your project. These providers assist in resolving variables present in your configuration files.Each variable provider is identified by a name, which is how it's referenced in your config files. For instance, if you have a variable provider defined as
"name": "secret"
, it can be referenced in your configuration files using$secret
.The
type
field defines the type of the provider. Each type carries its specific configuration. For example, theazure-keyvault
type would require configuration related to Azure Keyvault, while thesecret
type would need details about public and private keys.The
environmentOverride
attribute lets you override provider-specific configuration based on the environment. This can be useful when, for instance, a provider has different URLs for different environments like development, staging, or production.Here is an example JSON demonstrating the structure of the
variableProviders
property:In this example, the
keyvault
,vault
,secret
, andlocal
variable providers are defined, each with their type and environment-specific overrides where applicable.Beta Was this translation helpful? Give feedback.
All reactions