@ultimat3/policy 31.48.0 → 31.49.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/package.json +2 -2
- package/src/errors.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultimat3/policy",
|
|
3
|
-
"version": "31.
|
|
3
|
+
"version": "31.49.0",
|
|
4
4
|
"description": "The one authz rule, evaluated identically in every surface",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ultimate",
|
|
@@ -42,6 +42,6 @@
|
|
|
42
42
|
"test": "bun test"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@ultimat3/core": "31.
|
|
45
|
+
"@ultimat3/core": "31.49.0"
|
|
46
46
|
}
|
|
47
47
|
}
|
package/src/errors.ts
CHANGED
|
@@ -108,7 +108,7 @@ export const policyForbidden = (label: string, reason: string): PolicyError =>
|
|
|
108
108
|
// `x policy list --json` is what `X_DECLARATION_UNKNOWN`'s own fix falls back to, so a reader
|
|
109
109
|
// who follows either one lands in the same place.
|
|
110
110
|
fix: BARE_PERMISSION.test(label)
|
|
111
|
-
? `x policy explain ${renderFixShellArg(label, '<permission>')} --json # shows which clause decided and why`
|
|
111
|
+
? `x policy explain ${renderFixShellArg(label, '<permission>')} --input '<the request input as JSON>' --json # shows which clause decided and why; --input decides a predicate that reads the request`
|
|
112
112
|
: `x policy list --json # then: x policy explain <permission> --json for the clause that decided`,
|
|
113
113
|
// The remote caller's half: it holds a credential, not the policy file.
|
|
114
114
|
callerFix: deniedCallerFix(BARE_PERMISSION.test(label) ? label : undefined),
|