Remove dead config: Zammad remnants, typo3's Authelia block, orphaned gitea.nix #287
Labels
No labels
bug
enhancement
in-progress
needs-info
needs-triage
p0
ready-for-agent
ready-for-human
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Cloonar/nixos#287
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #266. Remove three pieces of dead configuration left behind by the Authelia→Keycloak migration and the Zammad retirement. All three are already unreferenced; none can affect a running service.
1. Zammad remnants
The service is gone and
hosts/fw/vms/web/default.nixno longer imports its vhost, so what remains is orphaned:hosts/fw/vms/web/zammad.nix. Imported by nothing. Itsservices.zammad, itsauth_requestblock against Authelia's removed/api/verifyendpoint, itssops.secrets.zammad-key-basedeclaration and itsservices.postgresqlBackup.databases = [ "zammad" ]are all inert."/var/lib/zammad"from theenvironment.persistence."/persist-local"list athosts/fw/vms/web/default.nix:114.2. typo3's dead Authelia block
hosts/web-arm/modules/web/typo3.nix:196-209— alocation /autheliablock that isinternal;, has noauth_requestconsumer anywhere in the file, and proxies to/api/verify, an endpoint Authelia removed in 4.38. Already recorded as dead in ADR-0022.Delete the block. Take care: unlike the other two this sits inside a live vhost, so leave the rest of it exactly as-is.
3.
hosts/fw/modules/gitea.nixDelete the file. Nothing imports it —
hosts/fw/configuration.nix:57imports./modules/forgejo.nixonly. It still carriesWHITELISTED_URIS = "auth.cloonar.com"and a fullservices.giteablock, which makes it actively misleading when grepping for remaining Authelia references.Do not touch the ADRs
docs/adr/0005-read-only-diag-channel-for-agents.mdmentions/var/lib/zammadin its diag-wrapper denylist, and ADR-0022 referenceszammad.nix:79. Leave both alone. ADRs record decisions as they were made; editing them to erase a service that existed at the time falsifies the record. ADR-0005's own 2026-06-28 amendment already removed that wrapper anyway.Human steps (secrets and host state)
Per CLAUDE.md the agent does not touch secrets files. After the PR merges:
hosts/fw/vms/web/secrets.yaml: removezammad-key-base. Safe once the PR lands, since the only Nix reference goes withzammad.nix.hosts/web-arm/secrets.yaml: removezammad-db-passwordandzammad-key-base. Both are already referenced by no Nix on any host — orphaned entries.zammadPostgreSQL database and delete/persist-local/var/lib/zammad, which is still occupying disk.Out of scope
claude-mcp-forgejo/mcp-forgejo.cloonar.com— pending a scope decision; it reaches further than expected (the vhost on web-02, the Authelia client, DNS inddclient.nixanddnsmasq.nix, and theforgejo-mcpserver on bothdevanddev-new).authelia.nix, its LDAP grants inopenldap.nix, and the stale…/oauth2/authelia/callbackredirect URI on the gitea client.Verification
scripts/pre-commitdry-builds the affected hosts (fw,web-arm).Human, after deploy:
lab.cloonar.comstill reachable from LAN/VPN (unrelated, but web-02's nginx config changes if the persistence edit triggers a rebuild).git grep -i authelia -- '*.nix'returns onlyhosts/web-arm/modules/authelia.nix, its import, the openldap grants, the gitea client's stale redirect URI, and the mcp-forgejo file — i.e. exactly the M6 worklist and nothing else.Step 3 is the point of this issue: it makes the remaining Authelia surface legible before the retirement in a month.