$ the-wire · showcase
Agent Guard accepts blank and BOM-prefixed JSON configs
By RepoJournal · Filed · About Agent Security · Composed from the cited sources · methodology
The day's only operator-visible change is in snyk/agent-scan: Agent Guard no longer trips over empty, whitespace-only, or BOM-prefixed JSON config files, and the rest of the activity is test coverage behind that behavior.
[ADS-1632] Handle blank and BOM-prefixed Agent Guard JSON configs snyk/agent-scan
Agent Guard used to fail to parse blank JSON configs and valid configs starting with a UTF-8 byte-order mark; the shared JSON reader now treats empty, whitespace-only and BOM-only files as {}. Install, status and uninstall all go through that reader, rewrites preserve the file's BOM convention via the existing backup and atomic write flow, and an identical reinstall leaves the file untouched.
test(guard): e2e and PowerShell coverage for machine identity snyk/agent-scan
End-to-end and PowerShell test coverage landed for machine identity, installing for every client with a fake token command and asserting the hook commands carry ADS_TOKEN_COMMAND and TENANT_ID. The tests exercise the uv and PyInstaller entry points and skip on Windows because the fake token command is a bash script; no product code changed.
fix(guard): accept blank and bom-prefixed configs snyk/agent-scan
The underlying fix commit, treating blank JSON files as empty configs and preserving a UTF-8 BOM when rewriting an existing file, is the same behavior now in the merge. Operators who saw Guard choke on a freshly created or BOM-encoded config file get the correction here.
Merge pull request #574 from snyk/fix/ADS-1632-handle-blank-json-configs snyk/agent-scan
The merge commit that puts the blank-and-BOM config handling on the mainline; nothing further to adopt beyond the behavior described above.