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

ref: Fix API key serialization #69381

Closed
wants to merge 1 commit into from
Closed

ref: Fix API key serialization #69381

wants to merge 1 commit into from

Conversation

HazAT
Copy link
Member

@HazAT HazAT commented Apr 22, 2024

#inc-727

related to: #68148
fixes: getsentry/sentry-wizard#563

Copy link

sentry-io bot commented Apr 22, 2024

Sentry Issue: SENTRY-37SG

Copy link

codecov bot commented Apr 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.66%. Comparing base (57cb0dd) to head (b06225a).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #69381      +/-   ##
==========================================
+ Coverage   72.69%   79.66%   +6.96%     
==========================================
  Files        6451     6452       +1     
  Lines      286607   286678      +71     
  Branches    49376    49378       +2     
==========================================
+ Hits       208358   228375   +20017     
+ Misses      77828    57881   -19947     
- Partials      421      422       +1     

see 1139 files with indirect coverage changes

@HazAT HazAT closed this in #69388 Apr 22, 2024
HazAT added a commit that referenced this pull request Apr 22, 2024
In the wizard endpoint, we’d reuse existing user auth tokens of the
authenticated user if:
1. the user was part of multiple orgs (==> we can't create an org-based
token)
2. AND we found one that satisfied the necessary permissions for
sourcemap upload.
 
With #68148 being merged, we
cannot do this anymore. Plain user auth token values are only gonna be
available directly after the token was created.

For the fix, this PR makes a change to the wizard endpoint to always
create a new user API token. This now works just like when we create an
org token for single-org users.

Closes: #69381

---------

Co-authored-by: Daniel Griesser <daniel.griesser.86@gmail.com>
@HazAT HazAT deleted the fix/inc-727 branch April 22, 2024 11:00
MichaelSun48 pushed a commit that referenced this pull request Apr 25, 2024
In the wizard endpoint, we’d reuse existing user auth tokens of the
authenticated user if:
1. the user was part of multiple orgs (==> we can't create an org-based
token)
2. AND we found one that satisfied the necessary permissions for
sourcemap upload.
 
With #68148 being merged, we
cannot do this anymore. Plain user auth token values are only gonna be
available directly after the token was created.

For the fix, this PR makes a change to the wizard endpoint to always
create a new user API token. This now works just like when we create an
org token for single-org users.

Closes: #69381

---------

Co-authored-by: Daniel Griesser <daniel.griesser.86@gmail.com>
@github-actions github-actions bot locked and limited conversation to collaborators May 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wizard panicing in vite to next migrated project
1 participant