Skip to content

Scope credential sidecar denylist and bare row drop to avoid false positives - #1002

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-7929-scope-credential-sidecar-denylist-and-bare-row-drop-to-avoid
Sep 13, 2026
Merged

Scope credential sidecar denylist and bare row drop to avoid false positives#1002
TheGreatAxios merged 1 commit into
mainfrom
cl-7929-scope-credential-sidecar-denylist-and-bare-row-drop-to-avoid

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

Fixes two over-eager gates from CL-7929:

  • fix(auth): scope the generic settings.json/permissions.json .lock/.tmp sidecar denylist legs to the settings dir (matching the .bak legs), so workspace decoys such as .vscode/settings.json.lock and <base>.<pid>.tmp no longer deny. Real settings-dir sidecars still deny.
  • fix(config): guard the CL-5606 legacy bare codex/xai row drop on baseURL equality with the OAuth endpoint, so a bare row pointed at a proxy/mirror is kept alongside the credential-backed entries.

Verification

  • bun run check — exit 0 (lint, typecheck, build, projects-dir guard, full suite: 7304 pass, 0 fail across 501 files)
  • New: src/auth/credential-surface.test.ts (CL-7929 decoy no-deny + settings-dir true-positive deny)
  • Extended: src/config/oauth-catalog.test.ts (proxy/mirror baseURL rows survive; legacy OAuth-endpoint rows still drop)

Fixes CL-7929

Workspace files such as .vscode/settings.json.lock and <base>.<pid>.tmp
were denied by the generic settings.json/permissions.json sidecar legs.
Restricting those legs to the settings directory keeps decoys usable
while real settings-sidecars still deny.

fix(config): keep proxy bare rows alongside OAuth entries

The CL-5606 legacy bare codex/xai drop now compares the row baseURL
against the OAuth endpoint first, so a proxy or mirror row is preserved.
@linear-code

linear-code Bot commented Sep 13, 2026

Copy link
Copy Markdown

CL-7929

@TheGreatAxios
TheGreatAxios marked this pull request as ready for review September 13, 2026 20:48
@TheGreatAxios
TheGreatAxios merged commit 07bade7 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