plan: add WS-H NixOS module + CLI install card, TODO phase 4, DEC-9..11
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
936efaf97e
commit
af73d118bb
5 files changed
+109
No files matched your search
@@ -102,3 +102,15 @@ Design: [`plan.md`](plan.md) · Review fixes: [`plan/review.md`](plan/review.md)
|
||||
- [ ] **I4** README: install, config reference, token workflow, MCP client setup, hardened docker option
|
||||
- [ ] **I5** Release build: `ldd` shows only libc + libsystemd and its deps. Record binary size.
|
||||
- [ ] **I6** Full manual Verification #1–#6 from `plan.md` passes on a real host
|
||||
|
||||
## Phase 4 — NixOS packaging · [card](plan/workstreams/WS-H-nixos.md)
|
||||
|
||||
- [ ] **H1** `nix/package.nix`: `buildRustPackage` from `Cargo.lock` with pkg-config, cmake, systemd. Binary `slinuxm`.
|
||||
- [ ] **H2** `flake.nix` with `packages.default`, `nixosModules.default` and `checks`
|
||||
- [ ] **H3** `nix/module.nix` options: `enable`, `package`, `port` (default 1984), `bind`, `openFirewall`, `allowedHosts`, `docker.enable`, `settings`, `environmentFile`
|
||||
- [ ] **H4** Service: dedicated user, `StateDirectory` 0700, `systemd-journal` group, P3 hardening set, config at `/etc/skyg-linux-tracker.toml`
|
||||
- [ ] **H5** **CLI installed system-wide** with a wrapper that runs `slinuxm token …` as the service user (DEC-10)
|
||||
- [ ] **H6** Firewall: global `openFirewall` plus interface-scoped option. Eval assertion: non-loopback bind requires auth.
|
||||
- [ ] **H7** README NixOS section: flake input, token workflow, exposure model, `allowedHosts`
|
||||
- [ ] **H8** NixOS VM test: healthz, 401, mint token via CLI, 200, `/mcp`, revoke, 401, bad Origin 403
|
||||
- [ ] **Gate:** `nix build` and `nix flake check` pass. `ldd` shows no openssl. A fresh NixOS host serves `:1984` and a token can be minted from a login shell.
|
||||
Reference in new issue
Block a user