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

+16
View File
@@ -0,0 +1,16 @@
CREATE TABLE `rbac_applied_defaults` (
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
`role_name` text NOT NULL,
`permission` text NOT NULL,
`applied_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL
);
--> statement-breakpoint
CREATE UNIQUE INDEX `idx_rbac_applied_defaults_role_permission` ON `rbac_applied_defaults` (`role_name`,`permission`);--> statement-breakpoint
CREATE TABLE `rbac_known_permissions` (
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
`permission` text NOT NULL,
`plugin_id` text,
`first_seen_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL
);
--> statement-breakpoint
CREATE UNIQUE INDEX `idx_rbac_known_permissions_permission` ON `rbac_known_permissions` (`permission`);
File diff suppressed because it is too large. Load diff
+7
View File
@@ -176,6 +176,13 @@
"when": 1790109036510,
"tag": "0024_public_hemingway",
"breakpoints": true
},
{
"idx": 25,
"version": "6",
"when": 1790114764617,
"tag": "0025_overrated_cable",
"breakpoints": true
}
]
}