feat: namespace plugin permissions and keep them valid when a plugin is off

This commit is contained in:
LukeGus committed 2026-09-22 17:30:00 -05:00
1 parent 8431570ff7
commit cc15559ea1
53 files changed
+31442 -351

No files matched your search

+3 -3
View File
@@ -79,9 +79,9 @@ describe("validate-plugin-manifest.cjs", () => {
expect(output).toContain("extra");
});
// A manifest must not be able to hand a role a permission the plugin does
// not own, which is how a plugin could otherwise grant itself admin rights.
it("rejects a role default outside the plugin's own namespace", () => {
// A manifest must not be able to name a core namespace, which is how a
// plugin could otherwise gate a route on admin authority it never had.
it("rejects a permission name outside the plugin's own namespace", () => {
const { status, output } = runValidator(
"invalid-role-default-escalation.json",
);