Skip to content

DOCS

CONFIG-002

A discovered agent config file could not be read. The scanner did not open it, so nothing in that file was checked.

Why it matters

A scan that cannot read a file must not report a clean result for that file. CI that trusts exit 0 would otherwise treat an unread file as safe.

How to fix

Give the scanner read access to the file, then run balerx scan again. The finding title is Configuration file could not be read. The report does not print the raw operating-system error.

--fail-on-unreadable exits 1 when any file was skipped. The default exit code is unchanged for readable files, and this info finding does not trip --fail-on high. --fail-on info does. Terminal, JSON, and SARIF include the skipped count.

Current scanner

CONFIG-002 is info. It does not add to the risk score. A readable empty file stays CONFIG-001. A readable file with broken JSON or TOML stays high CONFIG-001.

CONFIG-002 is raised for a discovered config path, or an explicit file argument, that the scanner could not read. The same file reached as . and as a canonical or symlink path is counted once. A parent directory that cannot be listed is not walked, so a file under it is not discovered and is not reported.

Back to scan results.