Enable host-managed Attic HTTPS and shared IPv6 preference #331

Merged
nimmo merged 3 commits from feature/attic-direct-https into main 2026-10-14 20:52:57 +01:00
Owner

Adds declarative host-managed HTTPS for Attic and an explicit IPv6-first address-selection policy in the shared NixOS baseline, retaining IPv4 fallback.

Validation: nix flake check and the Vega system build passed. A live Vega canary passed trusted HTTPS and cache-read/download checks from the LAN and an external host. Permanent activation remains pending.

Adds declarative host-managed HTTPS for Attic and an explicit IPv6-first address-selection policy in the shared NixOS baseline, retaining IPv4 fallback. Validation: `nix flake check` and the Vega system build passed. A live Vega canary passed trusted HTTPS and cache-read/download checks from the LAN and an external host. Permanent activation remains pending.
feat(networking): declare shared IPv6-first address selection
All checks were successful
Build and Push Attic Cache / test (pull_request) Successful in 2m40s
Build and Push Attic Cache / build (pull_request) Has been skipped
Build and Push Attic Cache / pin-lifecycle (pull_request) Has been skipped
Build and Push Attic Cache / remediate (pull_request) Has been skipped
Build and Push Attic Cache / notify-remediation (pull_request) Has been skipped
Build and Push Attic Cache / record-remediation-notify-failure (pull_request) Has been skipped
AI pull-request review / review (pull_request) Successful in 16m51s
22e34953e6
clankbot left a comment

Automated code review

Reviewed commit: 22e34953e686668c05aa4d8c0bb5dfd80006c859

Verdict: Ready to merge

No blocking or important findings were retained, and deterministic checks passed. Suggestions remain advisory.

Overall assessment

The supplied change adds modules/services/attic-https.nix (nginx vhost + ACME/lego Cloudflare DNS-01 issuance + firewall ingress for 443), reaches it through imports = [ ./attic-https.nix ] at modules/services/atticd.nix:14, enables it only on Vega via nixosConfig.attic.publicHttps, and adds secrets/acme/vega.yaml with a matching .sops.yaml rule. I verified the wiring that is checkable in the checkout: the relative paths resolve correctly (atticd.nix:14 -> modules/services/attic-https.nix; ../../secrets/acme/vega.yaml -> repo-root secrets/acme/vega.yaml), the file's recorded recipients (electra, vega, yubikey-nano5c, yubikey-5-nfc, provision-key) match the new .sops.yaml:24 key_groups exactly, the key cloudflare_dns_token exists in that file, the vhost proxies to the same private listener 127.0.0.1:8081 that atticd.nix still sets, attic.nimmog.uk remains in allowed-hosts, and nixosConfig.userEmail has a default in modules/common/default-config.nix:14. The networking.getaddrinfo.precedence hunk restates the standard table and its own comment declares that intent, so I did not report it as a defect. No evaluation-blocking defect was demonstrable from the supplied evidence; nix flake check and the canary are asserted in the PR text only and could not be re-run. Three latent, evidence-backed concerns remain: the new module is not host-scoped despite hard-coding Vega-only values, the 443 ingress is keyed on a literal interface name with no supporting evidence or validation, and the new SOPS rule grants a wider audience than the repository's established Vega-only pattern.

Blocking findings

None.

Important findings

None.

Suggestions

  • New module is reached through a module shared with Lyra while hard-coding Vega-only values (modules/services/atticd.nix:14; high confidence)
    modules/services/atticd.nix:14 adds imports = [ ./attic-https.nix ]; and hosts/lyra/default.nix:51 imports ../../modules/services/atticd.nix, so the new module is loaded on Lyra too. Inside it, modules/services/attic-https.nix:27 fixes sopsFile = ../../secrets/acme/vega.yaml and hostName = "attic.nimmog.uk" are fixed, and .sops.yaml:24 scopes that file to electra/vega/YubiKeys/provision-key with no lyra recipient. scripts/check-service-exposure.nix:17 lists 443 in retiredPorts and asserts no non-nebula.mesh interface allows it on flake.nixosConfigurations.lyra, while the new module sets networking.firewall.interfaces.<interface>.allowedTCPPorts = [ 443 ]. The module is inert today because its whole config is lib.mkIf cfg.enable and Lyra does not set nixosConfig.attic.publicHttps.
    Impact: Not a defect in the current tree, but the capability is not host-scoped: a future Lyra enablement would attempt to decrypt a file Lyra is not a recipient of and would trip the authoritative service-exposure flake assert, so a toggle becomes an evaluation/deployment failure instead of a clean refusal. The repository already has a convention for this: modules/services/newt.nix:24 makes sopsFile a required host-set option with a comment saying every enabling host must set it.
    Suggested fix: Scope the ingress to the intended hardware: import ./attic-https.nix from hosts/vega/default.nix rather than from the shared atticd.nix, or parameterise sopsFile/hostName per host following the newt.nix pattern and add an assertion rejecting non-Vega use alongside the existing services.atticd.enable assertion.

  • Direct 443 ingress is keyed on an unverifiable literal interface name with no validation (hosts/vega/default.nix:161; medium confidence)
    nixosConfig.attic.publicHttps = { enable = true; interface = "enp86s0"; }; feeds networking.firewall.interfaces.${cfg.interface}.allowedTCPPorts = [ 443 ] at modules/services/attic-https.nix:81. enp86s0 occurs nowhere else in the repository, and no supplied file contains an interface listing for Vega. Every other firewall rule in the checkout keys on a stable name: networking.firewall.interfaces."nebula.mesh" (hosts/vega/default.nix:278) and networking.firewall.interfaces.${newtBridge.interface} with newtBridge.interface = "newt_default" (hosts/vega/default.nix:176). The option itself (modules/services/attic-https.nix:12-16) has no default, no type restriction, and no assertion that the interface exists.
    Impact: If the literal does not match Vega's persistent interface, the 443 rule is attached to an interface that is not present, so the direct HTTPS ingress is not permitted on the LAN/external path even though nix flake check passes; this is the part of the change a canary taken over a different path could mask. A renamed or removed interface would fail silently rather than closed.
    Suggested fix: Record the live interface name in the PR evidence (ip -a link show / udevadm output) and, if the name is genuinely kernel-generated, add an assertion or documented default so an absent or renamed interface fails at evaluation instead of silently dropping the ingress.

  • New SOPS rule grants the ACME token to electra, wider than the repository's Vega-only pattern (.sops.yaml:24; medium confidence)
    The added rule path_regex: secrets/acme/vega\.yaml$ lists key_groups *electra, *vega, *yubikey-nano5c, *yubikey-5-nfc, *provision-key. The comparable Vega-only rules in the same file - secrets/karakeep-server\.yaml, secrets/forgejo[-_]runner\.yaml, secrets/beszel/vega\.yaml, secrets/nebula/vega\.yaml - list only *vega plus the two YubiKeys and *provision-key. The token's only consumer in the diff is Vega: modules/services/attic-https.nix:26-28 reads cloudflare_dns_token into credentialFiles.CF_DNS_API_TOKEN_FILE, and the file is named and scoped to Vega.
    Impact: electra, an AI laptop host, gains the ability to decrypt a Cloudflare zone-scoped DNS token used only by Vega's ACME service, which is broader than the established per-host scoping convention documented in the adjacent rules (e.g. the nebula-ca.yaml and paseo.yaml comments justify each audience). No comment explains why electra is included here.
    Suggested fix: Drop *electra unless it is required for a creation/rotation ceremony - *provision-key already covers provisioning - and if it is intentional, state the reason in a comment as the neighbouring rules do.

Tests and validation

  • No configured deterministic checks.

Questions

  • Is --dns.propagation.wait 60s a current lego option? extraLegoFlags is passed through verbatim, so an unrecognised flag would fail certificate issuance at runtime without any flake-check signal; nothing in the supplied material contains lego's option set.
  • Does dnsProvider = "cloudflare" alone cause nixpkgs to add lego's --dns (DNS-01) flag? The vhost is onlySSL = true with a single port-443 listener and useACMEHost, so no port-80/acme-challenge location exists; the supplied material does not show how nixpkgs composes the lego command.
  • Which interface does Vega actually expose for its LAN/external connection, and was the reported external-hosts canary served by Vega's own [::]:443 listener rather than by the existing Pangolin/Newt route?
  • After this change, which ingress do .forgejo/workflows/attic-cache.yml (ATTIC_SERVER_URL) and the shared substituter in modules/common/nix-settings.nix actually reach, given public DNS for attic.nimmog.uk is unchanged by this diff?

Review limitations

  • No Nix tooling or live host was available: nix flake check, the Vega build, the service-exposure/token-tv-config flake checks, and the canary were not re-run; their passing status is taken from the pull-request text only.
  • nixpkgs option definitions and defaults are not part of the supplied material, so I could not verify networking.getaddrinfo.precedence's documented default, security.acme.certs.*.credentialFiles semantics, lego's flag names, or nixpkgs' nginx/ACME command composition; I therefore did not report the getaddrinfo hunk as a defect.
  • No live-host evidence was supplied: interface names, public DNS records for attic.nimmog.uk, Cloudflare zone configuration, and nginx/ACME runtime behaviour could not be inspected.
  • secrets/acme/vega.yaml was read only as SOPS ciphertext; the token value and its Cloudflare scope cannot be inspected.
  • Files outside the changed set were read only for cross-references (callers, imports, flake checks, SOPS rules); I did not audit unchanged code for defects.

Diff coverage

  • .sops.yaml: reviewed — included in a context-limited batch
  • README.md: reviewed — included in a context-limited batch
  • hosts/vega/default.nix: reviewed — included in a context-limited batch
  • modules/common/base.nix: reviewed — included in a context-limited batch
  • modules/services/attic-https.nix: reviewed — included in a context-limited batch
  • modules/services/atticd.nix: reviewed — included in a context-limited batch
  • secrets/acme/vega.yaml: reviewed — included in a context-limited batch
Review metadata
  • Reviewer: forgejo-ai-review v1
  • Model: strata/strata
  • Guidance loaded: .forgejo/ai-review.md, .forgejo/ai-review.yml, AGENTS.md, docs/auto-update-remediation.md, docs/hermes-fleet-ssh.md, docs/nova-remote-builder.md, README.md
  • Commits considered: 2
  • Previous automated review: none found
  • Findings: 3
<!-- forgejo-ai-review:v1 --> ## Automated code review Reviewed commit: `22e34953e686668c05aa4d8c0bb5dfd80006c859` ## Verdict: Ready to merge No blocking or important findings were retained, and deterministic checks passed. Suggestions remain advisory. ### Overall assessment The supplied change adds `modules/services/attic-https.nix` (nginx vhost + ACME/lego Cloudflare DNS-01 issuance + firewall ingress for 443), reaches it through `imports = [ ./attic-https.nix ]` at `modules/services/atticd.nix:14`, enables it only on Vega via `nixosConfig.attic.publicHttps`, and adds `secrets/acme/vega.yaml` with a matching `.sops.yaml` rule. I verified the wiring that is checkable in the checkout: the relative paths resolve correctly (`atticd.nix:14` -> `modules/services/attic-https.nix`; `../../secrets/acme/vega.yaml` -> repo-root `secrets/acme/vega.yaml`), the file's recorded recipients (electra, vega, yubikey-nano5c, yubikey-5-nfc, provision-key) match the new `.sops.yaml:24` key_groups exactly, the key `cloudflare_dns_token` exists in that file, the vhost proxies to the same private listener `127.0.0.1:8081` that `atticd.nix` still sets, `attic.nimmog.uk` remains in `allowed-hosts`, and `nixosConfig.userEmail` has a default in `modules/common/default-config.nix:14`. The `networking.getaddrinfo.precedence` hunk restates the standard table and its own comment declares that intent, so I did not report it as a defect. No evaluation-blocking defect was demonstrable from the supplied evidence; `nix flake check` and the canary are asserted in the PR text only and could not be re-run. Three latent, evidence-backed concerns remain: the new module is not host-scoped despite hard-coding Vega-only values, the 443 ingress is keyed on a literal interface name with no supporting evidence or validation, and the new SOPS rule grants a wider audience than the repository's established Vega-only pattern. ### Blocking findings None. ### Important findings None. ### Suggestions - **New module is reached through a module shared with Lyra while hard-coding Vega-only values** (modules/services/atticd.nix:14; high confidence) `modules/services/atticd.nix:14` adds `imports = [ ./attic-https.nix ];` and `hosts/lyra/default.nix:51` imports `../../modules/services/atticd.nix`, so the new module is loaded on Lyra too. Inside it, `modules/services/attic-https.nix:27` fixes `sopsFile = ../../secrets/acme/vega.yaml` and `hostName = "attic.nimmog.uk"` are fixed, and `.sops.yaml:24` scopes that file to electra/vega/YubiKeys/provision-key with no lyra recipient. `scripts/check-service-exposure.nix:17` lists 443 in `retiredPorts` and asserts no non-`nebula.mesh` interface allows it on `flake.nixosConfigurations.lyra`, while the new module sets `networking.firewall.interfaces.<interface>.allowedTCPPorts = [ 443 ]`. The module is inert today because its whole config is `lib.mkIf cfg.enable` and Lyra does not set `nixosConfig.attic.publicHttps`. Impact: Not a defect in the current tree, but the capability is not host-scoped: a future Lyra enablement would attempt to decrypt a file Lyra is not a recipient of and would trip the authoritative `service-exposure` flake assert, so a toggle becomes an evaluation/deployment failure instead of a clean refusal. The repository already has a convention for this: `modules/services/newt.nix:24` makes `sopsFile` a required host-set option with a comment saying every enabling host must set it. Suggested fix: Scope the ingress to the intended hardware: import `./attic-https.nix` from `hosts/vega/default.nix` rather than from the shared `atticd.nix`, or parameterise `sopsFile`/`hostName` per host following the `newt.nix` pattern and add an assertion rejecting non-Vega use alongside the existing `services.atticd.enable` assertion. - **Direct 443 ingress is keyed on an unverifiable literal interface name with no validation** (hosts/vega/default.nix:161; medium confidence) `nixosConfig.attic.publicHttps = { enable = true; interface = "enp86s0"; };` feeds `networking.firewall.interfaces.${cfg.interface}.allowedTCPPorts = [ 443 ]` at `modules/services/attic-https.nix:81`. `enp86s0` occurs nowhere else in the repository, and no supplied file contains an interface listing for Vega. Every other firewall rule in the checkout keys on a stable name: `networking.firewall.interfaces."nebula.mesh"` (`hosts/vega/default.nix:278`) and `networking.firewall.interfaces.${newtBridge.interface}` with `newtBridge.interface = "newt_default"` (`hosts/vega/default.nix:176`). The option itself (`modules/services/attic-https.nix:12-16`) has no default, no type restriction, and no assertion that the interface exists. Impact: If the literal does not match Vega's persistent interface, the 443 rule is attached to an interface that is not present, so the direct HTTPS ingress is not permitted on the LAN/external path even though `nix flake check` passes; this is the part of the change a canary taken over a different path could mask. A renamed or removed interface would fail silently rather than closed. Suggested fix: Record the live interface name in the PR evidence (`ip -a link show` / `udevadm` output) and, if the name is genuinely kernel-generated, add an assertion or documented default so an absent or renamed interface fails at evaluation instead of silently dropping the ingress. - **New SOPS rule grants the ACME token to electra, wider than the repository's Vega-only pattern** (.sops.yaml:24; medium confidence) The added rule `path_regex: secrets/acme/vega\.yaml$` lists key_groups `*electra, *vega, *yubikey-nano5c, *yubikey-5-nfc, *provision-key`. The comparable Vega-only rules in the same file - `secrets/karakeep-server\.yaml`, `secrets/forgejo[-_]runner\.yaml`, `secrets/beszel/vega\.yaml`, `secrets/nebula/vega\.yaml` - list only `*vega` plus the two YubiKeys and `*provision-key`. The token's only consumer in the diff is Vega: `modules/services/attic-https.nix:26-28` reads `cloudflare_dns_token` into `credentialFiles.CF_DNS_API_TOKEN_FILE`, and the file is named and scoped to Vega. Impact: electra, an AI laptop host, gains the ability to decrypt a Cloudflare zone-scoped DNS token used only by Vega's ACME service, which is broader than the established per-host scoping convention documented in the adjacent rules (e.g. the `nebula-ca.yaml` and `paseo.yaml` comments justify each audience). No comment explains why electra is included here. Suggested fix: Drop `*electra` unless it is required for a creation/rotation ceremony - `*provision-key` already covers provisioning - and if it is intentional, state the reason in a comment as the neighbouring rules do. ### Tests and validation - No configured deterministic checks. ### Questions - Is `--dns.propagation.wait 60s` a current lego option? `extraLegoFlags` is passed through verbatim, so an unrecognised flag would fail certificate issuance at runtime without any flake-check signal; nothing in the supplied material contains lego's option set. - Does `dnsProvider = "cloudflare"` alone cause nixpkgs to add lego's `--dns` (DNS-01) flag? The vhost is `onlySSL = true` with a single port-443 listener and `useACMEHost`, so no port-80/acme-challenge location exists; the supplied material does not show how nixpkgs composes the lego command. - Which interface does Vega actually expose for its LAN/external connection, and was the reported external-hosts canary served by Vega's own `[::]:443` listener rather than by the existing Pangolin/Newt route? - After this change, which ingress do `.forgejo/workflows/attic-cache.yml` (`ATTIC_SERVER_URL`) and the shared substituter in `modules/common/nix-settings.nix` actually reach, given public DNS for `attic.nimmog.uk` is unchanged by this diff? ### Review limitations - No Nix tooling or live host was available: `nix flake check`, the Vega build, the `service-exposure`/`token-tv-config` flake checks, and the canary were not re-run; their passing status is taken from the pull-request text only. - nixpkgs option definitions and defaults are not part of the supplied material, so I could not verify `networking.getaddrinfo.precedence`'s documented default, `security.acme.certs.*.credentialFiles` semantics, lego's flag names, or nixpkgs' nginx/ACME command composition; I therefore did not report the getaddrinfo hunk as a defect. - No live-host evidence was supplied: interface names, public DNS records for `attic.nimmog.uk`, Cloudflare zone configuration, and nginx/ACME runtime behaviour could not be inspected. - `secrets/acme/vega.yaml` was read only as SOPS ciphertext; the token value and its Cloudflare scope cannot be inspected. - Files outside the changed set were read only for cross-references (callers, imports, flake checks, SOPS rules); I did not audit unchanged code for defects. ### Diff coverage - `.sops.yaml`: **reviewed** — included in a context-limited batch - `README.md`: **reviewed** — included in a context-limited batch - `hosts/vega/default.nix`: **reviewed** — included in a context-limited batch - `modules/common/base.nix`: **reviewed** — included in a context-limited batch - `modules/services/attic-https.nix`: **reviewed** — included in a context-limited batch - `modules/services/atticd.nix`: **reviewed** — included in a context-limited batch - `secrets/acme/vega.yaml`: **reviewed** — included in a context-limited batch <details><summary>Review metadata</summary> - Reviewer: forgejo-ai-review v1 - Model: strata/strata - Guidance loaded: .forgejo/ai-review.md, .forgejo/ai-review.yml, AGENTS.md, docs/auto-update-remediation.md, docs/hermes-fleet-ssh.md, docs/nova-remote-builder.md, README.md - Commits considered: 2 - Previous automated review: none found - Findings: 3 </details>
fix(attic): scope HTTPS module and credentials to Vega
All checks were successful
Build and Push Attic Cache / test (pull_request) Successful in 1m26s
Build and Push Attic Cache / build (pull_request) Has been skipped
Build and Push Attic Cache / pin-lifecycle (pull_request) Has been skipped
Build and Push Attic Cache / remediate (pull_request) Has been skipped
Build and Push Attic Cache / notify-remediation (pull_request) Has been skipped
Build and Push Attic Cache / record-remediation-notify-failure (pull_request) Has been skipped
AI pull-request review / review (pull_request) Successful in 18m54s
Build and Push Attic Cache / test (push) Successful in 1m24s
Build and Push Attic Cache / pin-lifecycle (push) Has been skipped
Build and Push Attic Cache / build (push) Successful in 15m59s
Build and Push Attic Cache / remediate (push) Has been skipped
Build and Push Attic Cache / notify-remediation (push) Has been skipped
Build and Push Attic Cache / record-remediation-notify-failure (push) Has been skipped
e8caed8345
clankbot left a comment

Automated code review

Reviewed commit: e8caed8345d296a2023e2da29b77ec0248bd5e3d

Verdict: Ready to merge

No blocking or important findings were retained, and deterministic checks passed. Suggestions remain advisory.

Overall assessment

After checking the supplied diff against the checked-out tree, I found no defect I can evidence in the changed files. The wiring is internally consistent: modules/services/attic-https.nix:66 proxies to http://127.0.0.1:8081, which matches the unchanged listen = "127.0.0.1:8081" in modules/services/atticd.nix:79, and the forwarded Host $host is attic.nimmog.uk, which is present in allowed-hosts at modules/services/atticd.nix:78; the module is imported and enabled only on Vega (hosts/vega/default.nix:30, :160-164); the four age recipients embedded in secrets/acme/vega.yaml match the new .sops.yaml rule (*vega, *yubikey-nano5c, *yubikey-5-nfc, *provision-key) exactly, and that rule precedes the broad secrets/.*\.yaml$ fallback. The getaddrinfo table in modules/common/base.nix:45 reproduces glibc's documented built-in precedence values verbatim, so it is a no-op restatement rather than a behaviour change. I rejected the prior review's findings: its 'world-readable token' claim rests on a premise contradicted by the supplied tree (many existing declarations omit mode/owner, e.g. modules/services/atticd.nix:23-31, modules/services/newt.nix:56, modules/services/beszel-agent.nix:11, modules/services/bookstack-mcp.nix:68-76), so there is no demonstrated deviation from a repository convention, and I could not verify sops-nix's default mode from supplied material; the 'missing Known Secrets row' finding is located in secrets/README.md, which is not a changed file; the hardcoded hostName/sopsFile and the unverified enp86s0 interface name are design/verification concerns, not demonstrated defects.

Blocking findings

None.

Important findings

None.

Suggestions

None.

Tests and validation

  • No configured deterministic checks.

Questions

  • Is --dns.propagation.wait 60s the flag spelling accepted by the lego version shipped by security.acme? Neither the option name (extraLegoFlags) nor the flag can be checked from this checkout (no nixpkgs available), so a wrong spelling would fail only at certificate issuance, not at nix flake check.
  • Is enp86s0 confirmed against live Vega state? It occurs only at hosts/vega/default.nix:163 in this repository, and hosts/vega/hardware-configuration.nix contains no interface names, so nothing in the checkout corroborates it; networking.firewall.interfaces accepts any key at evaluation time.
  • Is modules/services/attic-https.nix intended to be Vega-only? hostName = "attic.nimmog.uk" (:5) and sopsFile = ../../secrets/acme/vega.yaml (:27) are literals, whereas the comparable host-scoped module modules/services/newt.nix:41-47 makes sopsFile a required option. Please confirm the Vega-only scope is deliberate rather than something to parameterise.
  • Is the precedence table in modules/common/base.nix:45 intended purely to make glibc's documented defaults explicit (it matches them exactly, so it is a no-op), or was a different ordering intended?
  • Does the existing Newt/Pangolin route already occupy port 443 on Vega, and which ingress served the canary's HTTPS check? services.newt is supplied outside this repository, so its listening socket could not be inspected here.

Review limitations

  • No Nix tooling or nixpkgs sources are available in this checkout, so the existence and semantics of networking.getaddrinfo.precedence, security.acme.certs.<name>.extraLegoFlags, credentialFiles, services.atticd, services.newt, and sops-nix's default secret mode/owner could not be verified; the getaddrinfo values were compared only against the comment's own claim and the diff.
  • No live Vega state was supplied: interface existence, port 443 availability, ACME certificate issuance, and which ingress served the canary are unverified.
  • The PR text and the prior review are untrusted evidence; the statement that permanent activation is pending was treated as such, not as verified runtime behaviour.
  • SOPS values are encrypted; I compared only the recipient lists in secrets/acme/vega.yaml against .sops.yaml, not the token's value, scope, or validity.
  • I read only the files needed to check callers, option namespaces, firewall conventions, and secret conventions; I made no edits, ran no repository code, and published nothing.

Diff coverage

  • .sops.yaml: reviewed — included in a context-limited batch
  • README.md: reviewed — included in a context-limited batch
  • hosts/vega/default.nix: reviewed — included in a context-limited batch
  • modules/common/base.nix: reviewed — included in a context-limited batch
  • modules/services/attic-https.nix: reviewed — included in a context-limited batch
  • modules/services/atticd.nix: reviewed — included in a context-limited batch
  • secrets/acme/vega.yaml: reviewed — included in a context-limited batch
Review metadata
  • Reviewer: forgejo-ai-review v1
  • Model: strata/strata
  • Guidance loaded: .forgejo/ai-review.md, .forgejo/ai-review.yml, AGENTS.md, docs/auto-update-remediation.md, docs/hermes-fleet-ssh.md, docs/nova-remote-builder.md, README.md
  • Commits considered: 3
  • Previous automated review: none found
  • Findings: 0
<!-- forgejo-ai-review:v1 --> ## Automated code review Reviewed commit: `e8caed8345d296a2023e2da29b77ec0248bd5e3d` ## Verdict: Ready to merge No blocking or important findings were retained, and deterministic checks passed. Suggestions remain advisory. ### Overall assessment After checking the supplied diff against the checked-out tree, I found no defect I can evidence in the changed files. The wiring is internally consistent: `modules/services/attic-https.nix:66` proxies to `http://127.0.0.1:8081`, which matches the unchanged `listen = "127.0.0.1:8081"` in `modules/services/atticd.nix:79`, and the forwarded `Host $host` is `attic.nimmog.uk`, which is present in `allowed-hosts` at `modules/services/atticd.nix:78`; the module is imported and enabled only on Vega (`hosts/vega/default.nix:30`, `:160-164`); the four age recipients embedded in `secrets/acme/vega.yaml` match the new `.sops.yaml` rule (`*vega`, `*yubikey-nano5c`, `*yubikey-5-nfc`, `*provision-key`) exactly, and that rule precedes the broad `secrets/.*\.yaml$` fallback. The getaddrinfo table in `modules/common/base.nix:45` reproduces glibc's documented built-in precedence values verbatim, so it is a no-op restatement rather than a behaviour change. I rejected the prior review's findings: its 'world-readable token' claim rests on a premise contradicted by the supplied tree (many existing declarations omit `mode`/`owner`, e.g. `modules/services/atticd.nix:23-31`, `modules/services/newt.nix:56`, `modules/services/beszel-agent.nix:11`, `modules/services/bookstack-mcp.nix:68-76`), so there is no demonstrated deviation from a repository convention, and I could not verify sops-nix's default mode from supplied material; the 'missing Known Secrets row' finding is located in `secrets/README.md`, which is not a changed file; the hardcoded `hostName`/`sopsFile` and the unverified `enp86s0` interface name are design/verification concerns, not demonstrated defects. ### Blocking findings None. ### Important findings None. ### Suggestions None. ### Tests and validation - No configured deterministic checks. ### Questions - Is `--dns.propagation.wait 60s` the flag spelling accepted by the lego version shipped by `security.acme`? Neither the option name (`extraLegoFlags`) nor the flag can be checked from this checkout (no nixpkgs available), so a wrong spelling would fail only at certificate issuance, not at `nix flake check`. - Is `enp86s0` confirmed against live Vega state? It occurs only at `hosts/vega/default.nix:163` in this repository, and `hosts/vega/hardware-configuration.nix` contains no interface names, so nothing in the checkout corroborates it; `networking.firewall.interfaces` accepts any key at evaluation time. - Is `modules/services/attic-https.nix` intended to be Vega-only? `hostName = "attic.nimmog.uk"` (`:5`) and `sopsFile = ../../secrets/acme/vega.yaml` (`:27`) are literals, whereas the comparable host-scoped module `modules/services/newt.nix:41-47` makes `sopsFile` a required option. Please confirm the Vega-only scope is deliberate rather than something to parameterise. - Is the precedence table in `modules/common/base.nix:45` intended purely to make glibc's documented defaults explicit (it matches them exactly, so it is a no-op), or was a different ordering intended? - Does the existing Newt/Pangolin route already occupy port 443 on Vega, and which ingress served the canary's HTTPS check? `services.newt` is supplied outside this repository, so its listening socket could not be inspected here. ### Review limitations - No Nix tooling or nixpkgs sources are available in this checkout, so the existence and semantics of `networking.getaddrinfo.precedence`, `security.acme.certs.<name>.extraLegoFlags`, `credentialFiles`, `services.atticd`, `services.newt`, and sops-nix's default secret mode/owner could not be verified; the getaddrinfo values were compared only against the comment's own claim and the diff. - No live Vega state was supplied: interface existence, port 443 availability, ACME certificate issuance, and which ingress served the canary are unverified. - The PR text and the prior review are untrusted evidence; the statement that permanent activation is pending was treated as such, not as verified runtime behaviour. - SOPS values are encrypted; I compared only the recipient lists in `secrets/acme/vega.yaml` against `.sops.yaml`, not the token's value, scope, or validity. - I read only the files needed to check callers, option namespaces, firewall conventions, and secret conventions; I made no edits, ran no repository code, and published nothing. ### Diff coverage - `.sops.yaml`: **reviewed** — included in a context-limited batch - `README.md`: **reviewed** — included in a context-limited batch - `hosts/vega/default.nix`: **reviewed** — included in a context-limited batch - `modules/common/base.nix`: **reviewed** — included in a context-limited batch - `modules/services/attic-https.nix`: **reviewed** — included in a context-limited batch - `modules/services/atticd.nix`: **reviewed** — included in a context-limited batch - `secrets/acme/vega.yaml`: **reviewed** — included in a context-limited batch <details><summary>Review metadata</summary> - Reviewer: forgejo-ai-review v1 - Model: strata/strata - Guidance loaded: .forgejo/ai-review.md, .forgejo/ai-review.yml, AGENTS.md, docs/auto-update-remediation.md, docs/hermes-fleet-ssh.md, docs/nova-remote-builder.md, README.md - Commits considered: 3 - Previous automated review: none found - Findings: 0 </details>
nimmo merged commit e8caed8345 into main 2026-10-14 20:52:57 +01:00
nimmo deleted branch feature/attic-direct-https 2026-10-14 20:52:58 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No assignees
2 participants
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
nimmo/nixos-config!331
No description provided.