StaticSecret#

pydantic model phalanx.models.secrets.StaticSecret#

Value of a static secret provided in a YAML file.

Parameters:

data (Any) –

Show JSON schema
{
   "title": "StaticSecret",
   "description": "Value of a static secret provided in a YAML file.",
   "type": "object",
   "properties": {
      "description": {
         "title": "Description of secret",
         "description": "Intended for human writers and ignored by tools",
         "type": "string"
      },
      "value": {
         "title": "Value of secret",
         "description": "Value of the secret, or `None` if it's not known",
         "type": "string",
         "writeOnly": true,
         "format": "password"
      }
   },
   "additionalProperties": false
}

Config:
  • extra: Extra = Extra.forbid

Fields:
field description: Optional[YAMLFoldedString] = None#

Intended for human writers and ignored by tools

field value: Optional[SecretStr] = None#

Value of the secret, or None if it’s not known

Constraints:
  • type = string

  • writeOnly = True

  • format = password