VaultTokenCredentials

pydantic model phalanx.models.vault.VaultTokenCredentials

Credentials for Vault access using a token.

Parameters:

data (Any)

Show JSON schema
{
   "title": "VaultTokenCredentials",
   "description": "Credentials for Vault access using a token.",
   "type": "object",
   "properties": {
      "token": {
         "title": "Token",
         "type": "string"
      }
   },
   "required": [
      "token"
   ]
}

Fields:
field token: str [Required]

Vault token.

to_kubernetes_secret(name)

Format the data as a secret for vault-secrets-operator.

Parameters:

name (str) – Name of the secret to create.

Returns:

YAML creating a Kubernetes Secret resource for Vault Secrets Operator, suitable for passing to kubectl apply.

Return type:

str