Skip to content

fix(security): minimize cached credentials, separate config from transport (v0.1.1) - #2

Merged
TheStreamCode merged 1 commit into
mainfrom
fix/credential-hygiene
Sep 27, 2026
Merged

TheStreamCode merged 1 commit into
mainfrom
fix/credential-hygiene

Conversation

@TheStreamCode

Copy link
Copy Markdown
Owner

ClawHub audit flagged suspicious.env_credential_access on the 0.1.0 artifact. Remediation: (1) writeCache persists only apiKey/accountId/email, OAuth token never touches disk (+test asserting absence); (2) env/cache-path resolution moved to network-free src/config.ts, auth.ts transport-only; (3) README Security section documents storage + network allowlist; (4) fixed login script dist import path. Verified locally: typecheck, build, 24 tests, smoke 5+5, clawhub validate PASS.

…sport (v0.1.1)

writeCache persists only apiKey/accountId/email; the OAuth access token stays in memory (nothing ever read it back). Credential-source resolution moves to network-free src/config.ts; auth.ts is transport-only with explicit args. Fixes the ClawHub suspicious.env_credential_access heuristic at its root and documents the credential story in README. Also fixes the login script dist import path.
@TheStreamCode
TheStreamCode merged commit 15decbc into main Sep 27, 2026
1 check passed
@TheStreamCode
TheStreamCode deleted the fix/credential-hygiene branch September 27, 2026 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant