Deploy the Vault Secrets Operator across clusters #1525

Closed
ginjiruu wants to merge 0 commits from vso-deploy-vault-secrets-operator into main
Owner

Closes #1524

Deploy the Vault Secrets Operator across clusters

ADR-0004 in lab/iac designates the Vault Secrets Operator (VSO) as the read path for Vault secrets — per-app VaultAuth (serviceAccountRef to the app's own SA) syncing scoped KV paths into native Kubernetes Secrets via VaultStaticSecret. VSO is currently documented but deployed nowhere. This change ships the operator itself.

Scope

Deploy VSO on the clusters that already consume Vault via the ESO vault-backend ClusterSecretStore:

  • mini
  • portable (runs the Vault server itself)
  • remote

mx2 and localhost are out of scope.

Deliverables

  1. generic-templates/vault-secrets-operator/ — a shared template mirroring generic-templates/cnpg/ + the tofu-controller crds: Create idiom:
    • HelmRepository hashicorp → https://helm.releases.hashicorp.com
    • HelmRelease vault-secrets-operator v1.5.1 (chart self-manages CRDs via install.crds: Create / upgrade.crds: CreateReplace)
    • defaultVaultConnection.enabled: true → https://vault.animeteamspeak.moe (public letsencrypt cert, no skipTLSVerify/caCertSecret)
    • defaultAuthMethod.enabled: false — ADR-0004 mandates per-app VaultAuth, no shared operator identity
  2. Per-cluster wiring — top-level Kustomization pointer clusters/<name>/vault-secrets-operator.yaml for mini, portable, remote.
  3. HelmRepository de-duplication — drop the now-duplicate hashicorp HelmRepository from clusters/portable/helmsources/ and clusters/remote/helmsources/ (the template ships the identical source; clusters/portable/vault/helmRelease.yaml is unaffected — same name/url).

Out of scope (separate lab/iac work, per ADR-0004)

  • Mounting the Vault kubernetes auth backend + token-reviewer
  • Per-app vault_kubernetes_auth_backend_role bound to app-a-vso
  • app-a-vso ServiceAccounts and per-app VaultAuth/VaultStaticSecret/VaultAuthGlobal CRs in app repos

The operator reconciles fine without these; only actual VaultStaticSecret CRs trigger Vault logins. ESO ClusterSecretStore vault-backend stays (write path + existing apps).

Closes #1524 ## Deploy the Vault Secrets Operator across clusters ADR-0004 in `lab/iac` designates the Vault Secrets Operator (VSO) as the read path for Vault secrets — per-app `VaultAuth` (`serviceAccountRef` to the app's own SA) syncing scoped KV paths into native Kubernetes Secrets via `VaultStaticSecret`. VSO is currently documented but **deployed nowhere**. This change ships the operator itself. ## Scope Deploy VSO on the clusters that already consume Vault via the ESO `vault-backend` ClusterSecretStore: - `mini` - `portable` (runs the Vault server itself) - `remote` `mx2` and `localhost` are out of scope. ## Deliverables 1. **`generic-templates/vault-secrets-operator/`** — a shared template mirroring `generic-templates/cnpg/` + the tofu-controller `crds: Create` idiom: - `HelmRepository hashicorp` → `https://helm.releases.hashicorp.com` - `HelmRelease vault-secrets-operator` v1.5.1 (chart self-manages CRDs via `install.crds: Create` / `upgrade.crds: CreateReplace`) - `defaultVaultConnection.enabled: true` → `https://vault.animeteamspeak.moe` (public letsencrypt cert, no `skipTLSVerify`/`caCertSecret`) - `defaultAuthMethod.enabled: false` — ADR-0004 mandates per-app `VaultAuth`, no shared operator identity 2. **Per-cluster wiring** — top-level `Kustomization` pointer `clusters/<name>/vault-secrets-operator.yaml` for mini, portable, remote. 3. **HelmRepository de-duplication** — drop the now-duplicate `hashicorp` HelmRepository from `clusters/portable/helmsources/` and `clusters/remote/helmsources/` (the template ships the identical source; `clusters/portable/vault/helmRelease.yaml` is unaffected — same name/url). ## Out of scope (separate `lab/iac` work, per ADR-0004) - Mounting the Vault `kubernetes` auth backend + token-reviewer - Per-app `vault_kubernetes_auth_backend_role` bound to `app-a-vso` - `app-a-vso` ServiceAccounts and per-app `VaultAuth`/`VaultStaticSecret`/`VaultAuthGlobal` CRs in app repos The operator reconciles fine without these; only actual `VaultStaticSecret` CRs trigger Vault logins. ESO `ClusterSecretStore vault-backend` stays (write path + existing apps).
ginjiruu closed this pull request 2026-11-15 19:01:15 +00:00

Pull request closed

Sign in to join this conversation.
No description provided.