ConditionalSimpleSecretGenerateRules#

pydantic model phalanx.models.secrets.ConditionalSimpleSecretGenerateRules#

Conditional rules for generating a secret value with no source.

Parameters:

data (Any) –

Show JSON schema
{
   "title": "ConditionalSimpleSecretGenerateRules",
   "description": "Conditional rules for generating a secret value with no source.",
   "type": "object",
   "properties": {
      "if": {
         "title": "Condition",
         "description": "Configuration only applies if this Helm chart setting is set to a true value",
         "type": "string"
      },
      "type": {
         "title": "Type",
         "enum": [
            "password",
            "gafaelfawr-token",
            "fernet-key",
            "rsa-private-key"
         ],
         "type": "string"
      }
   },
   "required": [
      "type"
   ],
   "additionalProperties": false
}

Config:
  • allow_population_by_field_name: bool = True

  • extra: Extra = Extra.forbid

Fields:
field condition: Optional[str] = None (alias 'if')#

Configuration only applies if this Helm chart setting is set to a true value

field type: Literal[<SecretGenerateType.password: 'password'>, <SecretGenerateType.gafaelfawr_token: 'gafaelfawr-token'>, <SecretGenerateType.fernet_key: 'fernet-key'>, <SecretGenerateType.rsa_private_key: 'rsa-private-key'>] [Required]#

Type of secret.

generate()#

Generate a new secret following these rules.

Return type:

SecretStr