Skip to main content

The Vault SaaS Token

When accessing Vault, this application uses a special, highly privileged token, we call the "SaaS token".

Using The SaaS Token

The SaaS token is stored in the environment variable VAULT_TOKEN in Kubernetes secrets. In PHP code it can be accessed like this:

$token = env('VAULT_TOKEN');

Resetting The SaaS Token

For local development, edit you .env file:

VAULT_TOKEN=trustedlogin
warning

Make sure the VAULT_TOKEN variable is set to be "inheritable" and "sensitive".

GitHub Actions has local VAULT_TOKEN and VAULT_URL environment variables and do not need to be modified.

Only project admin can modify GitHub secrets.

Notes

Access to environment secrets is limited to GitHub admins.