blumeops/docs/changelog.d
Erich Blume ff63679efb Enable zot registry auth + wire CI credentials (#237)
## Summary

- Enable OIDC + API key authentication on zot registry with three-tier accessControl
  - `anonymousPolicy: ["read"]` — anyone can pull
  - `artifact-workloads` group: `["read", "create"]` — CI push, no overwrite/delete
  - `admins` group: `["read", "create", "update", "delete"]` — break-glass
- Wire both CI push paths (Dagger and Nix/skopeo) with `ZOT_CI_API_KEY` credentials
- Add `artifact-workloads` PolicyBinding in Authentik blueprint for zot app access
- Add `ZOT_CI_API_KEY` to Forgejo Actions secrets via existing ansible role

Completes the `wire-ci-registry-auth` and `harden-zot-registry` Mikado cards.

## Manual Deployment Steps (after merge)

1. Deploy Authentik blueprint: `argocd app sync authentik`
2. In Authentik admin UI: set a password for the `zot-ci` service account
3. Deploy zot config: `mise run provision-indri -- --tags zot`
4. Log in to `https://registry.ops.eblu.me` as `zot-ci` via OIDC → generate API key
5. Store API key in 1Password as `zot-ci-apikey` in blumeops vault
6. Sync Forgejo secrets: `mise run provision-indri -- --tags forgejo_actions_secrets`
7. Trigger a test container build to verify CI push
8. Verify anonymous pull: `curl -sf https://registry.ops.eblu.me/v2/_catalog`

## Uncertainties

- **Zot `accessControl` group matching with OIDC:** Groups from Authentik's `profile` scope claim should map to zot policy groups, but the exact claim-to-group matching needs runtime verification
- **`http.auth.apikey: true`:** This config key is documented but needs verification against the specific zot version built from source on indri
- **API key permissions:** Need to confirm zot API keys inherit the generating user's group for accessControl evaluation

## Test Plan

- [ ] `mise run provision-indri -- --check --diff --tags zot` shows expected config changes
- [ ] Anonymous pull works after deploy
- [ ] Unauthenticated push fails (401)
- [ ] OIDC browser login redirects to Authentik and back
- [ ] API key push works after key generation
- [ ] CI push succeeds with both Dagger and skopeo paths
- [ ] `mise run services-check` passes

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Reviewed-on: https://forge.ops.eblu.me/eblume/blumeops/pulls/237
2026-02-21 12:20:29 -08:00
..
.gitkeep Add towncrier changelog system (#86) 2026-02-03 11:48:13 -08:00
add-container-versioning-prereq.infra.md Add commit-based container tagging prereq to harden-zot-registry chain (#230) 2026-02-20 18:26:27 -08:00
feature-agent-change-process.feature.md Add agent change process (C0/C1/C2) and docs-mikado tool (#225) 2026-02-20 08:15:20 -08:00
feature-authentik-mikado-chain.infra.md Convert deploy-authentik plan to C2 Mikado chain (#226) 2026-02-20 08:22:19 -08:00
feature-deploy-authentik.feature.md Deploy Authentik identity provider (C2 Mikado) (#227) 2026-02-20 12:55:59 -08:00
feature-forgejo-authentik-oidc.feature.md Integrate Forgejo with Authentik OIDC (#228) 2026-02-20 17:39:50 -08:00
harden-zot-mikado-cards.ai.md Harden zot registry, pt 1 (#231) 2026-02-20 22:50:01 -08:00
harden-zot-registry.feature.md Adopt commit-based container tags (#232) 2026-02-20 22:56:20 -08:00
plan-deploy-authentik.doc.md Add Authentik deployment plan (#224) 2026-02-20 07:06:56 -08:00
register-zot-oidc-client.feature.md Register Zot as OIDC client in Authentik (#236) 2026-02-21 08:45:06 -08:00
wire-ci-registry-auth.feature.md Enable zot registry auth + wire CI credentials (#237) 2026-02-21 12:20:29 -08:00