GitHub OAuth Security Enhancement#4
Conversation
…#67876) We're adding one more step in the GitHub integration installation pipeline, namely GitHub OAuth2 authorize. This is transparent from the UX perspective as the data exchange happens without user interaction. The pipeline will now fail in these cases: - If there is a mismatch between currently authenticated GitHub user (derived from OAuth2 authorize step) and the user who installed the GitHub app (https://github.com/apps/sentry-io) - If there is a mismatch between `state` parameter supplied by user and pipeline signature - If GitHub could not generate correct `access_token` from the `code` (wrong or attempt of re-use of `code`). In all those cases, this error is shown: 
|
Claude finished @ShashankFC's task in 2m 34s —— View job Security Review Complete ✅Tasks
Executive SummaryThis PR implements critical OAuth security enhancements to prevent installation hijacking attacks in the GitHub integration. The changes add proper state validation and user authentication verification to the GitHub App installation flow. Security Improvements✅ OAuth State Parameter Validation (
|
Test 4nn---nReplicated from ai-code-review-evaluation/sentry-greptile#4