AdminUI.Tests: PageAuthorizationGuardTests red on master — /apikeys was never classified #531
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixed in
3a6b2a1d. Red onmasterfromfbe7403cuntil then.PageAuthorizationGuardTests.EveryRoutablePage_isClassifiedAndMatchesExpectedPolicyenumerates everyroutable page and fails on any not present in its expected-policy map. The
/apikeyspage added by #520'skey-minting work was never added to that map, so the guard has been failing since it merged.
Classified as
AdminUiPolicies.FleetAdmin, matching the page's own[Authorize]attribute — minting a keyhands out a data-plane credential and the secret is shown once, the same authority level as
RoleGrants.Process note, which is the actually useful part of this issue. The pre-merge check for stage 4 ran
Core / ControlPlane / Runtime / Host / OpcUaServer and not
AdminUI.Tests, so a red guard merged. Theguard is the one test that fails when a new page appears anywhere, so any change adding a routable page must
run that suite.