Correct Matrix and Pangolin mesh naming #364

Merged
nimmo merged 2 commits from fix/matrix-pangolin-naming into main 2026-10-18 06:57:30 +01:00
Owner

Correct the naming mix-up that assigned the Pangolin mesh name to the Matrix client. Matrix now has its own signed identity. Pangolin and its existing compatibility alias identify the established lighthouse, whose certificate identity is preserved.

Merge same-address host lists so the lighthouse aliases survive together in both discovery address families. Replace the misnamed client certificate/encrypted secret and reconcile the README. Native deployment files remain in the separate router-nebula project.

Validation: full nix flake check passed; targeted discovery assertions passed for all four NixOS hosts. The operator ran just test on Electra, preserving its igpu tier. Local name-resolution and authenticated connectivity acceptance passed for Matrix and both lighthouse names over IPv4 and IPv6. Native service acceptance and credential cleanup are complete. Detailed operational evidence is retained privately in KiwiFS.

Current-head automated review 134 is Ready to merge with no remaining actionable feedback; CI passed. Remaining: normal shared fleet rollout after merge. Closes #363; milestone 42, Correct Matrix and Pangolin mesh naming.

Correct the naming mix-up that assigned the Pangolin mesh name to the Matrix client. Matrix now has its own signed identity. Pangolin and its existing compatibility alias identify the established lighthouse, whose certificate identity is preserved. Merge same-address host lists so the lighthouse aliases survive together in both discovery address families. Replace the misnamed client certificate/encrypted secret and reconcile the README. Native deployment files remain in the separate router-nebula project. Validation: full nix flake check passed; targeted discovery assertions passed for all four NixOS hosts. The operator ran just test on Electra, preserving its igpu tier. Local name-resolution and authenticated connectivity acceptance passed for Matrix and both lighthouse names over IPv4 and IPv6. Native service acceptance and credential cleanup are complete. Detailed operational evidence is retained privately in KiwiFS. Current-head automated review 134 is Ready to merge with no remaining actionable feedback; CI passed. Remaining: normal shared fleet rollout after merge. Closes #363; milestone 42, Correct Matrix and Pangolin mesh naming.
fix(nebula): distinguish Matrix identity from Pangolin lighthouse
All checks were successful
Build and Push Attic Cache / test (pull_request) Successful in 1m30s
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 9m14s
0d26ca9c52
clankbot left a comment

Automated code review

Reviewed commit: 0d26ca9c52d206622e5912288fc194a8437d238f

Verdict: Requires further work

Resolve the blocking or important findings and investigate failed deterministic checks before merging.

Overall assessment

The rename itself is internally consistent: modules/networking/nebula.nix moves the 10.10.0.11 / fd56:f458:569c::11 entries from pangolin to matrix, adds pangolin as an alias of the lighthouse address 10.10.0.1 / fd56:f458:569c::1 in both hostMap and the ipv6HostMap default, and the ipv6HostMap ⊆ hostMap assertion (nebula.nix:135) still holds for every name. The new meshHosts helper is the correct mechanism for two names sharing one address: lib.mapAttrs' collapses the duplicate 10.10.0.1 key and loses an alias, whereas lib.mkMerge over per-name attrsets concatenates both lists, so networking.hosts (nebula.nix:262) and the CoreDNS static zones (nebula.nix:39) now publish both pangolin and pangolin-vps. nebula/certs/pangolin-vps.crt and secrets/nebula/pangolin-vps.yaml are retained, so the lighthouse certificate identity is unchanged, and the three recipients in the new secrets/nebula/matrix.yaml match the generic admin-only rule at .sops.yaml:266 exactly (yubikey-nano5c, yubikey-5-nfc, provision-key). No consumer in the tree resolves the bare pangolin mesh name or 10.10.0.11. The one substantive gap is the retirement handling of the deleted pangolin certificate, which contradicts the documented Nebula retirement rule in README.md.

Blocking findings

None.

Important findings

  • Superseded pangolin certificate deleted without recording its fingerprint in nebula/revoked.json (nebula/certs/pangolin.crt:1; medium confidence)
    The diff deletes nebula/certs/pangolin.crt and secrets/nebula/pangolin.yaml, but nebula/revoked.json still contains only chaos and cosmos, and those retired names keep their public certificates (nebula/certs/chaos.crt, nebula/certs/cosmos.crt) plus their key files' removal. README.md:439-443 states the repository rule: 'Nebula retirement is recorded in nebula/revoked.json using certificate fingerprints... All peers must load the blocklist to revoke their network access... Public certificates remain for audit, while retired encrypted node keys are removed.' README.md:127-128 adds that 'Reissue does not revoke the replaced certificate: its old signed permissions remain valid until expiry or explicit fingerprint blocklisting.' The pki.blocklist every NixOS peer loads is built directly from that file (modules/networking/nebula.nix:245, builtins.attrValues (builtins.fromJSON (builtins.readFile ../../nebula/revoked.json))).
    Impact: The old pangolin certificate — the one that authorized the 10.10.0.11 / fd56:f458:569c::11 address now claimed by matrix — keeps its signed route authority on every peer indefinitely, because its fingerprint is absent from the blocklist that pki.blocklist and the bundle generator (justfiles/nebula.just:484-486) consume. Any stale deployment still holding that certificate stays valid against the new matrix address, and the audit copy of the retired public certificate is lost, so just nebula-list and future reissues can no longer see it.
    Suggested fix: Retire the name through the documented path instead of deleting the artefacts: keep nebula/certs/pangolin.crt in the tree and record its fingerprint by running just nebula-revoke pangolin (the recipe's guard at justfiles/nebula.just:704-709 only refuses registered nixosConfigurations hosts, and pangolin is not one), deleting only secrets/nebula/pangolin.yaml. Then deploy the updated nebula/revoked.json blocklist to NixOS, native and mobile peers.

Suggestions

  • README drops the sentence separating the Pangolin service from the mesh name pangolin (README.md:156; medium confidence)
    The diff deletes 'The Pangolin service uses its separate endpoint https://pangolin.nimmog.uk.' The replacement paragraph only states that the mesh names pangolin and pangolin-vps identify the external lighthouse. The rest of the repository still treats Pangolin as a distinct service reachable at that URL: modules/services/newt.nix:23 defaults nixosConfig.newt.endpoint to https://pangolin.nimmog.uk, README.md:334 documents 'the existing Pangolin HTTPS route at forge.nimmog.uk', README.md:366 describes 'native Newt supplies their Pangolin HTTP port', and secrets/pangolin.yaml / modules/common/pangolin-mcp-launcher.nix configure the Pangolin API. After the change, the bare name pangolin resolves to the lighthouse at 10.10.0.1 (modules/networking/nebula.nix:25).
    Impact: Documentation ambiguity only: a reader looking up how to reach the Pangolin service can now infer that the bare name pangolin is that service, while the change makes it an alias for the VPS lighthouse. No evaluated configuration or deployment behaviour changes, since no supplied consumer resolves the bare pangolin mesh name.
    Suggested fix: Restore a one-line disambiguation inside the same paragraph, e.g. that the Pangolin service is reached over its own HTTPS route (https://pangolin.nimmog.uk) and is not a mesh member, so the mesh alias pangolin is not confused with the service.

Tests and validation

  • No configured deterministic checks.

Questions

  • Is the old pangolin certificate's revocation tracked out of band, or was the name considered never-issued (so no blocklisting is required)? Nothing in the supplied tree records its fingerprint.
  • Is nebula/certs/matrix.crt and secrets/nebula/matrix.yaml consumed only by just nebula-bundle matrix for the non-NixOS Matrix client? Neither file is referenced by any NixOS host (hosts/ contains only electra, lena, lyra, vega), so neither is gated by nix flake check.
  • Does anything resolve pangolin.mesh through a lighthouse's dynamic serve_dns rather than the /etc/hosts entries or the CoreDNS static zones? The retained certificate identity is pangolin-vps (nebula/certs/pangolin-vps.crt), so serve_dns would publish only pangolin-vps.mesh; the bare pangolin alias exists only in the static hosts-file and CoreDNS paths, which covers NixOS members and resolver nodes but not clients pointed directly at lighthouse DNS (e.g. the mobile dns_resolvers value at justfiles/nebula.just:639).

Review limitations

  • No Nix evaluation was run; nix flake check, the generated /etc/hosts, and the CoreDNS configuration were read from source only, not evaluated.
  • Nebula certificate bodies are opaque base64; I cannot confirm from the supplied evidence that nebula/certs/matrix.crt embeds the name matrix and the addresses 10.10.0.11 / fd56:f458:569c::11 now claimed for it in hostMap and ipv6HostMap, nor the fingerprint of the deleted pangolin.crt needed for revoked.json.
  • No runtime or deployment state was inspected: live mesh resolution, the peers' loaded blocklist, and the private operational evidence referenced by the pull request are unobserved.
  • I did not verify any test coverage requirement; no supplied repository rule mandates additional tests for this rename.

Diff coverage

  • README.md: reviewed — included in a context-limited batch
  • modules/networking/nebula.nix: reviewed — included in a context-limited batch
  • nebula/certs/matrix.crt: reviewed — included in a context-limited batch
  • nebula/certs/pangolin.crt: reviewed — included in a context-limited batch
  • secrets/nebula/matrix.yaml: reviewed — included in a context-limited batch
  • secrets/nebula/pangolin.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: 1
  • Previous automated review: none found
  • Findings: 2
<!-- forgejo-ai-review:v1 --> ## Automated code review Reviewed commit: `0d26ca9c52d206622e5912288fc194a8437d238f` ## Verdict: Requires further work Resolve the blocking or important findings and investigate failed deterministic checks before merging. ### Overall assessment The rename itself is internally consistent: `modules/networking/nebula.nix` moves the 10.10.0.11 / fd56:f458:569c::11 entries from `pangolin` to `matrix`, adds `pangolin` as an alias of the lighthouse address `10.10.0.1` / `fd56:f458:569c::1` in both `hostMap` and the `ipv6HostMap` default, and the `ipv6HostMap ⊆ hostMap` assertion (nebula.nix:135) still holds for every name. The new `meshHosts` helper is the correct mechanism for two names sharing one address: `lib.mapAttrs'` collapses the duplicate `10.10.0.1` key and loses an alias, whereas `lib.mkMerge` over per-name attrsets concatenates both lists, so `networking.hosts` (nebula.nix:262) and the CoreDNS static zones (nebula.nix:39) now publish both `pangolin` and `pangolin-vps`. `nebula/certs/pangolin-vps.crt` and `secrets/nebula/pangolin-vps.yaml` are retained, so the lighthouse certificate identity is unchanged, and the three recipients in the new `secrets/nebula/matrix.yaml` match the generic admin-only rule at `.sops.yaml:266` exactly (yubikey-nano5c, yubikey-5-nfc, provision-key). No consumer in the tree resolves the bare `pangolin` mesh name or 10.10.0.11. The one substantive gap is the retirement handling of the deleted `pangolin` certificate, which contradicts the documented Nebula retirement rule in README.md. ### Blocking findings None. ### Important findings - **Superseded `pangolin` certificate deleted without recording its fingerprint in `nebula/revoked.json`** (nebula/certs/pangolin.crt:1; medium confidence) The diff deletes `nebula/certs/pangolin.crt` and `secrets/nebula/pangolin.yaml`, but `nebula/revoked.json` still contains only `chaos` and `cosmos`, and those retired names keep their public certificates (`nebula/certs/chaos.crt`, `nebula/certs/cosmos.crt`) plus their key files' removal. README.md:439-443 states the repository rule: 'Nebula retirement is recorded in `nebula/revoked.json` using certificate fingerprints... All peers must load the blocklist to revoke their network access... Public certificates remain for audit, while retired encrypted node keys are removed.' README.md:127-128 adds that 'Reissue does not revoke the replaced certificate: its old signed permissions remain valid until expiry or explicit fingerprint blocklisting.' The `pki.blocklist` every NixOS peer loads is built directly from that file (modules/networking/nebula.nix:245, `builtins.attrValues (builtins.fromJSON (builtins.readFile ../../nebula/revoked.json))`). Impact: The old `pangolin` certificate — the one that authorized the 10.10.0.11 / fd56:f458:569c::11 address now claimed by `matrix` — keeps its signed route authority on every peer indefinitely, because its fingerprint is absent from the blocklist that `pki.blocklist` and the bundle generator (justfiles/nebula.just:484-486) consume. Any stale deployment still holding that certificate stays valid against the new `matrix` address, and the audit copy of the retired public certificate is lost, so `just nebula-list` and future reissues can no longer see it. Suggested fix: Retire the name through the documented path instead of deleting the artefacts: keep `nebula/certs/pangolin.crt` in the tree and record its fingerprint by running `just nebula-revoke pangolin` (the recipe's guard at justfiles/nebula.just:704-709 only refuses registered `nixosConfigurations` hosts, and `pangolin` is not one), deleting only `secrets/nebula/pangolin.yaml`. Then deploy the updated `nebula/revoked.json` blocklist to NixOS, native and mobile peers. ### Suggestions - **README drops the sentence separating the Pangolin service from the mesh name `pangolin`** (README.md:156; medium confidence) The diff deletes 'The Pangolin service uses its separate endpoint `https://pangolin.nimmog.uk`.' The replacement paragraph only states that the mesh names `pangolin` and `pangolin-vps` identify the external lighthouse. The rest of the repository still treats Pangolin as a distinct service reachable at that URL: `modules/services/newt.nix:23` defaults `nixosConfig.newt.endpoint` to `https://pangolin.nimmog.uk`, README.md:334 documents 'the existing Pangolin HTTPS route at `forge.nimmog.uk`', README.md:366 describes 'native Newt supplies their Pangolin HTTP port', and `secrets/pangolin.yaml` / `modules/common/pangolin-mcp-launcher.nix` configure the Pangolin API. After the change, the bare name `pangolin` resolves to the lighthouse at 10.10.0.1 (modules/networking/nebula.nix:25). Impact: Documentation ambiguity only: a reader looking up how to reach the Pangolin service can now infer that the bare name `pangolin` is that service, while the change makes it an alias for the VPS lighthouse. No evaluated configuration or deployment behaviour changes, since no supplied consumer resolves the bare `pangolin` mesh name. Suggested fix: Restore a one-line disambiguation inside the same paragraph, e.g. that the Pangolin service is reached over its own HTTPS route (`https://pangolin.nimmog.uk`) and is not a mesh member, so the mesh alias `pangolin` is not confused with the service. ### Tests and validation - No configured deterministic checks. ### Questions - Is the old `pangolin` certificate's revocation tracked out of band, or was the name considered never-issued (so no blocklisting is required)? Nothing in the supplied tree records its fingerprint. - Is `nebula/certs/matrix.crt` and `secrets/nebula/matrix.yaml` consumed only by `just nebula-bundle matrix` for the non-NixOS Matrix client? Neither file is referenced by any NixOS host (`hosts/` contains only electra, lena, lyra, vega), so neither is gated by `nix flake check`. - Does anything resolve `pangolin.mesh` through a lighthouse's dynamic `serve_dns` rather than the /etc/hosts entries or the CoreDNS static zones? The retained certificate identity is `pangolin-vps` (nebula/certs/pangolin-vps.crt), so `serve_dns` would publish only `pangolin-vps.mesh`; the bare `pangolin` alias exists only in the static hosts-file and CoreDNS paths, which covers NixOS members and resolver nodes but not clients pointed directly at lighthouse DNS (e.g. the mobile `dns_resolvers` value at justfiles/nebula.just:639). ### Review limitations - No Nix evaluation was run; `nix flake check`, the generated `/etc/hosts`, and the CoreDNS configuration were read from source only, not evaluated. - Nebula certificate bodies are opaque base64; I cannot confirm from the supplied evidence that `nebula/certs/matrix.crt` embeds the name `matrix` and the addresses 10.10.0.11 / fd56:f458:569c::11 now claimed for it in `hostMap` and `ipv6HostMap`, nor the fingerprint of the deleted `pangolin.crt` needed for `revoked.json`. - No runtime or deployment state was inspected: live mesh resolution, the peers' loaded blocklist, and the private operational evidence referenced by the pull request are unobserved. - I did not verify any test coverage requirement; no supplied repository rule mandates additional tests for this rename. ### Diff coverage - `README.md`: **reviewed** — included in a context-limited batch - `modules/networking/nebula.nix`: **reviewed** — included in a context-limited batch - `nebula/certs/matrix.crt`: **reviewed** — included in a context-limited batch - `nebula/certs/pangolin.crt`: **reviewed** — included in a context-limited batch - `secrets/nebula/matrix.yaml`: **reviewed** — included in a context-limited batch - `secrets/nebula/pangolin.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: 1 - Previous automated review: none found - Findings: 2 </details>
Author
Owner

Assessed review 133. The documentation suggestion is valid: restored the explicit Pangolin HTTPS endpoint clarification and documented the distinction between compatibility aliases and signed-identity discovery.

The retirement finding does not apply to this active-host naming correction under the operator's previously accepted replacement policy. Updated README to distinguish routine uncompromised replacement from targeted host retirement, and removed stale mandatory wording that contradicted that policy. Superseded public artifacts remain auditable in Git history and the published recovery checkpoint; the current certificate inventory describes active identities. No new revocation rollout is justified by this correction.

Remaining questions: Matrix's certificate/secret are intentionally used by the existing native bundle workflow. Compatibility discovery uses the maintained static resolver paths; the configured mobile DNS path was checked and its resolver returned the corrected records. Dynamic lighthouse discovery continues to advertise the signed identity. No further source or native-service change is needed for those questions.

Validation: focused documentation/policy consistency review and git diff --check passed. The existing source configuration and live canary validation remain unchanged. Posting this assessment before pushing the documentation fix to trigger a fresh automated review.

Assessed review 133. The documentation suggestion is valid: restored the explicit Pangolin HTTPS endpoint clarification and documented the distinction between compatibility aliases and signed-identity discovery. The retirement finding does not apply to this active-host naming correction under the operator's previously accepted replacement policy. Updated README to distinguish routine uncompromised replacement from targeted host retirement, and removed stale mandatory wording that contradicted that policy. Superseded public artifacts remain auditable in Git history and the published recovery checkpoint; the current certificate inventory describes active identities. No new revocation rollout is justified by this correction. Remaining questions: Matrix's certificate/secret are intentionally used by the existing native bundle workflow. Compatibility discovery uses the maintained static resolver paths; the configured mobile DNS path was checked and its resolver returned the corrected records. Dynamic lighthouse discovery continues to advertise the signed identity. No further source or native-service change is needed for those questions. Validation: focused documentation/policy consistency review and git diff --check passed. The existing source configuration and live canary validation remain unchanged. Posting this assessment before pushing the documentation fix to trigger a fresh automated review.
docs(nebula): clarify replacement policy and Pangolin discovery
All checks were successful
Build and Push Attic Cache / test (pull_request) Successful in 1m30s
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 9m12s
3c3bba7cac
clankbot left a comment

Automated code review

Reviewed commit: 3c3bba7cacb026a316aa6933941da64e0cc88842

Verdict: Ready to merge

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

Overall assessment

The rename is internally consistent in the checked-out code. matrix is added to both hostMap (modules/networking/nebula.nix:32) and ipv6HostMap (:112), so the ipv6HostMap ⊆ hostMap assertion (:180-181) still holds; nebula/certs/matrix.crt and secrets/nebula/matrix.yaml satisfy the cert = ../../nebula/certs + "/${hostname}.crt" / sops.secrets."nebula/${hostname}-key" lookups (:192-193, :172), and the sops key matrix-key matches the nebula.just:290/302 convention secrets/nebula/$NAME.yaml → ["nebula"]["$NAME-key"]. matrix.yaml's three age recipients match the external-node rule .sops.yaml:266 (yubikey-nano5c, yubikey-5-nfc, provision-key), same as the deleted pangolin.yaml. No nixosConfigurations host is named pangolin or matrix (hosts/ contains only electra, lena, lyra, vega), so deleting nebula/certs/pangolin.crt and secrets/nebula/pangolin.yaml leaves no dangling reference; a repo-wide search for pangolin finds only unrelated subsystems (secrets/pangolin.yaml for MCP, modules/profiles/pi-pangolin.nix, pangolin-vps in keys/hermes-fleet-known-hosts). The meshHosts helper is required by the new aliasing: the previous inline lib.mapAttrs' keyed by IP would have collapsed pangolin/pangolin-vps (both 10.10.0.1, and both fd56:f458:569c::1) to one /etc/hosts entry, whereas lib.mkMerge over per-name attrsets concatenates the alias lists. One name-space concern remains open and depends on live device state.

Blocking findings

None.

Important findings

None.

Suggestions

  • Reused mesh name pangolin has two possible owners; the superseded certificate is not blocklisted (modules/networking/nebula.nix:25; medium confidence)
    The change makes pangolin an alias of the lighthouse (pangolin = vpsPrimaryIp; at :25, pangolin = "fd56:f458:569c::1"; at :106), so meshHosts emits pangolin/pangolin.mesh records for 10.10.0.1 in networking.hosts (:262) and coreDnsStaticZones emits a pangolin.mesh zone (:50-70). The certificate and key that previously carried the signed name pangolin for the Matrix client at 10.10.0.11 were deleted (nebula/certs/pangolin.crt, secrets/nebula/pangolin.yaml) rather than revoked: nebula/revoked.json contains only chaos and cosmos, so pki.blocklist (:245-247) does not contain that fingerprint, while lighthouse.serve_dns = true (:150) publishes whatever identities are actually connected.
    Impact: If the Matrix client still has its old pangolin-signed credentials installed and connected, the VPS lighthouse's dynamic DNS can advertise pangolin at 10.10.0.11 while the static hosts/CoreDNS records added by this change advertise pangolin at 10.10.0.1, and the old certificate keeps its route authority indefinitely. The README's new wording makes this optional hardening rather than a required step, so this is only observable if the old credentials were not withdrawn.
    Suggested fix: Confirm the Matrix client's old pangolin-named certificate/key were removed from the device. If they remain, record that fingerprint in nebula/revoked.json under a key that is not pangolin — nebula.just:69/128/328 refuse any name present as a key in that file, so a pangolin key would now block provisioning the active alias — matching the README's instruction to keep the superseded fingerprint separate from active host names.

Tests and validation

  • No configured deterministic checks.

Questions

  • Does nebula/certs/matrix.crt carry the signed name matrix and both networks 10.10.0.11 and fd56:f458:569c::11/64? ipv6HostMap.matrix now emits an AAAA record in /etc/hosts and in the CoreDNS template (nebula.nix:64-67), and the option description at :118 says to add nodes only 'with their certificate rollout', so the v2 IPv6 network needs confirmation via just nebula-list (justfiles/nebula.just:667).
  • Was the Matrix client's previous pangolin-named certificate/key physically removed from the device, or is it still installed and connected to the VPS lighthouse?
  • Should the superseded nebula/certs/pangolin.crt be kept in-tree as chaos.crt/cosmos.crt are kept for retired hosts, or is deletion plus Git history the intended policy for a rename? The revised README states both rules, and no tooling in justfiles/nebula.just produces or consumes 'recovery tags'.
  • Should the README paragraph at line 141, which enumerates the hosts supplied by ipv6HostMap, mention the new pangolin alias alongside the VPS, as it does elsewhere?

Review limitations

  • No Nix evaluation was performed; the PR's nix flake check and four-host discovery assertions are taken as reported, not independently verified.
  • Certificate bodies are opaque base64 in the diff; the signed name, networks, groups and version of nebula/certs/matrix.crt cannot be inspected without running nebula-cert.
  • SOPS values were not decrypted; only key names and age recipients were compared against .sops.yaml.
  • Live device state (which credentials are installed on the Matrix client, the router's dedicated mesh DNS file, and the VPS CoreDNS service) is not in the supplied checkout, so the pangolin name-collision impact is not an observed defect.
  • No test files reference the Nebula module (grep over tests/ found no nebula/hostMap/ipv6HostMap matches); that missing coverage was not treated as a defect.

Diff coverage

  • README.md: reviewed — included in a context-limited batch
  • modules/networking/nebula.nix: reviewed — included in a context-limited batch
  • nebula/certs/matrix.crt: reviewed — included in a context-limited batch
  • nebula/certs/pangolin.crt: reviewed — included in a context-limited batch
  • secrets/nebula/matrix.yaml: reviewed — included in a context-limited batch
  • secrets/nebula/pangolin.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: 1
<!-- forgejo-ai-review:v1 --> ## Automated code review Reviewed commit: `3c3bba7cacb026a316aa6933941da64e0cc88842` ## Verdict: Ready to merge No blocking or important findings were retained, and deterministic checks passed. Suggestions remain advisory. ### Overall assessment The rename is internally consistent in the checked-out code. `matrix` is added to both `hostMap` (modules/networking/nebula.nix:32) and `ipv6HostMap` (:112), so the `ipv6HostMap ⊆ hostMap` assertion (:180-181) still holds; `nebula/certs/matrix.crt` and `secrets/nebula/matrix.yaml` satisfy the `cert = ../../nebula/certs + "/${hostname}.crt"` / `sops.secrets."nebula/${hostname}-key"` lookups (:192-193, :172), and the sops key `matrix-key` matches the `nebula.just:290/302` convention `secrets/nebula/$NAME.yaml` → `["nebula"]["$NAME-key"]`. `matrix.yaml`'s three age recipients match the external-node rule `.sops.yaml:266` (`yubikey-nano5c`, `yubikey-5-nfc`, `provision-key`), same as the deleted `pangolin.yaml`. No `nixosConfigurations` host is named `pangolin` or `matrix` (`hosts/` contains only electra, lena, lyra, vega), so deleting `nebula/certs/pangolin.crt` and `secrets/nebula/pangolin.yaml` leaves no dangling reference; a repo-wide search for `pangolin` finds only unrelated subsystems (`secrets/pangolin.yaml` for MCP, `modules/profiles/pi-pangolin.nix`, `pangolin-vps` in `keys/hermes-fleet-known-hosts`). The `meshHosts` helper is required by the new aliasing: the previous inline `lib.mapAttrs'` keyed by IP would have collapsed `pangolin`/`pangolin-vps` (both `10.10.0.1`, and both `fd56:f458:569c::1`) to one `/etc/hosts` entry, whereas `lib.mkMerge` over per-name attrsets concatenates the alias lists. One name-space concern remains open and depends on live device state. ### Blocking findings None. ### Important findings None. ### Suggestions - **Reused mesh name `pangolin` has two possible owners; the superseded certificate is not blocklisted** (modules/networking/nebula.nix:25; medium confidence) The change makes `pangolin` an alias of the lighthouse (`pangolin = vpsPrimaryIp;` at :25, `pangolin = "fd56:f458:569c::1";` at :106), so `meshHosts` emits `pangolin`/`pangolin.mesh` records for 10.10.0.1 in `networking.hosts` (:262) and `coreDnsStaticZones` emits a `pangolin.mesh` zone (:50-70). The certificate and key that previously carried the signed name `pangolin` for the Matrix client at 10.10.0.11 were deleted (`nebula/certs/pangolin.crt`, `secrets/nebula/pangolin.yaml`) rather than revoked: `nebula/revoked.json` contains only `chaos` and `cosmos`, so `pki.blocklist` (:245-247) does not contain that fingerprint, while `lighthouse.serve_dns = true` (:150) publishes whatever identities are actually connected. Impact: If the Matrix client still has its old `pangolin`-signed credentials installed and connected, the VPS lighthouse's dynamic DNS can advertise `pangolin` at 10.10.0.11 while the static hosts/CoreDNS records added by this change advertise `pangolin` at 10.10.0.1, and the old certificate keeps its route authority indefinitely. The README's new wording makes this optional hardening rather than a required step, so this is only observable if the old credentials were not withdrawn. Suggested fix: Confirm the Matrix client's old `pangolin`-named certificate/key were removed from the device. If they remain, record that fingerprint in `nebula/revoked.json` under a key that is not `pangolin` — `nebula.just:69/128/328` refuse any name present as a key in that file, so a `pangolin` key would now block provisioning the active alias — matching the README's instruction to keep the superseded fingerprint separate from active host names. ### Tests and validation - No configured deterministic checks. ### Questions - Does `nebula/certs/matrix.crt` carry the signed name `matrix` and both networks `10.10.0.11` and `fd56:f458:569c::11/64`? `ipv6HostMap.matrix` now emits an AAAA record in `/etc/hosts` and in the CoreDNS template (`nebula.nix:64-67`), and the option description at :118 says to add nodes only 'with their certificate rollout', so the v2 IPv6 network needs confirmation via `just nebula-list` (`justfiles/nebula.just:667`). - Was the Matrix client's previous `pangolin`-named certificate/key physically removed from the device, or is it still installed and connected to the VPS lighthouse? - Should the superseded `nebula/certs/pangolin.crt` be kept in-tree as `chaos.crt`/`cosmos.crt` are kept for retired hosts, or is deletion plus Git history the intended policy for a rename? The revised README states both rules, and no tooling in `justfiles/nebula.just` produces or consumes 'recovery tags'. - Should the README paragraph at line 141, which enumerates the hosts supplied by `ipv6HostMap`, mention the new `pangolin` alias alongside the VPS, as it does elsewhere? ### Review limitations - No Nix evaluation was performed; the PR's `nix flake check` and four-host discovery assertions are taken as reported, not independently verified. - Certificate bodies are opaque base64 in the diff; the signed name, networks, groups and version of `nebula/certs/matrix.crt` cannot be inspected without running `nebula-cert`. - SOPS values were not decrypted; only key names and age recipients were compared against `.sops.yaml`. - Live device state (which credentials are installed on the Matrix client, the router's dedicated mesh DNS file, and the VPS CoreDNS service) is not in the supplied checkout, so the `pangolin` name-collision impact is not an observed defect. - No test files reference the Nebula module (`grep` over `tests/` found no `nebula`/`hostMap`/`ipv6HostMap` matches); that missing coverage was not treated as a defect. ### Diff coverage - `README.md`: **reviewed** — included in a context-limited batch - `modules/networking/nebula.nix`: **reviewed** — included in a context-limited batch - `nebula/certs/matrix.crt`: **reviewed** — included in a context-limited batch - `nebula/certs/pangolin.crt`: **reviewed** — included in a context-limited batch - `secrets/nebula/matrix.yaml`: **reviewed** — included in a context-limited batch - `secrets/nebula/pangolin.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: 1 </details>
Author
Owner

Assessed current-head review 134: Ready to merge, with CI passed. Its remaining suggestion is conditional on an incomplete deployment; the accepted cutover prerequisites were rechecked successfully, so that condition does not apply. Detailed deployment evidence remains private under repository policy. No additional revocation or source change is justified.

The certificate metadata matches the intended active identity. Public artifact retention follows the now-explicit distinction between active-host replacement and host retirement; Git history and the published checkpoint retain the superseded artifact for audit. The README inventory's VPS entry includes its compatibility aliases, which the adjacent paragraph explicitly names; it is not a missing host.

No actionable feedback remains. Automated follow-up is stopping as ready to merge. The MR remains open and unmerged.

Assessed current-head review 134: Ready to merge, with CI passed. Its remaining suggestion is conditional on an incomplete deployment; the accepted cutover prerequisites were rechecked successfully, so that condition does not apply. Detailed deployment evidence remains private under repository policy. No additional revocation or source change is justified. The certificate metadata matches the intended active identity. Public artifact retention follows the now-explicit distinction between active-host replacement and host retirement; Git history and the published checkpoint retain the superseded artifact for audit. The README inventory's VPS entry includes its compatibility aliases, which the adjacent paragraph explicitly names; it is not a missing host. No actionable feedback remains. Automated follow-up is stopping as ready to merge. The MR remains open and unmerged.
nimmo merged commit bedc355faf into main 2026-10-18 06:57:29 +01:00
nimmo deleted branch fix/matrix-pangolin-naming 2026-10-18 06:57:30 +01:00
Sign in to join this conversation.
No reviewers
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!364
No description provided.