front-door mail branch: caddy-l4@v0.0.0-latest is not a real version and reuses the one-plugin hash — verified pin = l4 v0.1.2 + two-plugin hash #405

Closed
opened 2026-08-10 17:15:56 +00:00 by ben · 1 comment
Owner

Latent sibling of #404, found in the same render (internal/clan/frontdoor.go renderCaddy): when cfg.MailProxy != nil (mail provisioned, ADR 0115), the front door renders

plugins = [ "github.com/caddy-dns/acmedns@v0.7.0" "github.com/mholt/caddy-l4@v0.0.0-latest" ];
hash = "sha256-dGYrQV4cUhNPTaRmoLEjC1CWo4+Zocg3KpXxdbG3t5o=";

Two defects, both guaranteed build-time reds on any mail-provisioned gateway:

  1. caddy-l4@v0.0.0-latest is not a valid Go module version — go get refuses it outright. Upstream has real tags now; latest resolves to v0.1.2.
  2. The hash is #404's ONE-plugin hash — a two-plugin vendor tree derives differently, so even with a valid l4 pin this branch hash-mismatches.

Verified fix (discovery done, built clean on matou-workstation against the rehearsal drive's captured flake, caddy 2.11.4, rc=0):

plugins = [ "github.com/caddy-dns/acmedns@v0.7.0" "github.com/mholt/caddy-l4@v0.1.2" ];
hash = "sha256-4eku8ZRsOO72pWDSBQ9lolfc2LBQQpJKe8A0yW6m63M=";

So the mail branch needs its own hash constant next to #404's, selected in the same if cfg.MailProxy != nil fork. Adjust any seam test asserting the rendered front-door.nix. Not wired to the rehearsal drive (#378) — the rehearsal founding provisions no mail, so this branch never renders there; it bites the mail arc's first live gateway instead.

Latent sibling of #404, found in the same render (`internal/clan/frontdoor.go` renderCaddy): when `cfg.MailProxy != nil` (mail provisioned, ADR 0115), the front door renders ```nix plugins = [ "github.com/caddy-dns/acmedns@v0.7.0" "github.com/mholt/caddy-l4@v0.0.0-latest" ]; hash = "sha256-dGYrQV4cUhNPTaRmoLEjC1CWo4+Zocg3KpXxdbG3t5o="; ``` Two defects, both guaranteed build-time reds on any mail-provisioned gateway: 1. **`caddy-l4@v0.0.0-latest` is not a valid Go module version** — `go get` refuses it outright. Upstream has real tags now; latest resolves to **v0.1.2**. 2. **The hash is #404's ONE-plugin hash** — a two-plugin vendor tree derives differently, so even with a valid l4 pin this branch hash-mismatches. Verified fix (discovery done, **built clean on matou-workstation** against the rehearsal drive's captured flake, caddy 2.11.4, rc=0): ```nix plugins = [ "github.com/caddy-dns/acmedns@v0.7.0" "github.com/mholt/caddy-l4@v0.1.2" ]; hash = "sha256-4eku8ZRsOO72pWDSBQ9lolfc2LBQQpJKe8A0yW6m63M="; ``` So the mail branch needs its own hash constant next to #404's, selected in the same `if cfg.MailProxy != nil` fork. Adjust any seam test asserting the rendered front-door.nix. Not wired to the rehearsal drive (#378) — the rehearsal founding provisions no mail, so this branch never renders there; it bites the mail arc's first live gateway instead.
Author
Owner

Fixed in c656ce0 (on origin/main). renderCaddys cfg.MailProxy != nil fork now pins caddy-l4@v0.1.2 (v0.0.0-latest is not a valid Go module version) + its own build-verified two-plugin hash = "sha256-4eku8ZRsOO72pWDSBQ9lolfc2LBQQpJKe8A0yW6m63M="; the hash line moved inside the if/else fork so the acmedns-only (else) branch keeps #404s one-plugin hash. Seam test TestRenderFrontDoor_MailPinsRealLayer4AndTwoPluginHash (internal/clan/frontdoor_mail_test.go) asserts the real l4 tag + two-plugin hash and rejects both v0.0.0-latest and #404s one-plugin hash. Full internal/clan suite green under nix develop .#go-ci; STATUS.md updated.

Fixed in c656ce0 (on origin/main). `renderCaddy`s `cfg.MailProxy != nil` fork now pins `caddy-l4@v0.1.2` (v0.0.0-latest is not a valid Go module version) + its own build-verified two-plugin `hash = "sha256-4eku8ZRsOO72pWDSBQ9lolfc2LBQQpJKe8A0yW6m63M="`; the hash line moved inside the if/else fork so the acmedns-only (else) branch keeps #404s one-plugin hash. Seam test `TestRenderFrontDoor_MailPinsRealLayer4AndTwoPluginHash` (internal/clan/frontdoor_mail_test.go) asserts the real l4 tag + two-plugin hash and rejects both v0.0.0-latest and #404s one-plugin hash. Full `internal/clan` suite green under `nix develop .#go-ci`; STATUS.md updated.
ben closed this issue 2026-08-10 17:22:39 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#405
No description provided.