Skip to content

v3.4.0

Latest

Choose a tag to compare

@SteppaCodes SteppaCodes released this 02 Dec 21:14
· 2 commits to main since this release
f1347f7

What's new in AgentSecrets v3.4.0

v3.4.0 is a security release for the v3 series. An independent audit of v3.3.7 found twelve issues: two high, five medium and five low. This release fixes every high and medium issue, plus two low ones we could include safely. The audit was reported by an AgentSecrets user who asked not to be named. We are grateful for the care they put into testing the CLI and writing it up.

Nothing changes about how you use AgentSecrets. The same commands, the same files, and .env mode keeps working.

High severity

  • Redirects are refused. An allowlisted API could answer with a 3xx and the proxy would follow it, carrying your injected credential to the new location. The proxy now stops at the redirect and reports it instead of forwarding the value. A 307 or 308 replay still carries the injected body.
  • The local password gate moved into keychain-auth. It used to read a hash from config.json, where anyone able to write that file could pass the gate. A salted Argon2id verifier now lives in the daemon. The old password_hash key is removed the next time your config is loaded.

Medium severity

  • The CLI verifies the keychain-auth daemon before sending a secret. On Linux the client checks the peer's user ID, executable path and file hash. System installs run the daemon under its own service account, and that account is accepted, so a normal Linux install keeps working.
  • A planted proxy can no longer pose as your proxy. /health now requires a per-instance token written to a 0600 PID file. The old TCP-dial fallback is gone.
  • Daemon downloads are verified and pinned. The CLI installs exactly the version it needs, checks checksums.txt, verifies the Sigstore bundle when cosign is available, extracts with size bounds, and fails loudly rather than falling back.
  • Audit entries keep less of your traffic. Rows record the target domain and path instead of the full URL, and no longer carry a copy of your allowlist.
  • Telemetry carries no personal identifiers. Email address, project ID, workspace ID and environment name are gone. Aggregate usage counters and bounded typo categories stay.

Low severity

  • More destinations are blocked. Outbound checks now also refuse unspecified, broadcast and multicast addresses.
  • Local listeners are bounded. Both proxy servers now set header, read and idle timeouts, so a stalled client cannot hold a connection open forever.

Other fixes

  • System installs work again. A keychain-auth daemon running as the system service account is accepted by the new peer check.
  • A failed sign-up or login stops init. The CLI used to report the error and then continue into project setup, printing success with no account behind it. It now stops and exits non-zero.
  • Honest authentication errors. A server or network failure, such as a 502 from the edge, now says the service could not be reached and that nothing was saved, instead of asking you to check your email. Accounts that use a sign-in method this CLI does not implement get a specific explanation.
  • One local secret store. The redundant cloud_cache_*.json copy beside the keychain is gone. diff reads keychain-auth or .env, and status no longer shows a cached diff.

Upgrading

  • keychain-auth updates itself on the first command after upgrading. There is no separate step for you to run.
  • Run agentsecrets login once after upgrading so the new password verifier is created for your account.
  • Restart a running proxy with agentsecrets proxy restart, because the /health check changed.
  • .env mode is unchanged.

Full release notes: https://docs.agentsecrets.tech/changelog/v3-x