Skip to main content

vulkro-sf impact-flow

Predicts the reach of one changed file before you deploy it: which untrusted data flows it sits on, and how many components depend on it.

vulkro-sf impact-flow . --changed force-app/main/default/classes/AccountService.cls
vulkro-sf impact-flow force-app/main/default/classes/AccountService.cls --format json

It combines the project's source-to-sink taint flows with its cross-file reference graph. Use it in a pre-deploy or pre-merge gate, before sf project deploy.

FindingMeaning
SF-PREDEPLOY-001The change sits on a tainted source-to-sink flow.
SF-PREDEPLOY-002More downstream consumers depend on it than --fanout-threshold (high blast radius).

It is static and best-effort. Dynamic SOQL built elsewhere, reflection, managed-package callers and live-org-only wiring are invisible, so confirm a "no impact" result against the org.

Argument or flagWhat it does
[PATH]SFDX project root, or the changed file itself when --changed is omitted. Default ..
--changed <file>The changed file to predict impact for.
--fanout-threshold <n>Dependents above which SF-PREDEPLOY-002 fires. Default 5.
--format <table|json>Output format. Default table.

Exit codes​

CodeMeaning
0No impact.
1Impact found (SF-PREDEPLOY findings reported).
2Error (unscannable path, unknown --format).

Command reference​

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

Predict how far a changed file's data flows reach, before you deploy it.

vulkro-sf impact-flow [OPTIONS] [PATH]

Arguments​

ArgumentDescription
[PATH]Path to the SFDX project root, OR (when --changed is omitted) the single changed file whose enclosing project is auto-detected. Default: ..

Options​

FlagDescription
--changed <CHANGED>The changed file to predict impact for. When omitted, <path> is used as the changed file.
--fanout-threshold <FANOUT_THRESHOLD>Downstream fan-out threshold above which the change is reported as high blast radius (SF-PREDEPLOY-002). Defaults to 5. Default: 5.
-f, --format <FORMAT>Output format: table (default) or json. Default: table.
-v, --verbose...Bump stderr log verbosity. -v enables debug-level tracing for the vulkro + vulkro_sf targets; -vv enables trace. Honoured only when RUST_LOG is unset (an explicit RUST_LOG always wins)
-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-sf impact-flow --help
Predict how far a changed file's data flows reach, before you deploy it.

Predict the DATA-FLOW blast radius of a changed file before deploy .

Combines the K1 taint paths with the K2 cross-file reference graph over the SFDX project at <path>. For the CHANGED file it predicts: which tainted source-to-sink data-flow paths the change traverses (SF-PREDEPLOY-001), and how many downstream consumers inherit the change, flagged when the fan-out is large (SF-PREDEPLOY-002). Use it in a pre-deploy / pre-merge gate to size the security and blast radius of a delta before `sf project deploy`.

When --changed is omitted, <path> itself is treated as the changed file (and its enclosing SFDX project is auto-detected for the graph).

This is BEST-EFFORT and static. Dynamic SOQL built elsewhere, reflection, managed-package callers, and live-org-only wiring are invisible to the static graph, so confirm against the org before relying on a "no impact" result.

Exit codes: 0 = no impact (the change is on no taint path and below the fan-out threshold); 1 = impacted paths were found (SF-PREDEPLOY findings reported); 2 = error (unscannable path, unknown --format).

Usage: vulkro-sf impact-flow [OPTIONS] [PATH]

Arguments:
[PATH]
Path to the SFDX project root, OR (when --changed is omitted) the single changed file whose enclosing project is auto-detected

[default: .]

Options:
--changed <CHANGED>
The changed file to predict impact for. When omitted, <path> is used as the changed file

--fanout-threshold <FANOUT_THRESHOLD>
Downstream fan-out threshold above which the change is reported as high blast radius (SF-PREDEPLOY-002). Defaults to 5

[default: 5]

-f, --format <FORMAT>
Output format: table (default) or json

[default: table]

-v, --verbose...
Bump stderr log verbosity. `-v` enables debug-level tracing for the `vulkro` + `vulkro_sf` targets; `-vv` enables trace. Honoured only when `RUST_LOG` is unset (an explicit `RUST_LOG` always wins)

-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')