secretconfig¶
AttrDict for specifying user credentials or secrets.
TogglableSecretStr = Annotated[SecretStr, PlainSerializer(lambda value: value.get_secret_value() if settings.expose_secrets else str(value), return_type=str, when_used='json-unless-none')]
module-attribute
¶
Annotated type alias for a secret string that can be toggled to be exposed or not.
SecretConfig
¶
Bases: BaseModel
Simple model for handling secret in other config-models.
Source code in oteapi/models/secretconfig.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
|