Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Validate OIDC ID token during Sentry OAuth flow #52

Merged
merged 2 commits into from
Sep 13, 2023

Conversation

scott-codecov
Copy link
Contributor

We request an oidc scope during the OAuth flow with Sentry which results in an id_token being present in the /oauth/token response. This token is a JWT which is signed using a shared secret and can be used to verify that it was indeed Sentry who sent us the token response.

@codecov
Copy link

codecov bot commented Jul 31, 2023

Codecov Report

Merging #52 (10cb19d) into main (bd475f5) will increase coverage by 0.25%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##            main     #52     +/-   ##
=======================================
+ Coverage   95.34   95.59   +0.25     
=======================================
  Files        702     701      -1     
  Lines      14932   14907     -25     
=======================================
+ Hits       14236   14249     +13     
+ Misses       696     658     -38     
Flag Coverage Δ
smart-labels 93.84% <100.00%> (-1.46%) ⬇️
unit 95.53% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 95.53% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
codecov/settings_base.py 87.79% <100.00%> (+0.07%) ⬆️
codecov_auth/views/sentry.py 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

* main: (58 commits)
  Adding beginnings of GHA CI (#127)
  feat: Filter flags by flags for pathContents (#128)
  Create checkbox in Owner form in Django admin to set uses_invoice (#109)
  build(deps): bump certifi from 2020.6.20 to 2023.7.22 (#32)
  Feature/no compile (#126)
  Bump django from 4.2.2 to 4.2.3 (#42)
  Don't compile since source is available (#106)
  feat: Add firstPull resolver to GraphQL pull type (#108)
  chore: Upgrade requests and redis dependencies (#124)
  Update LICENSE (#122)
  Attempt migration (#121)
  359 adjust monthly uploads for trialled customers (#119)
  Add changes for monthly uploads to account for trialing customer (#101)
  Adjust donwload_url link (#115)
  update to handle to redirects (#113)
  fix: Include impacted files with no coverage diff and no indirect changes in direct changes list (#114)
  Make uses_invoice field on Owner(#92)
  feat: support gh refresh tokens (#85)
  Add RiskyAlterField to utils/migrations (#93)
  Fix/config error enterprise (#107)
  ...
@scott-codecov scott-codecov merged commit ec03560 into main Sep 13, 2023
18 of 19 checks passed
@scott-codecov scott-codecov deleted the scott/sentry-oidc branch September 13, 2023 15:48
scott-codecov added a commit that referenced this pull request Sep 14, 2023
* main: (74 commits)
  Fix indentation error (#133)
  Add cache cleanup (#130)
  Feature/lint pre commit (#134)
  feat: trigger label analysis task after update (#131)
  Filter file comparisons by flags (#129)
  chore: Remove hard-coded dev BB redirect URL (#132)
  feat: Validate OIDC ID token during Sentry OAuth flow (#52)
  Adding beginnings of GHA CI (#127)
  feat: Filter flags by flags for pathContents (#128)
  Create checkbox in Owner form in Django admin to set uses_invoice (#109)
  build(deps): bump certifi from 2020.6.20 to 2023.7.22 (#32)
  Feature/no compile (#126)
  Bump django from 4.2.2 to 4.2.3 (#42)
  Don't compile since source is available (#106)
  feat: Add firstPull resolver to GraphQL pull type (#108)
  chore: Upgrade requests and redis dependencies (#124)
  Update LICENSE (#122)
  Attempt migration (#121)
  359 adjust monthly uploads for trialled customers (#119)
  Add changes for monthly uploads to account for trialing customer (#101)
  ...
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.

None yet

2 participants