feat(authz): add database-backed PermissionStore

Adds dbPermissionStore/ensureAuthzTables/authzMigrationSql, backed by
_wrn_authz_assignment and _wrn_authz_grant tables, plus a ./db subpath
export. Passes the identical 19-test store-conformance suite the memory
adapter passes, including tenant-scope isolation.
This commit is contained in:
2026-08-04 20:22:31 +05:30
parent 218f5e2dd6
commit 3fa3fce5df
6 changed files with 153 additions and 1 deletions
+5
View File
@@ -516,6 +516,11 @@
"requireRole",
"safeRecord",
"scopeKey"
],
"./db": [
"authzMigrationSql",
"dbPermissionStore",
"ensureAuthzTables"
]
},
"@wrnexus/benchmark": {