Skip to main content

vulkro rbac

Prints a matrix of which login level each endpoint requires.

vulkro rbac . # Markdown table
vulkro rbac . --format json -o rbac.json

Rows are endpoints. Columns are the auth tiers Anonymous, User, Admin, Service, Machine and Unknown, plus scopes and tenant scoping. Tiers come from decorators and middleware such as @UseGuards(AdminGuard), IsAdminUser, @PreAuthorize("hasRole('ADMIN')") or a RequireAdmin middleware. When there is no clear evidence the tier is Unknown; it is never guessed.

| Method | Path | Anonymous | User | Admin | Scopes | Tenant |
|--------|------------------------|:---------:|:----:|:-----:|-------------|-----------|
| GET | /api/health | x | | | | global |
| POST | /api/users/:id/promote | | | x | users:admin | by tenant |

Use it for audit handoff ("which endpoints can role X reach?"), to diff before and after a release, and to spot endpoints in a multi-tenant app that do not scope by tenant.

Flags​

FlagDescription
--format <FORMAT>md (default) or json.
-o, --output <FILE>Write to a file instead of stdout.

Exit codes​

0 matrix written. 2 scan or IO error. It never returns 1.

See also: vulkro openapi, vulkro discover.

Command reference​

Generated from vulkro rbac --help (vulkro 0.41.0). Run scripts/gen-docs.sh in the product repository to refresh it; do not edit this section by hand.

Print which login level each endpoint requires, as a matrix.

vulkro rbac [OPTIONS] [PATH]

Arguments​

ArgumentDescription
[PATH]Path to the project root (default: current directory) Default: ..

Options​

FlagDescription
-f, --format <FORMAT>Output format - md for a Markdown table, json for structured rows. Markdown is the default. Default: md. Possible values: md, json.
--offlineHard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set.
-o, --output <OUTPUT>Write to a file instead of stdout.
-q, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
-h, --helpPrint help (see a summary with '-h')
Full vulkro rbac --help
Print which login level each endpoint requires, as a matrix.

Emit the per-endpoint RBAC matrix - rows are endpoints, columns are AuthTier variants (Anonymous / User / Admin / Service / Machine / Unknown). Useful for eyeballing tier coverage at a glance and for downstream CI gates that want to assert "no endpoint is Admin without also being Protected."

Exit code: 0 matrix written (to stdout or `--output`), 2 scan / IO error. It renders coverage rather than failing on it, so it never returns 1.

Usage: vulkro rbac [OPTIONS] [PATH]

Arguments:
[PATH]
Path to the project root (default: current directory)

[default: .]

Options:
-f, --format <FORMAT>
Output format - `md` for a Markdown table, `json` for structured rows. Markdown is the default

[default: md]
[possible values: md, json]

--offline
Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set

-o, --output <OUTPUT>
Write to a file instead of stdout

-q, --quiet
Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged

--no-color
Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb

-h, --help
Print help (see a summary with '-h')