Watch
0
0
Fork
You've already forked hyperhive
0
Commit graph hyperhive/nix/vm-tests/k8s-bao-login.nix
Author SHA1 Message Date
atlas
df4058d2f7 k8s vm tests: create the agent netns before k3s starts a pod, and delete pods strictly again 2026-11-27 21:29:38 +01:00
atlas
1131fb5c4d vm-tests: k8s-bao-login expects the roles the module names
The test listed three jwt roles by hand, and the store has eight since the queue, stt, the review classifier and the claude minter joined, so it failed at the role assertion before it reached any pod. The list is now the module's own k8sPrincipals, sorted.
2026-11-27 21:29:38 +01:00
maia
e42cdd74f8 k8s VM tests: wait for the store's active node after the unseal
The tests waited on `bao status`, which answers once the node is
unsealed and before raft has elected it, so the first policy write raced
the election and failed with "local node not active but active cluster
node not found". `unseal_bao` unseals and then waits for sys/leader to
say the node is the leader; the four tests that bootstrap the store use
it at both unseal sites.

Closes #6807
2026-11-27 21:29:38 +01:00
atlas
31f5438d36 k8s: the hyperhive namespace enforces pod security restricted
No pod in the namespace has a hostPort any more, and the census found nothing else that restricted refuses. The namespace now carries the restricted level for enforce, warn and audit, so the API server refuses a pod that drifts. The bao-login test's probe pods get the container security context restricted asks for. The controller switch test shows the API server admitting a compliant pod and refusing the same pod with a host port, a kept capability or privilege.
2026-11-27 21:29:38 +01:00
atlas
5ad353d417 vm-tests: k8s-bao-login runs a pod's ServiceAccount login against the real store 2026-11-27 21:29:36 +01:00