You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use the AzureKeyVaultSettingSource in my BaseSettings class configuration as specified in the docs.
I am running into an issue were, if I have an environment variable referenced in the class whose key is defined with an underscore FOO_BAR, a SettingsError as thrown by AzureKeyVaultSetttingSource rather than the key value being initialized by the env_settings which is configured to have a higher priority.
I know azure keyvault does not support underscores in secret names so this is most likely the source of the error, but I figured that source priority would initialize the environment variables first so the azure source would not try and grab that value.
I am trying to use the AzureKeyVaultSettingSource in my BaseSettings class configuration as specified in the docs.
I am running into an issue were, if I have an environment variable referenced in the class whose key is defined with an underscore
FOO_BAR
, a SettingsError as thrown by AzureKeyVaultSetttingSource rather than the key value being initialized by the env_settings which is configured to have a higher priority.I know azure keyvault does not support underscores in secret names so this is most likely the source of the error, but I figured that source priority would initialize the environment variables first so the azure source would not try and grab that value.
Example:
python==3.10
pydantic-settings==2.5.2
pydantic==2.9.2
azure-identity==1.17.1
Error
Have I misconfigured/misunderstood something?
Does each setting iterate through each key independantly regardless of priority?
Thanks in advance! 😊
The text was updated successfully, but these errors were encountered: