Skip to content

Deny OAuth token stores in the secret guard - #983

Merged
TheGreatAxios merged 3 commits into
mainfrom
cl-7789-the-secret-guard-denylist-omits-the-products-own-oauth-token
Sep 13, 2026
Merged

TheGreatAxios merged 3 commits into
mainfrom
cl-7789-the-secret-guard-denylist-omits-the-products-own-oauth-token

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

Credential paths are enumerated by the auth layer and spread into the secret-guard denylist, covering codex-auth, xai-auth, the mcp-auth directory, and backup sidecars (.bak, lock, tmp, tilde, swap). Mention resolution uses the same resolved-path check as tools with home expansion.

Verification

bun run check passes (7139 tests, 0 fail), including default-install regression and fail-build coverage scanner tests.

Fixes CL-7789

@linear-code

linear-code Bot commented Sep 13, 2026

Copy link
Copy Markdown

CL-7789

@TheGreatAxios

Copy link
Copy Markdown
Collaborator Author

Audit: Approve. Problem/solution fit: token stores under ~/.corbits were readable via read_file/@mention with no denylist entry — now covered with resolved-path parity. File-for-later (do not implement here): (1) scanner *-auth.json-only window, (2) copied-credential-outside-settings-dir gap.

Codex, xAI, and per-server MCP OAuth tokens live under ~/.corbits but had no denylist entry, so read_file and @mentions could exfiltrate them.

Each auth store now enumerates its own filenames, a data-only registry turns them into denylist patterns with backup and sidecar coverage, and mention resolution expands ~ and checks the resolved path at both gates.
@TheGreatAxios
TheGreatAxios force-pushed the cl-7789-the-secret-guard-denylist-omits-the-products-own-oauth-token branch from b657261 to 0497d2f Compare September 13, 2026 16:34
@TheGreatAxios
TheGreatAxios merged commit 97ba7e9 into main Sep 13, 2026
9 checks passed
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