Enroll Pangolin Matrix client in Nebula #338

Merged
nimmo merged 4 commits from feat/pangolin-nebula into main 2026-10-15 14:21:59 +01:00
Owner

The Matrix host formerly called ES2 needs normal mesh access as a main-fleet client. Enroll its Nebula identity as pangolin while retaining pangolin-vps as the existing external lighthouse. Totalgeek remains outside the mesh.

  • Add the client's signed public certificate and scoped encrypted credentials.
  • Add both confirmed overlay addresses to the shared host and resolver inventory.
  • Document the distinction between the new client, existing lighthouse and separately managed service.

Validation: nix flake check passes. The certificate's CA signature, expected identity/networks/groups and private-key pairing were verified without exposing key material. The native Ubuntu config passed validation before activation. Live IPv4/IPv6 overlay traffic, authenticated SSH over both families, lighthouse/router reachability and mesh DNS checks pass. Existing public application endpoints and container health remain good. The native service is active and enabled; its temporary activation rollback timer was cancelled after acceptance. Temporary local and remote credential staging was shredded/removed, retaining only the protected installed key and recovery records. Upstream stdenv deprecation warnings were reviewed and are unrelated.

Native setup files remain in the separate router-nebula project, as requested. Detailed operational records are private in KiwiFS. The live OS hostname currently reports matrix; the Nebula identity pangolin does not require changing it.

AI review: current-head review 85 is Ready to merge with zero findings or suggestions; relevant CI passed. Remaining: normal deployment of the shared NixOS discovery metadata after merge. This source commit does not modify public application routing or firewall policy. No extra credentials are needed from the user.

Closes #337. Milestone: Pangolin Mesh Enrollment (39).

Also records the explicitly requested automated MR follow-up process in AGENTS.md: five-minute review polling, a 30-minute response window per submission/push, valid-feedback fixes with validation and comments before pushing, and an explicit stop on readiness or timeout. This documentation received focused review and git diff --check validation. The current submission is subject to that process; no merge is authorized by this request.

The Matrix host formerly called ES2 needs normal mesh access as a main-fleet client. Enroll its Nebula identity as pangolin while retaining pangolin-vps as the existing external lighthouse. Totalgeek remains outside the mesh. - Add the client's signed public certificate and scoped encrypted credentials. - Add both confirmed overlay addresses to the shared host and resolver inventory. - Document the distinction between the new client, existing lighthouse and separately managed service. Validation: nix flake check passes. The certificate's CA signature, expected identity/networks/groups and private-key pairing were verified without exposing key material. The native Ubuntu config passed validation before activation. Live IPv4/IPv6 overlay traffic, authenticated SSH over both families, lighthouse/router reachability and mesh DNS checks pass. Existing public application endpoints and container health remain good. The native service is active and enabled; its temporary activation rollback timer was cancelled after acceptance. Temporary local and remote credential staging was shredded/removed, retaining only the protected installed key and recovery records. Upstream stdenv deprecation warnings were reviewed and are unrelated. Native setup files remain in the separate router-nebula project, as requested. Detailed operational records are private in KiwiFS. The live OS hostname currently reports matrix; the Nebula identity pangolin does not require changing it. AI review: current-head review 85 is Ready to merge with zero findings or suggestions; relevant CI passed. Remaining: normal deployment of the shared NixOS discovery metadata after merge. This source commit does not modify public application routing or firewall policy. No extra credentials are needed from the user. Closes #337. Milestone: Pangolin Mesh Enrollment (39). Also records the explicitly requested automated MR follow-up process in AGENTS.md: five-minute review polling, a 30-minute response window per submission/push, valid-feedback fixes with validation and comments before pushing, and an explicit stop on readiness or timeout. This documentation received focused review and git diff --check validation. The current submission is subject to that process; no merge is authorized by this request.
docs: record automated MR review follow-up process
Some checks failed
Build and Push Attic Cache / test (pull_request) Successful in 1m29s
Build and Push Attic Cache / pin-lifecycle (pull_request) Has been skipped
Build and Push Attic Cache / build (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) Failing after 3m8s
2c1d576493
Author
Owner

First scheduled review check: the CI test passed, but the automated review run failed before publishing any review (review CLI exited with code 1). No code findings are available. Retrying that review run once on the same head; no source changes or extra push are warranted. The original 30-minute response window remains in effect.

First scheduled review check: the CI test passed, but the automated review run failed before publishing any review (review CLI exited with code 1). No code findings are available. Retrying that review run once on the same head; no source changes or extra push are warranted. The original 30-minute response window remains in effect.
Author
Owner

The authorized 30-minute automated-review response window has expired, and scheduled polling has stopped. No review report was available at the final eligible check. Both the original review invocation and one manual retry failed before publishing findings (review CLI exit code 1). The CI test passed. No source changes were justified by these execution failures. MR remains open and unmerged; review readiness has not been established.

The authorized 30-minute automated-review response window has expired, and scheduled polling has stopped. No review report was available at the final eligible check. Both the original review invocation and one manual retry failed before publishing findings (review CLI exit code 1). The CI test passed. No source changes were justified by these execution failures. MR remains open and unmerged; review readiness has not been established.
clankbot left a comment

Automated code review

Reviewed commit: 2c1d57649354a6f6b0e4b373cf7137f691fb7213

Verdict: Ready to merge

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

Overall assessment

The change adds a new Nebula client identity pangolin (the Matrix host formerly called ES2): a signed public certificate at nebula/certs/pangolin.crt, a scoped SOPS-encrypted node key at secrets/nebula/pangolin.yaml, and matching entries in modules/networking/nebula.nix (hostMap 10.10.0.11 and ipv6HostMap default fd56:f458:569c::11), plus README/AGENTS.md prose. The internal consistency checks I could perform hold: the two maps stay paired, so the module assertion lib.all (name: hostMap ? ${name}) (builtins.attrNames cfg.ipv6HostMap) (modules/networking/nebula.nix:161) is satisfied; the addresses 10.10.0.11 / fd56:f458:569c::11 do not collide with any other entry in the checked-out hostMap/ipv6HostMap (pangolin-vps 1, vega 2, lyra 3, nova 4, mass-storage 5, media1 6, nimmog-de 7, electra 20, lena 21, router, phone 30); pangolin is not in nebula/revoked.json; and the new secret file's three age recipients (both YubiKeys plus the provisioning key) match the explicit admin-only secrets/nebula/[^/]+\.yaml$ rule for external nodes (.sops.yaml:266), which is the correct scope for a non-NixOS client. The key structure nebula: pangolin-key follows the existing per-node convention. One documentation inconsistency is demonstrable: the README sentence enumerating the ipv6HostMap inventory was not extended, so it now understates the map this same change widened.

Blocking findings

None.

Important findings

None.

Suggestions

  • README inventory of nixosConfig.nebula.ipv6HostMap now omits pangolin (README.md:147; high confidence)
    README.md lines 145-147 state: "nixosConfig.nebula.ipv6HostMap supplies hosts-file and DNS AAAA records for confirmed certificate addresses across the fleet: the VPS, router, phone, Vega, Lyra, Lena, Electra, Nova, mass-storage, Media1 and Nimmog-de." The same MR adds pangolin = "fd56:f458:569c::11" to that option's default in modules/networking/nebula.nix (and pangolin = "10.10.0.11" to hostMap), and the new README text at lines 158-159 documents the node only as being distinct from pangolin-vps.
    Impact: The prose inventory is now stale relative to the module default it describes, so an operator or agent using README to enumerate nodes with AAAA/hosts-file records would miss pangolin; the module itself is unaffected and evaluation is unchanged.
    Suggested fix: Extend the existing enumeration to name pangolin alongside the other confirmed addresses (or reword it to say the list follows ipv6HostMap in modules/networking/nebula.nix), and stage the README edit with the rest of the commit as AGENTS.md instructs.

Tests and validation

  • No configured deterministic checks.

Questions

  • The bare name pangolin is already used in this repository for unrelated things (secrets/pangolin.yaml, modules/mcp/pangolin.nix, packages/mcp-pangolin, modules/profiles/pi-pangolin.nix, and the public endpoint https://pangolin.nimmog.uk in modules/services/newt.nix). After this change every NixOS member also gets bare /etc/hosts entries pangolin and pangolin.mesh for 10.10.0.11. Was that naming overlap considered acceptable, or should the node use a name that does not read as the Pangolin service?
  • The PR states the client's live OS hostname reports matrix while its Nebula identity is pangolin. modules/networking/nebula.nix derives overlayIp from hostMap.${config.networking.hostName}; is the host intended to stay permanently outside the flake (owned only by ~/Projects/router-nebula), i.e. never a NixOS target named matrix?

Review limitations

  • I could not decode or inspect nebula/certs/pangolin.crt: the available tools are read/grep/find/ls only, so the certificate's signed identity, networks, groups and its pairing with the encrypted node key remain unverified from supplied evidence (the PR text asserts they were checked).
  • I could not run nix flake check, just test, or any repository code, so evaluation and deployment claims in the PR text (flake check passing, native Ubuntu config validation, live overlay/SSH/DNS checks, service enabled, rollback timer cancelled) are taken as stated, not verified.
  • The native Ubuntu client configuration and its router endpoints live in the separate ~/Projects/router-nebula project, which is not part of this checkout; I could not confirm that it references nebula/certs/pangolin.crt and secrets/nebula/pangolin.yaml with the expected paths and key name.
  • The new AGENTS.md paragraph describes a polling/response workflow that depends on live Forgejo review behaviour; nothing in this checkout lets me verify the five-minute/30-minute cadence or that current-head reviews are matched reliably.
  • Only the five files listed as changed were supplied as diffs; I inspected other repository files (.sops.yaml, nebula/revoked.json, justfiles/nebula.just, modules/networking/nebula.nix, README/AGENTS context) as checked-out evidence, and I did not verify the full history or CI results for the branch.
  • No deterministic review checks were configured for this repository (the guidance states flake validation is performed by the attic-cache workflow, and the review action runs in a container without Nix), so no factual check results were available to report.

Diff coverage

  • AGENTS.md: reviewed — included in a context-limited batch
  • README.md: reviewed — included in a context-limited batch
  • modules/networking/nebula.nix: reviewed — included in a context-limited batch
  • nebula/certs/pangolin.crt: 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: `2c1d57649354a6f6b0e4b373cf7137f691fb7213` ## Verdict: Ready to merge No blocking or important findings were retained, and deterministic checks passed. Suggestions remain advisory. ### Overall assessment The change adds a new Nebula client identity `pangolin` (the Matrix host formerly called ES2): a signed public certificate at `nebula/certs/pangolin.crt`, a scoped SOPS-encrypted node key at `secrets/nebula/pangolin.yaml`, and matching entries in `modules/networking/nebula.nix` (`hostMap` 10.10.0.11 and `ipv6HostMap` default fd56:f458:569c::11), plus README/AGENTS.md prose. The internal consistency checks I could perform hold: the two maps stay paired, so the module assertion `lib.all (name: hostMap ? ${name}) (builtins.attrNames cfg.ipv6HostMap)` (modules/networking/nebula.nix:161) is satisfied; the addresses 10.10.0.11 / fd56:f458:569c::11 do not collide with any other entry in the checked-out `hostMap`/`ipv6HostMap` (pangolin-vps 1, vega 2, lyra 3, nova 4, mass-storage 5, media1 6, nimmog-de 7, electra 20, lena 21, router, phone 30); `pangolin` is not in `nebula/revoked.json`; and the new secret file's three age recipients (both YubiKeys plus the provisioning key) match the explicit admin-only `secrets/nebula/[^/]+\.yaml$` rule for external nodes (.sops.yaml:266), which is the correct scope for a non-NixOS client. The key structure `nebula: pangolin-key` follows the existing per-node convention. One documentation inconsistency is demonstrable: the README sentence enumerating the `ipv6HostMap` inventory was not extended, so it now understates the map this same change widened. ### Blocking findings None. ### Important findings None. ### Suggestions - **README inventory of `nixosConfig.nebula.ipv6HostMap` now omits `pangolin`** (README.md:147; high confidence) README.md lines 145-147 state: "`nixosConfig.nebula.ipv6HostMap` supplies hosts-file and DNS AAAA records for confirmed certificate addresses across the fleet: the VPS, router, phone, Vega, Lyra, Lena, Electra, Nova, mass-storage, Media1 and Nimmog-de." The same MR adds `pangolin = "fd56:f458:569c::11"` to that option's default in `modules/networking/nebula.nix` (and `pangolin = "10.10.0.11"` to `hostMap`), and the new README text at lines 158-159 documents the node only as being distinct from `pangolin-vps`. Impact: The prose inventory is now stale relative to the module default it describes, so an operator or agent using README to enumerate nodes with AAAA/hosts-file records would miss `pangolin`; the module itself is unaffected and evaluation is unchanged. Suggested fix: Extend the existing enumeration to name `pangolin` alongside the other confirmed addresses (or reword it to say the list follows `ipv6HostMap` in `modules/networking/nebula.nix`), and stage the README edit with the rest of the commit as AGENTS.md instructs. ### Tests and validation - No configured deterministic checks. ### Questions - The bare name `pangolin` is already used in this repository for unrelated things (`secrets/pangolin.yaml`, `modules/mcp/pangolin.nix`, `packages/mcp-pangolin`, `modules/profiles/pi-pangolin.nix`, and the public endpoint `https://pangolin.nimmog.uk` in `modules/services/newt.nix`). After this change every NixOS member also gets bare `/etc/hosts` entries `pangolin` and `pangolin.mesh` for 10.10.0.11. Was that naming overlap considered acceptable, or should the node use a name that does not read as the Pangolin service? - The PR states the client's live OS hostname reports `matrix` while its Nebula identity is `pangolin`. `modules/networking/nebula.nix` derives `overlayIp` from `hostMap.${config.networking.hostName}`; is the host intended to stay permanently outside the flake (owned only by `~/Projects/router-nebula`), i.e. never a NixOS target named `matrix`? ### Review limitations - I could not decode or inspect `nebula/certs/pangolin.crt`: the available tools are read/grep/find/ls only, so the certificate's signed identity, networks, groups and its pairing with the encrypted node key remain unverified from supplied evidence (the PR text asserts they were checked). - I could not run `nix flake check`, `just test`, or any repository code, so evaluation and deployment claims in the PR text (flake check passing, native Ubuntu config validation, live overlay/SSH/DNS checks, service enabled, rollback timer cancelled) are taken as stated, not verified. - The native Ubuntu client configuration and its router endpoints live in the separate `~/Projects/router-nebula` project, which is not part of this checkout; I could not confirm that it references `nebula/certs/pangolin.crt` and `secrets/nebula/pangolin.yaml` with the expected paths and key name. - The new AGENTS.md paragraph describes a polling/response workflow that depends on live Forgejo review behaviour; nothing in this checkout lets me verify the five-minute/30-minute cadence or that current-head reviews are matched reliably. - Only the five files listed as changed were supplied as diffs; I inspected other repository files (`.sops.yaml`, `nebula/revoked.json`, `justfiles/nebula.just`, `modules/networking/nebula.nix`, README/AGENTS context) as checked-out evidence, and I did not verify the full history or CI results for the branch. - No deterministic review checks were configured for this repository (the guidance states flake validation is performed by the attic-cache workflow, and the review action runs in a container without Nix), so no factual check results were available to report. ### Diff coverage - `AGENTS.md`: **reviewed** — included in a context-limited batch - `README.md`: **reviewed** — included in a context-limited batch - `modules/networking/nebula.nix`: **reviewed** — included in a context-limited batch - `nebula/certs/pangolin.crt`: **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 the current-head review: the README inventory omission is valid and is now corrected to include the Pangolin Matrix client. Validation: focused comparison with the module inventory and git diff --check passed; this follow-up changes documentation only.

On the questions: the client identity is intentionally distinct from the Pangolin application/service names; those use their own configuration paths and fully qualified service endpoints. The client currently uses a native Ubuntu deployment maintained outside this flake, so its OS hostname does not participate in the NixOS hostname lookup. Any future NixOS migration will need an explicit inventory/hostname decision at that time; no such migration is part of this MR.

Posting this explanation before pushing the documentation fix. The push will start a fresh current-head review and 30-minute response window under the recorded process. No merge is being performed.

Assessed the current-head review: the README inventory omission is valid and is now corrected to include the Pangolin Matrix client. Validation: focused comparison with the module inventory and git diff --check passed; this follow-up changes documentation only. On the questions: the client identity is intentionally distinct from the Pangolin application/service names; those use their own configuration paths and fully qualified service endpoints. The client currently uses a native Ubuntu deployment maintained outside this flake, so its OS hostname does not participate in the NixOS hostname lookup. Any future NixOS migration will need an explicit inventory/hostname decision at that time; no such migration is part of this MR. Posting this explanation before pushing the documentation fix. The push will start a fresh current-head review and 30-minute response window under the recorded process. No merge is being performed.
docs: include Pangolin in dual-stack mesh inventory
All checks were successful
Build and Push Attic Cache / test (pull_request) Successful in 1m35s
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 14m4s
144eba1b1a
clankbot left a comment

Automated code review

Reviewed commit: 144eba1b1ae2022ec3324e08e288fbe2664726be

Verdict: Ready to merge

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

Overall assessment

The supplied changes register a new external Nebula identity pangolin (the Matrix client formerly called ES2) at overlay IPv4 10.10.0.11 / IPv6 fd56:f458:569c::11. I checked the changed files against the checked-out code and found no evaluation-breaking or fleet-breaking defect: the hostMap and ipv6HostMap additions are mutually consistent, so the module assertion lib.all (name: hostMap ? ${name}) (builtins.attrNames cfg.ipv6HostMap) (modules/networking/nebula.nix) still holds; 10.10.0.11 and fd56:f458:569c::11 are unique — grep for 10\.10\.0\.11 and ::11 matches only the two new lines, and the router keeps 10.10.0.10/::10; no registered host overrides nixosConfig.nebula.ipv6HostMap, so the module default is the effective value on electra, lena, vega and lyra. Because no NixOS host is named pangolin, the per-host sops.secrets."nebula/${hostname}-key" and nebula/certs/${hostname}.crt lookups in the module are untouched. The new secret file follows the external-node convention exactly: its key path nebula.pangolin-key matches the path used by justfiles/nebula.just (sops ... --extract '["nebula"]["'"$NAME"'-key"]'), and its three recipients (age1yubikey1qf8kmph… , age1yubikey1q0srxtg… , age1vlc2eans4…) are byte-identical to the *yubikey-nano5c, *yubikey-5-nfc, *provision-key group defined at .sops.yaml lines 12/14/16 and selected by the generic external-node rule path_regex: secrets/nebula/[^/]+\.yaml$ (.sops.yaml line 266), the same set used by secrets/nebula/pangolin-vps.yaml. nebula/revoked.json contains no pangolin/ES2 entry, so just nebula-bundle/nebula-revoke guards are not affected. The README and AGENTS.md edits are prose only. The one substantive observation is an operator-facing naming ambiguity: the bare mesh key pangolin collides with an identifier already used throughout this repository for the unrelated Pangolin/Newt service and model provider.

Blocking findings

None.

Important findings

None.

Suggestions

  • Bare mesh name pangolin reuses an identifier that already denotes the Pangolin service elsewhere in the tree (modules/networking/nebula.nix:32; medium confidence)
    The added pangolin = "10.10.0.11"; key in hostMap (and pangolin = "fd56:f458:569c::11"; in ipv6HostMap) is consumed by networking.hosts, which emits both the bare name and <name>.mesh on every NixOS member, and by coreDnsStaticZones, which emits a pangolin.mesh A/AAAA record. The same bare identifier already denotes an unrelated subsystem in the checked-out code: modules/services/newt.nix defaults its endpoint to https://pangolin.nimmog.uk, secrets/pangolin.yaml holds pangolin/mcp/{url,token}, modules/common/default-config.nix defines a pangolin enable option, modules/profiles/pi-pangolin.nix registers a pangolin model provider, and README.md lines 173/263/292 use Pangolin for that service. The README note added in this change (README.md lines 159-160) disambiguates pangolin only against pangolin-vps, not against the service.
    Impact: No evaluation or deployment failure: pangolin and pangolin-vps are distinct attribute keys with distinct IPs, so /etc/hosts and the resolver zones remain well-formed. The risk is operator-facing only — after this change a bare pangolin/pangolin.mesh lookup on a NixOS member resolves to the Matrix client's overlay IP, while the same word in this repository's configuration, secrets and documentation means the reverse-proxy/API service, so operator notes and shell commands using the bare name are ambiguous.
    Suggested fix: If the bare name is intentional, extend the README/AGENTS.md note to state that the mesh key pangolin is the Matrix client and never the Pangolin service; otherwise pick a client-identifying inventory key (e.g. matrix or es2-matrix) and use it consistently in hostMap, ipv6HostMap, nebula/certs/<name>.crt and secrets/nebula/<name>.yaml. No code change is required if the current name is deliberate.

Tests and validation

  • No configured deterministic checks.

Questions

  • Was any NixOS member re-activated, or just test/just test-remote run, after this change? The new entries live in the module's let bindings and the ipv6HostMap option default, and no registered host overrides that option, so the /etc/hosts lines and CoreDNS static zones change on electra, lena, vega and lyra; the supplied evidence only describes the client's own native host.
  • Is the bare name pangolin intended to be reachable from the NixOS members? Nothing in the supplied material shows a consumer of pangolin/pangolin.mesh, and neither map contains a matrix entry, so I could not tell whether the client's own configuration uses these names.
  • Should the certificate's declared networks be cross-checked against the new map entries? I could not run nebula-cert print here, so the certificate's networks, groups, expiry and CA signature are taken from the pull-request text rather than verified against 10.10.0.11/16 and fd56:f458:569c::11/64.
  • Is keys/hermes-fleet-known-hosts (which pins pangolin-vps but has no entry for the new node) in scope for this milestone? It is not a changed file, so I did not treat the omission as a finding.
  • The new AGENTS.md paragraph instructs pushing feedback-fix commits, while the preceding 'When publishing' rule says not to push after committing unless the user asked to publish or open an MR. Is that tension acceptable, or should the new paragraph state that pushing is authorized only within the review follow-up loop?

Review limitations

  • No Nix, nebula-cert, sops or shell execution was performed, so nix flake check, the certificate's networks/groups/expiry/CA signature, and the private-key pairing are taken from the pull-request text rather than verified; I verified only the file contents and the recipient/key-path conventions by reading the checked-out files.
  • I did not decode the certificate payload myself, so the claim that its identity field matches the inventory key pangolin is unverified here.
  • The separate router-nebula project, the live hosts, the client's native Nebula configuration, KiwiFS operational records, Forgejo issue #337 / milestone 39, and CI (including the attic-cache workflow) were not supplied and could not be inspected.
  • I read only the base-branch-to-head diff as supplied, so I cannot confirm whether an earlier ES2 Nebula certificate or node key existed in history and was intentionally left unrevoked in nebula/revoked.json.
  • Whether the client actually connects at 10.10.0.11 / fd56:f458:569c::11, and whether the router lighthouse serves it, depends on files outside this repository and was not verified.

Diff coverage

  • AGENTS.md: reviewed — included in a context-limited batch
  • README.md: reviewed — included in a context-limited batch
  • modules/networking/nebula.nix: reviewed — included in a context-limited batch
  • nebula/certs/pangolin.crt: 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: 3
  • Previous automated review: none found
  • Findings: 1
<!-- forgejo-ai-review:v1 --> ## Automated code review Reviewed commit: `144eba1b1ae2022ec3324e08e288fbe2664726be` ## Verdict: Ready to merge No blocking or important findings were retained, and deterministic checks passed. Suggestions remain advisory. ### Overall assessment The supplied changes register a new external Nebula identity `pangolin` (the Matrix client formerly called ES2) at overlay IPv4 10.10.0.11 / IPv6 fd56:f458:569c::11. I checked the changed files against the checked-out code and found no evaluation-breaking or fleet-breaking defect: the `hostMap` and `ipv6HostMap` additions are mutually consistent, so the module assertion `lib.all (name: hostMap ? ${name}) (builtins.attrNames cfg.ipv6HostMap)` (modules/networking/nebula.nix) still holds; 10.10.0.11 and fd56:f458:569c::11 are unique — grep for `10\.10\.0\.11` and `::11` matches only the two new lines, and the router keeps 10.10.0.10/::10; no registered host overrides `nixosConfig.nebula.ipv6HostMap`, so the module default is the effective value on electra, lena, vega and lyra. Because no NixOS host is named `pangolin`, the per-host `sops.secrets."nebula/${hostname}-key"` and `nebula/certs/${hostname}.crt` lookups in the module are untouched. The new secret file follows the external-node convention exactly: its key path `nebula.pangolin-key` matches the path used by `justfiles/nebula.just` (`sops ... --extract '["nebula"]["'"$NAME"'-key"]'`), and its three recipients (age1yubikey1qf8kmph… , age1yubikey1q0srxtg… , age1vlc2eans4…) are byte-identical to the `*yubikey-nano5c`, `*yubikey-5-nfc`, `*provision-key` group defined at .sops.yaml lines 12/14/16 and selected by the generic external-node rule `path_regex: secrets/nebula/[^/]+\.yaml$` (.sops.yaml line 266), the same set used by `secrets/nebula/pangolin-vps.yaml`. `nebula/revoked.json` contains no `pangolin`/ES2 entry, so `just nebula-bundle`/`nebula-revoke` guards are not affected. The README and AGENTS.md edits are prose only. The one substantive observation is an operator-facing naming ambiguity: the bare mesh key `pangolin` collides with an identifier already used throughout this repository for the unrelated Pangolin/Newt service and model provider. ### Blocking findings None. ### Important findings None. ### Suggestions - **Bare mesh name `pangolin` reuses an identifier that already denotes the Pangolin service elsewhere in the tree** (modules/networking/nebula.nix:32; medium confidence) The added `pangolin = "10.10.0.11";` key in `hostMap` (and `pangolin = "fd56:f458:569c::11";` in `ipv6HostMap`) is consumed by `networking.hosts`, which emits both the bare name and `<name>.mesh` on every NixOS member, and by `coreDnsStaticZones`, which emits a `pangolin.mesh` A/AAAA record. The same bare identifier already denotes an unrelated subsystem in the checked-out code: `modules/services/newt.nix` defaults its endpoint to `https://pangolin.nimmog.uk`, `secrets/pangolin.yaml` holds `pangolin/mcp/{url,token}`, `modules/common/default-config.nix` defines a `pangolin` enable option, `modules/profiles/pi-pangolin.nix` registers a `pangolin` model provider, and README.md lines 173/263/292 use `Pangolin` for that service. The README note added in this change (README.md lines 159-160) disambiguates `pangolin` only against `pangolin-vps`, not against the service. Impact: No evaluation or deployment failure: `pangolin` and `pangolin-vps` are distinct attribute keys with distinct IPs, so /etc/hosts and the resolver zones remain well-formed. The risk is operator-facing only — after this change a bare `pangolin`/`pangolin.mesh` lookup on a NixOS member resolves to the Matrix client's overlay IP, while the same word in this repository's configuration, secrets and documentation means the reverse-proxy/API service, so operator notes and shell commands using the bare name are ambiguous. Suggested fix: If the bare name is intentional, extend the README/AGENTS.md note to state that the mesh key `pangolin` is the Matrix client and never the Pangolin service; otherwise pick a client-identifying inventory key (e.g. `matrix` or `es2-matrix`) and use it consistently in `hostMap`, `ipv6HostMap`, `nebula/certs/<name>.crt` and `secrets/nebula/<name>.yaml`. No code change is required if the current name is deliberate. ### Tests and validation - No configured deterministic checks. ### Questions - Was any NixOS member re-activated, or `just test`/`just test-remote` run, after this change? The new entries live in the module's `let` bindings and the `ipv6HostMap` option default, and no registered host overrides that option, so the /etc/hosts lines and CoreDNS static zones change on electra, lena, vega and lyra; the supplied evidence only describes the client's own native host. - Is the bare name `pangolin` intended to be reachable from the NixOS members? Nothing in the supplied material shows a consumer of `pangolin`/`pangolin.mesh`, and neither map contains a `matrix` entry, so I could not tell whether the client's own configuration uses these names. - Should the certificate's declared networks be cross-checked against the new map entries? I could not run `nebula-cert print` here, so the certificate's networks, groups, expiry and CA signature are taken from the pull-request text rather than verified against 10.10.0.11/16 and fd56:f458:569c::11/64. - Is `keys/hermes-fleet-known-hosts` (which pins `pangolin-vps` but has no entry for the new node) in scope for this milestone? It is not a changed file, so I did not treat the omission as a finding. - The new AGENTS.md paragraph instructs pushing feedback-fix commits, while the preceding 'When publishing' rule says not to push after committing unless the user asked to publish or open an MR. Is that tension acceptable, or should the new paragraph state that pushing is authorized only within the review follow-up loop? ### Review limitations - No Nix, nebula-cert, sops or shell execution was performed, so `nix flake check`, the certificate's networks/groups/expiry/CA signature, and the private-key pairing are taken from the pull-request text rather than verified; I verified only the file contents and the recipient/key-path conventions by reading the checked-out files. - I did not decode the certificate payload myself, so the claim that its identity field matches the inventory key `pangolin` is unverified here. - The separate `router-nebula` project, the live hosts, the client's native Nebula configuration, KiwiFS operational records, Forgejo issue #337 / milestone 39, and CI (including the attic-cache workflow) were not supplied and could not be inspected. - I read only the base-branch-to-head diff as supplied, so I cannot confirm whether an earlier ES2 Nebula certificate or node key existed in history and was intentionally left unrevoked in `nebula/revoked.json`. - Whether the client actually connects at 10.10.0.11 / fd56:f458:569c::11, and whether the router lighthouse serves it, depends on files outside this repository and was not verified. ### Diff coverage - `AGENTS.md`: **reviewed** — included in a context-limited batch - `README.md`: **reviewed** — included in a context-limited batch - `modules/networking/nebula.nix`: **reviewed** — included in a context-limited batch - `nebula/certs/pangolin.crt`: **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: 3 - Previous automated review: none found - Findings: 1 </details>
Author
Owner

Review 84 is Ready to merge and current-head CI passed. Its naming suggestion is useful: README now explicitly distinguishes the Matrix client's mesh names from the Pangolin service endpoint. Also clarified that the documented review-follow-up process operates within user-authorized publication and does not independently authorize pushes. Validation: focused documentation review and git diff --check passed.

The remaining questions do not require additional source changes: normal NixOS discovery deployment remains explicitly pending merge; the new mesh names are intentional fleet discovery entries; certificate identity, networks, signature and key pairing were already verified during enrollment as recorded in the MR validation. Hermes SSH trust inventory is a separate enrollment scope, not implicitly expanded by mesh membership.

Commenting before pushing these documentation clarifications. A fresh review window will follow; no merge is being performed.

Review 84 is Ready to merge and current-head CI passed. Its naming suggestion is useful: README now explicitly distinguishes the Matrix client's mesh names from the Pangolin service endpoint. Also clarified that the documented review-follow-up process operates within user-authorized publication and does not independently authorize pushes. Validation: focused documentation review and git diff --check passed. The remaining questions do not require additional source changes: normal NixOS discovery deployment remains explicitly pending merge; the new mesh names are intentional fleet discovery entries; certificate identity, networks, signature and key pairing were already verified during enrollment as recorded in the MR validation. Hermes SSH trust inventory is a separate enrollment scope, not implicitly expanded by mesh membership. Commenting before pushing these documentation clarifications. A fresh review window will follow; no merge is being performed.
docs: clarify Pangolin naming and review publication scope
All checks were successful
Build and Push Attic Cache / test (pull_request) Successful in 1m31s
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 12m19s
b3523aad91
clankbot left a comment

Automated code review

Reviewed commit: b3523aad9101773fc8e54efe9eb9b6bc410ec78d

Verdict: Ready to merge

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

Overall assessment

The supplied change adds a new external Nebula node, pangolin, to the mesh inventory and documents it. I verified the internal consistency of the checked-out code: in modules/networking/nebula.nix the new pangolin = "10.10.0.11" entry in hostMap (line 32) and pangolin = "fd56:f458:569c::11" in the ipv6HostMap default (line 95) are added as a pair, so the module assertion at line 161 (lib.all (name: hostMap ? ${name}) (builtins.attrNames cfg.ipv6HostMap)) still holds; neither address collides with the router (routerIp/router.ipv6 from nebula/router.json) or with any other listed entry, and both fall inside the documented 10.10.0.0/16 and fd56:f458:569c::/64 plans in justfiles/nebula.just. hosts/ contains only electra, lena, lyra, vega, so no NixOS host is named pangolin and the module's sops.secrets."nebula/${hostname}-key" / nebula/certs/${hostname}.crt lookups are unaffected; the new secrets/nebula/pangolin.yaml and nebula/certs/pangolin.crt follow the same external-node layout already used by pangolin-vps, router, phone, nova, mass-storage, media1 and nimmog-de. The three age recipients in secrets/nebula/pangolin.yaml are exactly *yubikey-nano5c, *yubikey-5-nfc and *provision-key from .sops.yaml, i.e. the admin-only rule path_regex: secrets/nebula/[^/]+\.yaml$ (line 266), which is the documented default for nodes with no NixOS host key, and the key name nebula.pangolin-key matches the NAME-key shape written by just nebula-add-host. No scripts/check-*.nix, test, or flake check inspects networking.hosts, hostMap or the Nebula maps, so the added names cannot trip a deterministic gate; no test in tests/ references Nebula. The README inventory sentence (lines 147-148) now matches the two maps exactly, and the disambiguation text (lines 159-162) is consistent with modules/services/newt.nix, whose nixosConfig.newt.endpoint default remains the separate service URL https://pangolin.nimmog.uk. No trailing whitespace was introduced in the changed Nix or Markdown. I found no defect that the supplied evidence demonstrates.

Blocking findings

None.

Important findings

None.

Suggestions

None.

Tests and validation

  • No configured deterministic checks.

Questions

  • The committed nebula/certs/pangolin.crt is opaque base64 in the supplied material, so I could not confirm from evidence that its signed payload carries name pangolin and the networks 10.10.0.11/16 and fd56:f458:569c::11/64. The ipv6HostMap option description in modules/networking/nebula.nix states that IPv6 entries are for 'hosts whose deployed v2 certificates contain them' and must be added 'only with their certificate rollout', so just nebula-list output for nebula/certs/pangolin.crt should be confirmed to match exactly the two addresses added at lines 32 and 95.
  • Was the pangolin certificate issued with non-lighthouse groups? just nebula-add-host defaults GROUPS="servers", and nebula-bundle in justfiles/nebula.just derives am_lighthouse/serve_dns solely from a group literally named lighthouse; confirming the issued group set would show the client is registered as an ordinary mesh node rather than inheriting a lighthouse role.
  • README line 159 states the Matrix client was 'formerly ES2'. nebula/revoked.json contains only chaos and cosmos, and there is no es2 entry in nebula/certs/ or secrets/nebula/ in this checkout. If an ES2-named certificate was issued outside this repository, should its fingerprint be added to nebula/revoked.json so the old name's authority is blocklisted on every peer?

Review limitations

  • No Nix evaluation or repository code was executed: I did not run nix flake check, just test, or any just recipe, so the claim that flake check passes is taken as supplied rather than verified. My reasoning about the assertion at line 161, the /etc/hosts and CoreDNS generation, and the absence of collisions is static reading of the checked-out source.
  • The certificate and SOPS payloads are opaque. I compared structure, key names and recipient lists against secrets/nebula/pangolin-vps.yaml and .sops.yaml, but could not verify the signed identity, networks, groups, key pairing, or CA signature.
  • The separate ~/Projects/router-nebula project, the live Matrix-client host configuration, and any CI/Attic or Forgejo workflow output were not supplied, so the client's actual native activation and any live IPv4/IPv6, SSH, lighthouse or mesh-DNS evidence cannot be checked from this checkout.
  • The AGENTS.md and README prose was assessed only for internal consistency with the checked-out configuration and existing workflow text; operational records said to be private (e.g. in KiwiFS) were not supplied and were not evaluated.

Diff coverage

  • AGENTS.md: reviewed — included in a context-limited batch
  • README.md: reviewed — included in a context-limited batch
  • modules/networking/nebula.nix: reviewed — included in a context-limited batch
  • nebula/certs/pangolin.crt: 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: 4
  • Previous automated review: none found
  • Findings: 0
<!-- forgejo-ai-review:v1 --> ## Automated code review Reviewed commit: `b3523aad9101773fc8e54efe9eb9b6bc410ec78d` ## Verdict: Ready to merge No blocking or important findings were retained, and deterministic checks passed. Suggestions remain advisory. ### Overall assessment The supplied change adds a new external Nebula node, `pangolin`, to the mesh inventory and documents it. I verified the internal consistency of the checked-out code: in `modules/networking/nebula.nix` the new `pangolin = "10.10.0.11"` entry in `hostMap` (line 32) and `pangolin = "fd56:f458:569c::11"` in the `ipv6HostMap` default (line 95) are added as a pair, so the module assertion at line 161 (`lib.all (name: hostMap ? ${name}) (builtins.attrNames cfg.ipv6HostMap)`) still holds; neither address collides with the router (`routerIp`/`router.ipv6` from `nebula/router.json`) or with any other listed entry, and both fall inside the documented `10.10.0.0/16` and `fd56:f458:569c::/64` plans in `justfiles/nebula.just`. `hosts/` contains only `electra`, `lena`, `lyra`, `vega`, so no NixOS host is named `pangolin` and the module's `sops.secrets."nebula/${hostname}-key"` / `nebula/certs/${hostname}.crt` lookups are unaffected; the new `secrets/nebula/pangolin.yaml` and `nebula/certs/pangolin.crt` follow the same external-node layout already used by `pangolin-vps`, `router`, `phone`, `nova`, `mass-storage`, `media1` and `nimmog-de`. The three age recipients in `secrets/nebula/pangolin.yaml` are exactly `*yubikey-nano5c`, `*yubikey-5-nfc` and `*provision-key` from `.sops.yaml`, i.e. the admin-only rule `path_regex: secrets/nebula/[^/]+\.yaml$` (line 266), which is the documented default for nodes with no NixOS host key, and the key name `nebula.pangolin-key` matches the `NAME-key` shape written by `just nebula-add-host`. No `scripts/check-*.nix`, test, or flake check inspects `networking.hosts`, `hostMap` or the Nebula maps, so the added names cannot trip a deterministic gate; no test in `tests/` references Nebula. The README inventory sentence (lines 147-148) now matches the two maps exactly, and the disambiguation text (lines 159-162) is consistent with `modules/services/newt.nix`, whose `nixosConfig.newt.endpoint` default remains the separate service URL `https://pangolin.nimmog.uk`. No trailing whitespace was introduced in the changed Nix or Markdown. I found no defect that the supplied evidence demonstrates. ### Blocking findings None. ### Important findings None. ### Suggestions None. ### Tests and validation - No configured deterministic checks. ### Questions - The committed `nebula/certs/pangolin.crt` is opaque base64 in the supplied material, so I could not confirm from evidence that its signed payload carries name `pangolin` and the networks `10.10.0.11/16` and `fd56:f458:569c::11/64`. The `ipv6HostMap` option description in `modules/networking/nebula.nix` states that IPv6 entries are for 'hosts whose deployed v2 certificates contain them' and must be added 'only with their certificate rollout', so `just nebula-list` output for `nebula/certs/pangolin.crt` should be confirmed to match exactly the two addresses added at lines 32 and 95. - Was the `pangolin` certificate issued with non-lighthouse groups? `just nebula-add-host` defaults `GROUPS="servers"`, and `nebula-bundle` in `justfiles/nebula.just` derives `am_lighthouse`/`serve_dns` solely from a group literally named `lighthouse`; confirming the issued group set would show the client is registered as an ordinary mesh node rather than inheriting a lighthouse role. - README line 159 states the Matrix client was 'formerly ES2'. `nebula/revoked.json` contains only `chaos` and `cosmos`, and there is no `es2` entry in `nebula/certs/` or `secrets/nebula/` in this checkout. If an ES2-named certificate was issued outside this repository, should its fingerprint be added to `nebula/revoked.json` so the old name's authority is blocklisted on every peer? ### Review limitations - No Nix evaluation or repository code was executed: I did not run `nix flake check`, `just test`, or any just recipe, so the claim that flake check passes is taken as supplied rather than verified. My reasoning about the assertion at line 161, the `/etc/hosts` and CoreDNS generation, and the absence of collisions is static reading of the checked-out source. - The certificate and SOPS payloads are opaque. I compared structure, key names and recipient lists against `secrets/nebula/pangolin-vps.yaml` and `.sops.yaml`, but could not verify the signed identity, networks, groups, key pairing, or CA signature. - The separate `~/Projects/router-nebula` project, the live Matrix-client host configuration, and any CI/Attic or Forgejo workflow output were not supplied, so the client's actual native activation and any live IPv4/IPv6, SSH, lighthouse or mesh-DNS evidence cannot be checked from this checkout. - The AGENTS.md and README prose was assessed only for internal consistency with the checked-out configuration and existing workflow text; operational records said to be private (e.g. in KiwiFS) were not supplied and were not evaluated. ### Diff coverage - `AGENTS.md`: **reviewed** — included in a context-limited batch - `README.md`: **reviewed** — included in a context-limited batch - `modules/networking/nebula.nix`: **reviewed** — included in a context-limited batch - `nebula/certs/pangolin.crt`: **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: 4 - Previous automated review: none found - Findings: 0 </details>
Author
Owner

Current-head review 85 is Ready to merge with zero findings or suggestions, and both the CI test and AI-review workflow succeeded.

The certificate questions are resolved: re-read the committed public certificate with nebula-cert; its v2 identity and both networks match the inventory, and it has the ordinary servers group with no unsafe route authority. Enrollment inspection found no pre-existing Nebula deployment, and repository history contains no ES2 certificate/key. A hypothetical externally issued certificate is not evidence requiring a new revocation; existing targeted revocation policy remains unchanged.

No actionable feedback remains. Automated follow-up is stopping as ready to merge. The MR remains unmerged; normal shared discovery deployment follows merge.

Current-head review 85 is Ready to merge with zero findings or suggestions, and both the CI test and AI-review workflow succeeded. The certificate questions are resolved: re-read the committed public certificate with nebula-cert; its v2 identity and both networks match the inventory, and it has the ordinary servers group with no unsafe route authority. Enrollment inspection found no pre-existing Nebula deployment, and repository history contains no ES2 certificate/key. A hypothetical externally issued certificate is not evidence requiring a new revocation; existing targeted revocation policy remains unchanged. No actionable feedback remains. Automated follow-up is stopping as ready to merge. The MR remains unmerged; normal shared discovery deployment follows merge.
nimmo merged commit fd5f6b464c into main 2026-10-15 14:21:59 +01:00
nimmo deleted branch feat/pangolin-nebula 2026-10-15 14:22:00 +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!338
No description provided.