SourceSecretGenerateRules#
- pydantic model phalanx.models.secrets.SourceSecretGenerateRules#
Rules for generating a secret from another secret.
- Parameters:
data (
Any
) –
Show JSON schema
{ "title": "SourceSecretGenerateRules", "description": "Rules for generating a secret from another secret.", "type": "object", "properties": { "type": { "enum": [ "bcrypt-password-hash", "mtime" ], "title": "Type", "type": "string" }, "source": { "title": "Source", "type": "string" } }, "required": [ "type", "source" ] }
- Fields:
type (Literal[
- field source: str [Required]#
Key of secret on which this secret is based.
This may only be set by secrets of type
bcrypt-password-hash
ormtime
.
- field type: Literal[SecretGenerateType.bcrypt_password_hash, SecretGenerateType.mtime] [Required]#
Type of secret.
- generate(source)#
- Parameters:
source (
SecretStr
) –- Return type:
SecretStr