$ unset FOURNOS_NAMESPACE
$ hacks/sync_vault_secrets.py
Traceback (most recent call last):
File "/var/home/kpouget/openshift/fournos/hacks/sync_vault_secrets.py", line 50, in <module>
from fournos.settings import settings
File "/var/home/kpouget/openshift/fournos/fournos/settings.py", line 27, in <module>
settings = Settings()
File "/var/home/kpouget/openshift/fournos/.venv/lib64/python3.14/site-packages/pydantic_settings/main.py", line 242, in __init__
super().__init__(**__pydantic_self__.__class__._settings_build_values(sources, init_kwargs))
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/home/kpouget/openshift/fournos/.venv/lib64/python3.14/site-packages/pydantic/main.py", line 250, in __init__
validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self)
pydantic_core._pydantic_core.ValidationError: 1 validation error for Settings
namespace
Field required [type=missing, input_value={'secrets_namespace': 'psap-secrets'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.12/v/missing
and works well when set
issue comes from the import of
fournos/settings.py