SimpleSecretGenerateRules#
- pydantic model phalanx.models.secrets.SimpleSecretGenerateRules#
Rules for generating a secret value with no source information.
- Parameters:
data (
Any
) –
Show JSON schema
{ "title": "SimpleSecretGenerateRules", "description": "Rules for generating a secret value with no source information.", "type": "object", "properties": { "type": { "description": "Type of secret", "enum": [ "password", "gafaelfawr-token", "fernet-key", "rsa-private-key" ], "title": "Secret type", "type": "string" } }, "additionalProperties": false, "required": [ "type" ] }
- Config:
populate_by_name: bool = True
extra: str = forbid
- Fields:
- field type: Literal[SecretGenerateType.password, SecretGenerateType.gafaelfawr_token, SecretGenerateType.fernet_key, SecretGenerateType.rsa_private_key] [Required]#
Type of secret
- generate()#
Generate a new secret following these rules.
- Return type:
SecretStr