VaultAppRoleCredentials

pydantic model phalanx.models.vault.VaultAppRoleCredentials

Credentials for Vault access using an AppRole.

Parameters:

data (Any)

Show JSON schema
{
   "title": "VaultAppRoleCredentials",
   "description": "Credentials for Vault access using an AppRole.",
   "type": "object",
   "properties": {
      "role_id": {
         "title": "Role Id",
         "type": "string"
      },
      "secret_id": {
         "title": "Secret Id",
         "type": "string"
      }
   },
   "required": [
      "role_id",
      "secret_id"
   ]
}

Fields:
field role_id: str [Required]

Unique identifier of the AppRole.

field secret_id: str [Required]

Authentication credentials for the AppRole.

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