CLI-1082 Harden authentication flows - #798
nquinquenel wants to merge 3 commits into
Conversation
✅ Deploy Preview for sonarqube-cli canceled.
|
Code Review ✅ Approved 5 resolved / 5 findingsHardens authentication flows by validating browser authentication tokens via ✅ 5 resolved✅ Bug: envOnly marker stamped on login connection disables logout
✅ Edge Case: Rejected callback token leaves CI login hanging forever
✅ Edge Case: Unreachable server reported as an unvalidatable token
✅ Bug: Env-var auth now dies silently when the keychain is unreachable
✅ Bug: New CI login test never answers the trust prompt, so it can't pass
Implementation Status ✅ 3 of 3 objectives covered✅ CLI-1082 - 3 of 3 objectives coveredThis PR covers the hardening of browser auth callbacks, preserving the auth source marker for environment credentials, and adding regression test coverage for both flows. ✅ 3 covered here
OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
|



Summary by Gitar
checkTokenStatusduring callback handling and token generation401status and support fallback to manual token inputrecordConnectionFromAuthto correctly set theenvOnlymarker on existing matching connectionsThis will update automatically on new commits.