Secret stores
Connect Vault, OpenBao, a cloud secret manager, an External Secrets Operator store or a SOPS key, say which teams, environments and agents may use it, and test it. Wardn keeps references, never values.
A secret store is where your secrets live. Wardn never copies them: a deployment names a secret in a store with a secret reference, and the value is read only when it is applied or injected. Nobody reads a value through Wardn, not people, not agents, not API tokens.
Resources › Secret Stores lists every store with what uses it, how Wardn signs in, when it was last checked and how that went.
What a store can be
| Provider | Settings | How Wardn signs in | What a test does |
|---|---|---|---|
| HashiCorp Vault, OpenBao | Address (https://), namespace (Enterprise), KV mount | Kubernetes auth (a projected token of the server's, when the install configures one), AppRole, or a token | Signs in, looks the token up, reports its lifetime and policies |
| AWS Secrets Manager | Region | The role the server runs as (optionally assuming another), or access keys | Signs in, names who AWS says it is, and lists one secret |
| GCP Secret Manager | Project | Workload identity, or a service account key | Signs in and lists one secret of the project |
| Azure Key Vault | Vault URL | Managed identity (optionally user-assigned), or an app's client secret | Signs in and lists one secret of the vault |
| External Secrets Operator | The SecretStore or ClusterSecretStore name | None: each cluster's operator reads it | Checks the settings; the status is Checked |
| SOPS age key | The age identity | Parses the key and shows the recipient it decrypts for | |
| SOPS with KMS | KMS, key and encrypted files | Workload identity or an assumed role (the server's identity), AWS access keys, a GCP service account key, or an Azure client secret | Signs in and reads the key, which must exist and be enabled. It does not yet decrypt a file |
Assuming a role (AWS). An AWS store can name a role to assume from the server's identity. Wardn always sends the organization's own external ID with the request (externalId on the store in the API, wardn-<organization id>; it is not a secret and the person typing the role cannot change it). Put it in the role's trust policy as a condition, or any organization on the install could have the server assume your role by typing its ARN:
"Condition": {"StringEquals": {"sts:ExternalId": "wardn-<organization id>"}}A test shows only that it signed in and could list; it does not say which AWS account or role the server is.
A test of a cloud store reads nothing but a list of one secret (or the key's own record), and shows AWS's, Google's or Key Vault's refusal as it is when the identity lacks access, such as AccessDeniedException. Wardn only calls those clouds' own addresses: the region, project and vault URL are checked before anything is sent, and a service account key whose sign-in address is not Google's is refused.
The server's own identity is shared
Signing in as the role, service account or managed identity the server's pods run as (AWS "IAM role", GCP "Workload identity", Azure "Managed identity", and SOPS with KMS "Workload identity" or "Role") uses one identity for every organization on the install. With it on, every organization can reach anything that identity can reach, in its own cloud account and anyone else's that trusts it. It is therefore off unless the install sets WARDN_CONNECTIONS_WORKLOAD_IDENTITY=true; until then those sign-ins say so in the form and a test fails with that reason. Sign-ins with the organization's own credential (access keys, a service account key, a client secret, for SOPS with KMS too) need no consent.
What has been tested. Every path above is tested against emulated AWS, Google and Azure endpoints (a fake STS, Secrets Manager and KMS; a fake workload identity federation token exchange with Secret Manager and Cloud KMS; a fake instance metadata service, Azure AD and Key Vault), which check what is signed with what and what is refused. None has been run against a real cloud account yet; that is part of the real-cloud verification still to do.
A store's status is Connected after a test that signed in, Checked for a store the clusters read, Not tested, or Failing with the reason. A credential that the store said ends within a week shows as Token expires in 3d and counts under Needs attention.
Add one
Add store opens the form: choose the provider, fill in the connection and the sign-in, choose who may use it, and Test connection before saving. Saving tests it again and records the result.
Credentials are write-only
The sign-in's credential (a token, an AppRole secret id, a key file, a client secret) is sealed in Wardn's own secret store when you save, under the store's id. It is never returned by the API, never shown in the form and never written to Activity or logs. To change it, enter a new one; leave the field empty to keep the sealed one. A server without WARDN_SECRET_MASTER_KEY cannot save a store that needs a credential.
The same through the API:
curl -fsS -X POST "$WARDN_API_URL/api/v1/secret-stores" \
-H "Authorization: Bearer $WARDN_TOKEN" -H 'Content-Type: application/json' \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"name": "Platform Vault",
"provider": "vault",
"signIn": "approle",
"config": {"address": "https://vault.example.com:8200", "mount": "kv", "roleId": "…"},
"credential": {"secretId": "…"},
"places": [{"kind": "team", "id": "team-payments"}, {"kind": "environment", "id": "…"}]
}'GET /api/v1/secret-store-providers lists every provider with its settings, its sign-in methods and which fields are credentials. POST /api/v1/secret-store-tests tests settings without saving them; with a storeId and no credential, it uses the sealed one. POST /api/v1/secret-stores/{id}/test tests a saved store and records the result.
What Wardn never sends where
- Kubernetes sign-in sends only a projected service account token the install mounts for it, with an audience of its own (
WARDN_CONNECTIONS_K8S_TOKEN_FILE, see Configuration). Without one, Kubernetes sign-in shows as unavailable. The server's own service account token is never sent to an address an organization typed. - A sealed credential stays with its target. Changing a store's address, namespace, mount, auth mount, role or sign-in needs the credential entered again, for saving and for testing; Activity notes it.
- Addresses never reach loopback, link-local or cloud metadata addresses, and an install can refuse private addresses too.
http://addresses needWARDN_CONNECTIONS_ALLOW_INSECURE_HTTP. - A failed test says only that Wardn couldn't connect or sign in, so it cannot be used to probe a network.
Who may use it
A store lists the places that may name secrets in it:
| Place | Covers |
|---|---|
| All environments | Every deployment of the organization |
| A team | The deployments the team owns |
| An environment | Every deployment in it |
| An agent | That agent's jobs |
A deployment may declare a reference to a store only when one of its places is in the deployment's chain: its team, its environment, or the organization. Anything else is refused with secret_ref.store_scope. A store with no place is usable by nobody. The places are checked again each time a reference is read, so narrowing them takes effect at the next check.
Change or remove a store
Open a store from the list to change it. The provider cannot change; add a new store instead. Changing the address, the sign-in or the credential tests the store again; changing the name or the places does not.
A store that secret references name cannot be removed (409 secretstore.in_use): point those references at another store first. Removing a store deletes its sealed credential.
Permissions
| To | You need |
|---|---|
| See the stores and the providers | secretstore:read |
| Add, change, test or remove a store | secretstore:manage |
| Name a store in a deployment's secret references | deployment:manage, and the deployment in one of the store's places |
Owners and Admins hold both store permissions. An agent can never hold secretstore:manage. Adding, changing, testing and removing a store are in Activity, without any credential.
Related: Secret references, Registries, Restore and rollback.
Secret references
Tell Wardn which secrets a deployment needs, from Kubernetes Secrets or External Secrets Operator, and see whether they are there and whether they changed, without Wardn ever holding the values.
Registries
Connect the registries your images and Helm charts live in, say what Wardn may use each one for and which deployments may use it, and browse its images, charts and tags.