You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(nightly): repair WSS compat-auth skew + stale enterprise-gate test assertions (#381)
fix(nightly): repair real test-suite regressions + daemon WSS auth skew
The nightly suite has been red since it was created (2026-05-28) and never
green. Categorising every failure showed most were either real regressions
or CPU-starvation artifacts of -parallel 4, not genuine env limits.
Real fixes in this commit (all fail deterministically in isolation):
- daemon WSS compat auth: pkg/daemon/transport/wss signed the pre-v0.2.6
challenge shape "compat_auth:<node>:<nonce>", but beacon v0.2.6 binds the
server timestamp and verifies "compat_auth:<node>:<ts>:<nonce>". Real
production skew — compat daemons could not authenticate to a v0.2.6
beacon. Parse the challenge `ts` and sign the new shape; update the
fake-beacon unit test to match. Fixes TestCompatRegistryTLSPinned,
TestCompatRegistryTrustSystemRejectsBadCert, TestCompatDaemonDialUDPPeerThroughWSS.
- invite signer: common@v0.5.7's InviteToNetwork/RespondInvite/PollInvites
now always sign, so every test issuing an invite must set a signer. Set
the inviter's signer before each InviteToNetwork call across the invite,
RBAC, audit, enterprise-gate, network and pilotctl suites. Several
rejection-path tests were passing for the wrong reason (rejected on the
missing signer, not the intended authz check) — they now sign so the
registry performs the real authorization.
- TestAdminKicksAdmin: registry policy PILOT-266 (2026-05-29) forbids an
admin kicking another admin; assert the guard and that the owner can
still kick an admin.
- TestInviteRequiresAdmin: premise was stale (owner invites via signature
without an admin token). Reworked to assert owner-by-signature succeeds
and an unauthorized outsider is rejected.
- dashboard /api/stats is now admin-gated (rich payload behind
requireAdminToken; anonymous uses /api/public-stats). Set an admin token
and authenticate. Fixes TestDashboard{HTTPEndpoints,APIShape,BannerEndpoint,NoIPLeak}.
Co-authored-by: Teodor Calin <teodor@vulturelabs.io>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
0 commit comments