@rebasepro/rls-check 0.21.0 → 0.21.1
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/README.md +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,8 +7,8 @@ npx @rebasepro/rls-check
|
|
|
7
7
|
```
|
|
8
8
|
|
|
9
9
|
ESM-only: `"type": "module"` with no CommonJS build. It is a command, so that
|
|
10
|
-
matters only if you import it —
|
|
11
|
-
|
|
10
|
+
matters only if you import it — and on Node `>=22.22.0`, the floor it declares,
|
|
11
|
+
`require()` of it resolves too: Node has supported `require(esm)` from 22.12.
|
|
12
12
|
|
|
13
13
|
Run it in your project directory and it finds the database itself: `DATABASE_URL`, then `POSTGRES_URL`, then a `.env` beside you. Point it somewhere else with `DATABASE_URL="postgresql://user:password@host:5432/database" npx @rebasepro/rls-check`.
|
|
14
14
|
|
|
@@ -364,7 +364,7 @@ if (exceedsThreshold(result.findings, "high")) {
|
|
|
364
364
|
|
|
365
365
|
## Requirements
|
|
366
366
|
|
|
367
|
-
Node
|
|
367
|
+
Node 22.22.0 or newer (`engines: >=22.22.0`), and a PostgreSQL server the machine can reach. The only runtime dependency is [`pg`](https://www.npmjs.com/package/pg) — deliberately, because this package gets pointed at production databases by people who have never heard of us, and the install should be small enough to read in full before running it.
|
|
368
368
|
|
|
369
369
|
Tested against PostgreSQL 12 through 18. On servers older than 15 the `security_invoker` view option does not exist, and `view-bypasses-rls` reports as a heuristic rather than a certainty.
|
|
370
370
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebasepro/rls-check",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.1",
|
|
4
4
|
"description": "Audit Row-Level Security on any PostgreSQL database — finds tables served without RLS, permissive tautologies, unqualified columns in policy subqueries, RLS-bypassing views and unprotected junction tables. Read-only.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"postgres",
|