Secret stores
A secret store is a vault your workspace already uses — Azure Key Vault, AWS Secrets Manager or HashiCorp Vault — connected under Settings → Secret stores. A secret kept in a store has no value in Blokkio's database: Blokkio stores the secret's name, which store it is in and the entry's name in the vault, and reads the value when a workflow runs.
Workflows don't change. {{ $secrets.STRIPE_KEY }} and secret://STRIPE_KEY work the same whether the value is
encrypted in Blokkio or kept in a vault.
Where the value is read: Blokkio cloud or your worker pool
Every store has a Resolve on setting.
| Resolve on | Who reads the vault | Credentials | Use it when |
|---|---|---|---|
| Blokkio cloud | Blokkio's hosted services | Saved on the store (client secret, access key, token), encrypted with Blokkio's internal key | The vault is reachable from the internet and you are fine with Blokkio reading the value at run time |
| Your worker pool | Only your self-hosted workers | The worker's own identity: managed / workload identity, IAM role, or environment variables on the worker | Values must never leave your network |
With Your worker pool, the hosted API only ever sees the entry's name. When a step needs the secret, the API tells the worker which entry to read (store settings and name, never credentials) and the worker reads it with its own identity. The value is masked out of everything the worker sends back — outputs, variables and errors — so it never reaches Blokkio.
Things to know about worker-pool stores:
- Assign the projects that use them to a worker pool (Settings → Workers). If a hosted worker meets such a secret, the step fails with: The secret 'NAME' is kept in the secret store 'STORE', which only your self-hosted workers can read.
- Blokkio never takes a value for them: create the entry in the vault, then add the secret in Blokkio with its name.
- Test connection runs on one of your workers: Blokkio asks an online worker of the pool to sign in to the vault with its own credentials and shows its answer (and which worker answered). With several pools, Test on the Secret stores page lets you pick the pool. If no worker is online, the test says so and nothing is recorded; workers need a live connection to Blokkio and a recent version to answer. At run time, a worker that can't read the vault fails the step with the reason and which credentials it used, and logs a warning (without the value).
- A connection field can point at a worker-pool secret (
secret://API_TOKEN) when the step runs on a self-hosted worker: HTTP Request and App Action steps with an API key, bearer token or basic auth connection. Blokkio cloud prepares each request with a stand-in and the worker puts the real value in before sending it. A part of an app's address built from a connection field (for example a bot token in the path) works the same way; the whole address or its domain can't come from a worker-pool secret. OAuth2 connections (token requests and refresh) still need their client secret on Blokkio cloud. - Steps that always run on Blokkio cloud (triggers, Database Query and Send Email) can't use them.
Add a store
Only workspace administrators can add, change or remove stores. Everybody in the workspace can pick a store when they create a secret.
- Go to Settings → Secret stores and click Add store.
- Pick the provider, give the store a name (shown when choosing where a secret lives) and choose Resolve on.
- Fill in the provider's settings. The setup guides list exactly what to enter: Azure Key Vault · AWS Secrets Manager · HashiCorp Vault.
- Click Test connection. Blokkio signs in and reads a name that doesn't exist; not found proves the credentials work and are allowed to read secrets.
- Optionally turn on Default store and click Add store.
The store's own credentials (client secret, secret access key, Vault token) are write-only: they are encrypted with Blokkio's internal key and never shown again. When you edit a store, leave them blank to keep them. The store list shows the result of the last test; editing the settings clears it.
Default store
One store can be the workspace default:
- New secrets start in the default store (you can still pick Blokkio or another store).
- New connection credentials — passwords, API keys and other sensitive fields typed into a connection — are
saved in the default store under a generated name (
blokkio-…), when the default store resolves on Blokkio cloud. OAuth tokens stay in Blokkio's encrypted storage because they are refreshed every hour.
Secrets in a store
In Secrets → New secret, choose the store under Stored in and enter the Name in the vault:
- Value empty: the secret points at an entry that already exists in the vault (for cloud stores Blokkio checks that it exists). Rotate it in the vault; runs pick up the new value within a minute.
- Value entered (cloud stores only): Blokkio writes the value into the vault under that name.
A name may end in #field to read one field of a JSON or key/value secret (AWS Secrets Manager and HashiCorp
Vault), for example prod/db#password.
Per-environment values. For a secret in a store, an environment override points at a different entry of the
same vault, for example api-token in production and api-token-staging in staging.
Moving a secret. Edit the secret and change Stored in. Moving an encrypted secret into a cloud store copies its value there (unless the name already exists in the vault, in which case the secret points at that entry). Remove the secret's environment overrides before moving it.
Deleting. Deleting a secret, or a value override, also deletes the vault entry if Blokkio created it. Entries that existed in the vault before are never deleted. A store can only be removed when no secret uses it, and removing it deletes nothing in the vault.
The Stored in column of the Secrets list shows where each value lives (database icon = Blokkio).
Caching and limits
- Values read from a vault are cached in memory for 60 seconds per store, so loops and many steps don't hit the vault's rate limits. Editing the store clears its cache.
- Values from a store are masked in outputs, logs and errors like every other secret.
- Every change to a store, every test, and every secret created, moved or deleted is in the audit log (store name and vault entry name, never values or credentials).
Settings on your workers
| Setting | Default | Description |
|---|---|---|
Worker:SecretStores:Enabled | true | On a self-hosted worker: false refuses to read worker-pool stores |
Worker:SecretStores:CacheSeconds | 60 | Cache on the worker |
Worker:SecretStores:AllowedStores | (any) | Comma-separated store ids this worker may read |
Worker:SecretStores:Vault:Address / :Token / :Namespace | VAULT_ADDR / VAULT_TOKEN / VAULT_NAMESPACE | HashiCorp Vault access of the worker |
Vault addresses saved on a cloud store go through Blokkio's outbound network guard, like any other user-supplied URL. A worker never takes a Vault address or token from Blokkio: it uses its own configuration.