Localize authentik-redis container (#309)
All checks were successful
Build Container / detect (push) Successful in 3s
Build Container / build-dockerfile (alloy) (push) Successful in 12s
Build Container / build-dockerfile (ntfy) (push) Successful in 11s
Build Container / build-nix (alloy) (push) Successful in 20s
Build Container / build-nix (authentik) (push) Successful in 6m10s
Build Container / build-nix (authentik-redis) (push) Successful in 20s
Build Container / build-nix (ntfy) (push) Successful in 6s
All checks were successful
Build Container / detect (push) Successful in 3s
Build Container / build-dockerfile (alloy) (push) Successful in 12s
Build Container / build-dockerfile (ntfy) (push) Successful in 11s
Build Container / build-nix (alloy) (push) Successful in 20s
Build Container / build-nix (authentik) (push) Successful in 6m10s
Build Container / build-nix (authentik-redis) (push) Successful in 20s
Build Container / build-nix (ntfy) (push) Successful in 6s
## Summary - Replace upstream `docker.io/library/redis:7-alpine` (Redis 7.4.8) with a nix-built container using Redis 8.2.3 from nixpkgs - Introduce **attached service pattern**: `parent` field in service-versions.yaml, `<parent>-<component>` naming convention, and `assert pkgs.redis.version == version` in default.nix to prevent silent version drift on `flake.lock` updates - Document the pattern in [[review-services]] so future attached services slot in cleanly - Backfill `parent: grafana` on existing `grafana-sidecar` entry ## Version drift protection 1. `flake.lock` update bumps nixpkgs redis → `assert` in `default.nix` breaks `nix-build` 2. Developer updates `version` in `default.nix` → prek's `container-version-check` demands matching `service-versions.yaml` update 3. Both must agree before commit succeeds ## Test plan - [ ] Build container from branch on ringtail (`mise run container-build-and-release authentik-redis`) - [ ] Update kustomization `newTag` to branch-built image tag - [ ] Sync authentik ArgoCD app from branch (`argocd app set authentik --revision localize-redis && argocd app sync authentik`) - [ ] Verify Authentik login, session persistence, and task queue still work - [ ] After merge: C0 follow-up to update `newTag` to the main-built image tag 🤖 Generated with [Claude Code](https://claude.com/claude-code) Reviewed-on: #309
This commit is contained in:
parent
fc45989a6c
commit
fd0bebb0fc
9 changed files with 67 additions and 7 deletions
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: Review Services
|
||||
modified: 2026-02-19
|
||||
modified: 2026-03-24
|
||||
last-reviewed: 2026-03-07
|
||||
tags:
|
||||
- how-to
|
||||
|
|
@ -59,6 +59,29 @@ mise run service-review --type hybrid
|
|||
2. Review the Nix derivation or flake input for version pins
|
||||
3. If upgrading, update and deploy via `mise run provision-ringtail`
|
||||
|
||||
## Attached Services
|
||||
|
||||
Some services have auxiliary dependencies that run as separate containers — caches, sidecars, init helpers. These are tracked as **attached services** with a naming convention and an optional `parent` field:
|
||||
|
||||
```yaml
|
||||
- name: authentik-redis
|
||||
type: argocd
|
||||
parent: authentik
|
||||
current-version: "8.2.3"
|
||||
upstream-source: https://github.com/redis/redis/releases
|
||||
notes: >-
|
||||
Attached service: Redis cache/broker for Authentik.
|
||||
```
|
||||
|
||||
**Conventions:**
|
||||
|
||||
- **Naming:** `<parent>-<component>` (e.g., `authentik-redis`, `grafana-sidecar`)
|
||||
- **`parent` field:** points to the parent service entry. Currently informational — the review task doesn't use it yet, but it enables future grouping/dependency-aware reviews.
|
||||
- **`notes` field:** always starts with "Attached service:" to make the relationship clear at a glance.
|
||||
- **Version tracking:** attached services that use nixpkgs packages should include a version assertion in `default.nix` (`assert pkgs.<pkg>.version == version;`) so that `flake.lock` updates that change the package version break the build and force explicit acknowledgment.
|
||||
|
||||
Existing attached services: `grafana-sidecar`, `authentik-redis`.
|
||||
|
||||
## Version Tracking Convention
|
||||
|
||||
The `current-version` field in `service-versions.yaml` tracks the **upstream application version**, not the container image tag. For services with custom-built containers, the container image tag (e.g., `v1.0.0`) is decoupled from the contained app version (e.g., `v1.10.1`). This allows container rebuilds (base image updates, build fixes) without implying an upstream version change.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue