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": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "description": "Configuration only applies if this Helm chart setting is set to a true value",
         "title": "Condition"
      },
      "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 condition: str | None = None (alias 'if')#

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

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. :rtype: SecretStr