@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.js
CHANGED
|
@@ -2702,7 +2702,13 @@ var SecurityPlugin = class {
|
|
|
2702
2702
|
permissionSets = fallback;
|
|
2703
2703
|
}
|
|
2704
2704
|
} catch (e) {
|
|
2705
|
-
|
|
2705
|
+
ctx.logger.error(
|
|
2706
|
+
`[security] permission resolution failed for operation '${opCtx.operation}' on object '${opCtx.object}' (user ${opCtx.context?.userId ?? "unknown"}) \u2014 denying request (fail-closed)`,
|
|
2707
|
+
e instanceof Error ? e : new Error(String(e))
|
|
2708
|
+
);
|
|
2709
|
+
throw new PermissionDeniedError(
|
|
2710
|
+
`[Security] Access denied: permission subsystem unavailable for operation '${opCtx.operation}' on object '${opCtx.object}'`
|
|
2711
|
+
);
|
|
2706
2712
|
}
|
|
2707
2713
|
if (permissionSets.length > 0) {
|
|
2708
2714
|
const allowed = this.permissionEvaluator.checkObjectPermission(
|