Skip to content

feat(nix): add NixOS VM checks and control plane images - #579

Open
sechmann wants to merge 14 commits into
feat/controlplane-netlink-wireguardfrom
test/nixos-vm-checks
Open

sechmann wants to merge 14 commits into
feat/controlplane-netlink-wireguardfrom
test/nixos-vm-checks

Conversation

@sechmann

Copy link
Copy Markdown
Contributor

Summary

Add NixOS end-to-end VM checks and role-specific GCE images, and simplify the Nix flake layout. Refactor WireGuard configuration and improve local enrollment and agent HTTP setup.

Changes

  • WireGuard: Share device configuration via wgctrl, add a Linux netlink network configurer, and test it in isolation (internal/wireguard, internal/helper, agent commands).
  • Nix and CI: Move Nix packaging and tests into nix/, add VM e2e and GCE image checks, and configure Nix, image publishing, and scheduled lock-update workflows.
  • Enrollment and local services: Return allocated addresses and configured peers from local enrollment, support file-backed gateway configuration, and set the agent HTTP address when opening listeners.
  • Docs and tasks: Add Nix, GCE image, and local Linux builder documentation; add mise tasks for Nix checks, formatting, and e2e tests.
  • Dependency metadata: Update flake.lock, Go dependencies, and the Nix vendor hash.

Notes

  • GCE releases create new images rather than updating VMs in place. The apiserver requires a persistent apiserver-state disk; see doc/gce-images.md.

@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

📝 Changelog preview

Below is a preview of the Changelog that will be added to the next release. Only commit messages that follow the Conventional Commits specification will be included in the Changelog.

v1.22.0 - 2026-12-01

Full Changelog: v1.21.0...v1.22.0

🚀 Features

  • Manage control plane WireGuard via netlink and wgctrl (b7027f3)
  • (nix) Compact e2e progress view, --debug for raw logs (047d6b0)

🐛 Bug Fixes

  • Repair raw WireGuard public keys on startup (79d7848)
  • Allocate IPv6 within configured prefix (f8448b7)
  • (agent) Set local HTTP address before login can use it (e4f7819)
  • (nix) Avoid copying nixpkgs when importing from it (4fdd329)
  • (nix) Image boot check waits for the service start (fb5ddbc)
  • Update vulnerable deps (9a69ea9)

⚙️ Miscellaneous Changes

  • Share WireGuard peer sync, isolate netlink test, update vendorHash (0902a38)
  • Add NixOS e2e VM test and controlplane GCE images (2fd9ab2)
  • Update flake.lock weekly (04093fe)
  • (nix) Plain flake under nix/ with mise tasks and docs (74c17c9)
  • Use NIX_BOT_TOKEN and build(nix) for flake.lock updates (36c4d9e)
  • (nix) Add magic-nix-cache to reuse Nix build results (d3a16bb)
  • (nix) Keep vendorHash in a file updated by mise task and CI (5369205)
  • (nix) Push lock and vendorHash updates as NAIS app (908820f)
  • (nix) Drop gce image boot check (5b8d443)
  • (nix) Split vendorHash workflow so PR code runs without secrets (9adb57a)

Comment thread test/e2e/fakeidp/main.go Resolved
Comment thread test/e2e/fakeidp/main.go Resolved
@sechmann
sechmann changed the base branch from main to feat/controlplane-netlink-wireguard December 1, 2026 10:25
@sechmann
sechmann force-pushed the test/nixos-vm-checks branch from 1628248 to 5b8d443 Compare December 1, 2026 12:15
@sechmann
sechmann added this pull request to stack #580 December 1, 2026 13:08
Comment thread .github/workflows/vendor-hash.yaml Fixed

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants