front-door: caddy acmedns plugin pins a nonexistent v0.3.1 + lib.fakeHash — guaranteed build-time red; verified pin = v0.7.0 + real hash #404

Closed
opened 2026-08-10 16:48:51 +00:00 by ben · 1 comment
Owner

Pre-empted tooth (found while diagnosing drive 20260810T162053Z, before it cost a drive): internal/clan/frontdoor.go:261 renders the gateway's Caddy as

package = pkgs.caddy.withPlugins {
  plugins = [ "github.com/caddy-dns/acmedns@v0.3.1" ];
  hash = lib.fakeHash;
};

Two defects, both guaranteed reds at FullInstall build time (they pass the eval preflight — #401's eval seam test will NOT catch them):

  1. v0.3.1 does not exist upstream — go get fails unknown revision v0.3.1 (real tags: v0.1.0…v0.7.0). The pin is fictional.
  2. lib.fakeHash — even with a real version, the vendor hash placeholder always fails the fixed-output check.

Fix, discovery already done and build-verified on matou-workstation (Caddy 2.11.4 + plugin compiled clean, rc=0, against the drive's captured flake):

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

Note the hash pairs with (caddy 2.11.4, acmedns v0.7.0, current nixpkgs pin) — if the flake's nixpkgs or caddy bumps, the hash re-derives via the standard fakeHash roundtrip. Update frontdoor.go's comment ("the packaging slice pins the plugin build + hash") to reflect that this IS the packaging pin now, and adjust any seam test asserting the rendered front-door.nix.

Blocks the standing drive issue #378 via native dependency — without it the first post-#400 drive reds at the gateway closure build.

Pre-empted tooth (found while diagnosing drive `20260810T162053Z`, before it cost a drive): `internal/clan/frontdoor.go:261` renders the gateway's Caddy as ```nix package = pkgs.caddy.withPlugins { plugins = [ "github.com/caddy-dns/acmedns@v0.3.1" ]; hash = lib.fakeHash; }; ``` Two defects, both guaranteed reds at FullInstall build time (they pass the eval preflight — #401's eval seam test will NOT catch them): 1. **`v0.3.1` does not exist upstream** — `go get` fails `unknown revision v0.3.1` (real tags: v0.1.0…v0.7.0). The pin is fictional. 2. **`lib.fakeHash`** — even with a real version, the vendor hash placeholder always fails the fixed-output check. Fix, discovery already done and **build-verified on matou-workstation** (Caddy 2.11.4 + plugin compiled clean, rc=0, against the drive's captured flake): ```go plugins = [ "github.com/caddy-dns/acmedns@v0.7.0" ]; hash = "sha256-dGYrQV4cUhNPTaRmoLEjC1CWo4+Zocg3KpXxdbG3t5o="; ``` Note the hash pairs with (caddy 2.11.4, acmedns v0.7.0, current nixpkgs pin) — if the flake's nixpkgs or caddy bumps, the hash re-derives via the standard fakeHash roundtrip. Update `frontdoor.go`'s comment ("the packaging slice pins the plugin build + hash") to reflect that this IS the packaging pin now, and adjust any seam test asserting the rendered front-door.nix. Blocks the standing drive issue #378 via native dependency — without it the first post-#400 drive reds at the gateway closure build.
Author
Owner

Fixed in c6e976a (on origin/main). renderCaddy (internal/clan/frontdoor.go) now pins the real upstream tag caddy-dns/acmedns@v0.7.0 and the build-verified vendor hash sha256-dGYrQV4cUhNPTaRmoLEjC1CWo4+Zocg3KpXxdbG3t5o=, replacing the fictional v0.3.1 + lib.fakeHash (both guaranteed FullInstall build-time reds one layer past the eval preflight). The comment now states this render IS the packaging pin. Seam test TestRenderFrontDoor_WildcardViaAcmeDNS (internal/clan/frontdoor_test.go) asserts the real tag + hash and rejects lib.fakeHash; full internal/clan package green. The mail (caddy-l4) path shares the v0.7.0 acmedns pin. STATUS.md header + milestone log updated. Unblocks #378 at the gateway closure build.

Fixed in c6e976a (on origin/main). `renderCaddy` (internal/clan/frontdoor.go) now pins the real upstream tag `caddy-dns/acmedns@v0.7.0` and the build-verified vendor hash `sha256-dGYrQV4cUhNPTaRmoLEjC1CWo4+Zocg3KpXxdbG3t5o=`, replacing the fictional `v0.3.1` + `lib.fakeHash` (both guaranteed FullInstall build-time reds one layer past the eval preflight). The comment now states this render IS the packaging pin. Seam test `TestRenderFrontDoor_WildcardViaAcmeDNS` (internal/clan/frontdoor_test.go) asserts the real tag + hash and rejects `lib.fakeHash`; full `internal/clan` package green. The mail (caddy-l4) path shares the v0.7.0 acmedns pin. STATUS.md header + milestone log updated. Unblocks #378 at the gateway closure build.
ben closed this issue 2026-08-10 17:02:22 +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.

Reference
Matou/idss#404
No description provided.