@objectstack/plugin-security 7.8.0 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1469 -34
- package/dist/index.d.ts +1469 -34
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -2670,7 +2670,13 @@ var SecurityPlugin = class {
|
|
|
2670
2670
|
permissionSets = fallback;
|
|
2671
2671
|
}
|
|
2672
2672
|
} catch (e) {
|
|
2673
|
-
|
|
2673
|
+
ctx.logger.error(
|
|
2674
|
+
`[security] permission resolution failed for operation '${opCtx.operation}' on object '${opCtx.object}' (user ${opCtx.context?.userId ?? "unknown"}) \u2014 denying request (fail-closed)`,
|
|
2675
|
+
e instanceof Error ? e : new Error(String(e))
|
|
2676
|
+
);
|
|
2677
|
+
throw new PermissionDeniedError(
|
|
2678
|
+
`[Security] Access denied: permission subsystem unavailable for operation '${opCtx.operation}' on object '${opCtx.object}'`
|
|
2679
|
+
);
|
|
2674
2680
|
}
|
|
2675
2681
|
if (permissionSets.length > 0) {
|
|
2676
2682
|
const allowed = this.permissionEvaluator.checkObjectPermission(
|