$ the-wire · showcase
agent-scan authenticates scans with a machine token
By RepoJournal · Filed · About Agent Security · Composed from the cited sources · methodology
snyk/agent-scan 0.7.2 lets `scan` report to the backend under a machine identity instead of a push key, and refreshes that token when it expires mid-session.
Merge pull request #567 from snyk/chore/release-0.7.2 snyk/agent-scan
Release 0.7.2 is the version to pull if you want machine-identity auth; it carries the merge of the token work. Anything earlier still reports to the backend with the push key only.
feat: authenticate scan backend calls with a machine token snyk/agent-scan
Set both `token_command` (absolute path of the installer command that prints a bearer token) and `tenant_id` (the tenant the scan reports to) in `scan-agent-config.yaml` and `scan` authenticates as a machine identity. With only one of the two set, the scan warns and falls back to the push key; the API host comes from `--analysis-url`.
fix: refresh the machine token on a 401 during remote discovery snyk/agent-scan
A discovery session can outlive the 30-minute machine token, so a 401 now re-runs the token command and resends the request once with the new token. Operators running long discovery passes no longer hit a dead session partway through.
Merge pull request #558 from snyk/feat/machine-identity-token snyk/agent-scan
The merge commit that lands the machine-identity token path; no separate operator action beyond the config keys above.
Action items
- → Upgrade snyk/agent-scan to 0.7.2 if you want machine-identity auth for scan backend calls snyk/agent-scan [plan]