[WRONG BRANCH] fix(oauth): require verified proxy before live credential update - #179
[WRONG BRANCH] fix(oauth): require verified proxy before live credential update#179luvs01 wants to merge 1 commit into
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
This pull request currently targets @luvs01 Please retarget this PR to Its title has been prefixed with This pull request is being kept as a draft automatically. Once every issue above is resolved, it will be marked ready for review again. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe OAuth live-update path now requires a discovered proxy to have an identity-verified PID before sending provider configuration. A regression test confirms that a spoofed listener on the configured port receives no request. ChangesOAuth proxy notification
Estimated code review effort: 1 (Trivial) | ~5 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Motivation
/healthzon the configured port when no validated runtime identity existed.Description
findLiveProxy()yields no PID (i.e.live.pid === null) innotifyRunningProxy. 【F:src/oauth/login-cli.ts†L18-L31】/healthzand asserts no credential-bearing POST is received. 【F:tests/oauth-login-cli-live-update.test.ts†L55-L77】notifyRunningProxyfor direct testing and keep the existingnotifyRunningProxyAfterOAuthLoginshim that loads disk config before notifying live proxy. 【F:src/oauth/login-cli.ts†L1-L35】【F:src/oauth/login-cli.ts†L36-L50】Testing
bun test tests/oauth-login-cli-live-update.test.ts tests/proxy-liveness.test.ts, and the two modified/targeted tests passed (23 passing tests, 0 failing). ✅bun run typechecksucceeded. ✅bun run privacy:scansucceeded. ✅bun run test; the run progressed with many passing tests but encountered unrelated timeouts in some combo-management tests during a full run (these are not related to this change).Codex Task
Summary by CodeRabbit
Bug Fixes
Tests