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
898b02c5ad k8s vm tests: create the agent netns before k3s starts a pod, and delete pods strictly again 2026-11-27 18:07:59 +01:00
atlas
210c60cde0 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 18:07:59 +01:00
maia
766651011f 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 18:07:59 +01:00
atlas
d9023217fc 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 18:07:59 +01:00
atlas
1f6b141ade vm-tests: k8s-bao-login runs a pod's ServiceAccount login against the real store 2026-11-27 18:07:59 +01:00