Operations¶
Everything you need to run Secrets Bridge.
| Page | When you'd read it |
|---|---|
| Running locally with docker compose | First time trying it locally; smoke tests in CI |
| Bootstrap & first sign-in | After the stack is up, how to sign in, enroll your first agent, run your first request |
| Sign in with Google | Connecting a Google Workspace from the console and approving new accounts (in progress) |
| Object storage | Setting up an S3 or S3-compatible bucket for media such as logos (in progress) |
| Gateway | Installing and enrolling an optional Gateway for Argo CD observation (Release 1, in progress) |
| Gateway cutover | Upgrading an install that used the control-plane Argo CD poller: bind Gateways first, rotate the Argo CD token afterwards |
| Verifying images and charts | Checking the cosign signature, SBOM and provenance of images and charts before you deploy them |
| Configuration reference | Exhaustive env-var table for api / agent / worker / controller / gateway, plus the dev-only insecure switches |
| Troubleshooting | When things go wrong, common pitfalls + how to read the audit log |
Production deployment¶
Install with the Helm charts from the
charts repo. Both publish as
OCI artifacts on GHCR:
| Chart | OCI reference | What it installs |
|---|---|---|
secrets-bridge |
oci://ghcr.io/secrets-bridge/charts/secrets-bridge |
api, ui, worker and controller behind one Ingress, in the control-plane cluster |
secrets-bridge-agent |
oci://ghcr.io/secrets-bridge/charts/secrets-bridge-agent |
One outbound-only agent per workload cluster or account |
secrets-bridge-gateway |
oci://ghcr.io/secrets-bridge/charts/secrets-bridge-gateway |
Optional. One read-only Gateway per boundary for Argo CD observation (Gateway, Release 1 in progress) |
Images publish to ghcr.io/secrets-bridge/ as well. Until the first
v0.1.0 release, chart versions look like 0.0.1-dev.<sha>; pin an exact
version from the package list.
The chart defaults are the hardened baseline, so keep them rather than
writing your own Deployments: non-root pods with read-only root
filesystems, NetworkPolicies on by default, minimal RBAC, and render-time
guards. helm install fails before anything starts when kms.backend=local
is combined with env=production, when env or kms.backend is unknown,
when a production image resolves to a mutable :dev or :latest tag
without a digest, or when the agent's control-plane endpoint is plain
http://.
# 1. Pre-create the env Secret the chart reads (secrets.existingSecret,
# default name secrets-bridge-env): DATABASE_URL, REDIS_URL and the
# SB_KMS_* settings for your backend. Deliver it with
# External Secrets, sealed-secrets or similar; never commit it.
# 2. Install the control plane. Production needs every image pinned.
helm install secrets-bridge oci://ghcr.io/secrets-bridge/charts/secrets-bridge \
--version <chart-version> \
--namespace secrets-bridge --create-namespace \
--set ingress.host=secrets-bridge.example.com \
--set kms.backend=aws-kms \
--set kms.awsKms.region=us-east-1 \
--set kms.awsKms.keyId=alias/sb-wrap \
--set api.image.digest=sha256:<digest> \
--set ui.image.digest=sha256:<digest> \
--set worker.image.digest=sha256:<digest> \
--set controller.image.digest=sha256:<digest>
Then onboard agents with the secrets-bridge-agent chart in enrollment
mode; see Enrolling your first agent.
Each chart's README in the charts repo documents every value.
Around the charts you provide:
- A managed Postgres + Redis on a private network (we test against Postgres 17 + Redis 7)
- A real KMS backend (
vault-transitoraws-kms, neverlocaloutside dev) - An ingress controller with TLS and a real certificate
Hardening checklist (before exposing to anyone)¶
-
SB_ENVisproduction(the default), neverdev -
SB_KMS_BACKENDisvault-transitoraws-kms(neverlocal) - None of the api's
insecure switches are set:
SB_ALLOW_INSECURE_HEADER_AUTH,SB_ALLOW_DIRECT_AGENT_MINT,SB_ALLOW_INSECURE_VAULT_ADDR,SB_MFA_DEV_ALLOW_PWDare unset orfalse, andSB_PROVIDER_CONN_REJECT_SECRETSis unset ortrue -
SB_INSECURE_TRANSPORTon the agent is unset (default is to refusehttp://), and the chart'scp.insecureTransportisfalse - Agents are onboarded with one-time enrollment tokens and
secrets-bridge-agent enroll; each agent's identity Secret (agent_id,agent_secret,private_key) lives in your secret store or a Kubernetes Secret that only the agent and its operators can read, and is in no Helm values, Git repository or CI log - TLS terminator (ingress) configured with HSTS + a real certificate
-
SB_BOOTSTRAP_ADMIN_PASSWORDis rotated immediately after first login - The admin user has a real OIDC identity assigned and the local admin is disabled (see Authentication)
- Postgres is on a private network: the api + worker are the only clients
- Redis is on a private network: the api + worker are the only clients
- Audit-event shipping is configured (the schema-level append-only triggers are a defense, not a substitute for off-host log shipping)
- Backup the KMS master key / Vault Transit key / AWS CMK: it's the only thing that can unwrap your envelopes
See the Threat model for the attacker postures these defend against.