constellation_utils.secrets._config

Load the packaged YAML config for the active profile.

Config files live inside the package (src/constellation_utils/config/) and ship together with the wheel. They are git-tracked because they contain only op://... URIs — not secrets. The actual credential values come from the secrets backend at runtime.

Module Contents

Functions

current_profile

Return the active profile from the env, defaulting to ‘testing’.

load_profile

Load and parse the YAML config for the given profile (or env-active).

Data

API

constellation_utils.secrets._config.VALID_PROFILES

(‘testing’, ‘production’)

constellation_utils.secrets._config.DEFAULT_PROFILE

‘testing’

constellation_utils.secrets._config.current_profile() str[source]

Return the active profile from the env, defaulting to ‘testing’.

constellation_utils.secrets._config.load_profile(profile: str | None = None) dict[str, Any][source]

Load and parse the YAML config for the given profile (or env-active).