## Summary - Upgrade zot OCI registry from v2.1.13 to v2.1.15 on indri - Addresses CVE-2025-30204 (golang-jwt memory) and open redirect via callback_ui - No config template changes needed (externalUrl is auto-allowlisted) - Requires Go 1.25.7 (bump from 1.25.6 via mise) ## Data Safety - Data directory ~/erichblume/zot is NOT touched during build or deploy - No schema migrations in v2.1.14 or v2.1.15 - Storage format remains OCI spec 1.1.0 ## Deployment Steps - [ ] SSH to indri: bump Go to 1.25.7 via `mise use go@1.25.7` - [ ] Fetch and checkout v2.1.15 in ~/code/3rd/zot - [ ] Build: `mise x -- make binary` - [ ] Restart LaunchAgent - [ ] Verify: `curl -s http://localhost:5050/v2/` returns 200 - [ ] Verify: `curl -s https://registry.ops.eblu.me/v2/_catalog` lists repos - [ ] Verify: `mise run services-check` Reviewed-on: #293
69 lines
2.3 KiB
Markdown
69 lines
2.3 KiB
Markdown
---
|
|
title: Zot
|
|
modified: 2026-03-14
|
|
tags:
|
|
- service
|
|
- registry
|
|
---
|
|
|
|
# Zot
|
|
|
|
OCI-native container registry providing pull-through cache and private image storage.
|
|
|
|
## Quick Reference
|
|
|
|
| Property | Value |
|
|
|----------|-------|
|
|
| **URL** | https://registry.ops.eblu.me |
|
|
| **Local Port** | 5050 |
|
|
| **Data** | `~/zot` |
|
|
| **Config** | `~/.config/zot/config.json` |
|
|
| **LaunchAgent** | mcquack |
|
|
|
|
## Namespace Convention
|
|
|
|
| Path | Source |
|
|
|------|--------|
|
|
| `registry.ops.eblu.me/docker.io/*` | Cached from Docker Hub |
|
|
| `registry.ops.eblu.me/ghcr.io/*` | Cached from GHCR |
|
|
| `registry.ops.eblu.me/quay.io/*` | Cached from Quay |
|
|
| `registry.ops.eblu.me/blumeops/*` | Private images |
|
|
|
|
## Pull-Through Cache
|
|
|
|
When [[cluster|minikube]] pulls an image, containerd checks zot first. If cached, returns immediately. If not, zot fetches from upstream, caches it, then returns.
|
|
|
|
## Security Model
|
|
|
|
OIDC authentication via [[authentik]], with API key support for CI. Three-tier access control:
|
|
|
|
| Role | Permissions | Use case |
|
|
|------|------------|----------|
|
|
| Anonymous | read | Pull images without auth |
|
|
| `artifact-workloads` group | read, create | CI push (new tags only, no overwrite/delete) |
|
|
| `admins` group | read, create, update, delete | Break-glass admin access |
|
|
|
|
CI authenticates with a zot API key generated from the `zot-ci` service account's OIDC session. The key is stored in the `Forgejo Secrets` 1Password item (field `zot-ci-api`) and synced to Forgejo Actions secrets via ansible.
|
|
|
|
## API Key Rotation
|
|
|
|
The `zot-ci` API key expires every **90 days**. To rotate:
|
|
|
|
1. In Authentik admin UI, impersonate the `zot-ci` user
|
|
2. Visit `https://registry.ops.eblu.me` — you'll land on the login page
|
|
3. Click "SIGN IN WITH OIDC" to authenticate as zot-ci
|
|
4. Navigate to `https://registry.ops.eblu.me/user/apikey`
|
|
5. Generate a new API key, copy it to clipboard
|
|
6. Update 1Password:
|
|
```fish
|
|
pbpaste | op item edit "Forgejo Secrets" --vault blumeops "zot-ci-api[password]=-"
|
|
```
|
|
7. Sync to Forgejo: `mise run provision-indri -- --tags forgejo_actions_secrets`
|
|
|
|
## Related
|
|
|
|
- [[forgejo]] - Container build CI
|
|
- [[cluster|Cluster]] - Registry consumer
|
|
- [[authentik]] - OIDC identity provider
|
|
- [[harden-zot-registry]] - Security hardening guide
|
|
- [[install-dagger-on-nix-runner]] - Why Dagger can't run on the Nix builder
|