Files
Chris Arderne 0d0f794118 refactor(rbac): make API key policy methods optional on the controller
The API-key policy methods are capability extensions, so declare them
optional on RoleBaseAccessController and normalize the surface in
LazyController rather than requiring every implementation to carry them.

An authorization extension is compiled against whichever core commit its
base image ships, so a required additive method forces both sides to move
together and turns rolling an extension back into a build failure instead
of a graceful degradation.

Absence fails closed: no preset catalogue, and prepareApiKeyPolicy refuses
outright rather than defaulting to full access, so an extension below this
contract cannot mint a credential. Keys already issued are unaffected —
they authorize from the scopes persisted on their row.

loader.create() now returns HostRbacController, the total surface, so host
callers neither guard nor invent their own absent-extension default.
2026-07-27 16:22:00 +01:00
..
2026-07-09 12:02:34 +00:00