mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-18 22:08:16 +01:00
Add SECURITY.md covering the threat model, trust boundaries, proportionate kernel/process hardening, the update/reboot routine and remaining prioritized work. Record the dated read-only audit findings (listeners, privileged workloads, effective RBAC, secret metadata and sandbox/SSH boundaries) separately from planned controls and runtime verification. Define agent-first diagnosis: scoped root read-only access on homelab hosts, and normal-user diagnostics on core desktops with no new sudo grants. Add canonical domain-based k3s API endpoint regression tests, record the unverified Darwin secret-ownership concern as WA-015, and correct comments claiming mode 0000 blocks privileged root.
18 lines
526 B
Nix
18 lines
526 B
Nix
{ lib, outputs }:
|
|
let
|
|
nodes = lib.filterAttrs (name: _: lib.hasPrefix "k3s-test-1-" name) outputs.nixosConfigurations;
|
|
in
|
|
lib.mapAttrs (
|
|
_: host:
|
|
let
|
|
inherit (host.config.services) k3s;
|
|
endpoint = "https://test-cluster-1.writefor.fun:6443";
|
|
in
|
|
{
|
|
joinsViaDomain = if k3s.clusterInit then k3s.serverAddr == "" else k3s.serverAddr == endpoint;
|
|
servingDomainSan =
|
|
k3s.role != "server"
|
|
|| builtins.elem "--tls-san=test-cluster-1.writefor.fun" (lib.splitString " " k3s.extraFlags);
|
|
}
|
|
) nodes
|