You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Offer query parameters for easier setup of Auth Tokens #49084
Currently there seems to be no way to select a specific preset of privileges when creating a new auth token. We could help our users by providing those, depending on where they come from, without making the process more complicated.
Solution Brainstorm
Initially I wanted to upload source maps. In order to do so, I had to request an auth token. I ended up on this site, but had no idea which privileges should be granted (overlooked the hint in a comment):
changed the title [-]Offer GET parameters for easier setup of Auth Tokens[/-][+]Offer query parameters for easier setup of Auth Tokens[/+]on May 15, 2023
it could also be considered that this would be automated in docs where the user is logged in that the token would be autofilled similar to project, org, and DSN
@stephanie-anderson@smeubank The requirement is a bit unclear to me- I'd understand if the Auth UX had a way to allow users to specify the token's purpose and then Sentry could auto-select the needed scopes.
But why do you want query parameters in the API? Since Sentry already knows what scopes to use for different use cases you already know what scopes to ask for. Is my understanding correct?
I am hesitant about UX to improve user tokens. We want people to use organization tokens so if they leave Sentry, things don't just break.
I 100% agree, Ideally, I'd like to improve the UX for internal integration tokens- "Internal Integration" is confusing to folks IMO- Either Sentry can automatically create these tokens for users when we know a project needs tokens to upload source maps, etc or We should have a very clear settings entry for Tokens in Orgs Settings- It can use the same logic behind the scenes but the users should not have to create "Internal Integrations" to get tokens
We're going to build proper org based auth tokens, which we will initially build to serve as CI/CD tokens (getsentry/team-sdks#6). Will close this issue.
Activity
Lms24 commentedon May 15, 2023
Questions around permissions for the auth token also came up in the docs a couple of times. For example: getsentry/sentry-docs#6573
+1 on solving this via the UI/a query param
[-]Offer GET parameters for easier setup of Auth Tokens[/-][+]Offer query parameters for easier setup of Auth Tokens[/+]smeubank commentedon May 15, 2023
Related: #48690
smeubank commentedon May 15, 2023
it could also be considered that this would be automated in docs where the user is logged in that the token would be autofilled similar to project, org, and DSN
getsantry commentedon May 15, 2023
Routing to @getsentry/product-owners-settings-auth for triage, due by Wednesday, May 17th at 9:07 am (sfo). ⏲️
Dhrumil-Sentry commentedon May 15, 2023
@stephanie-anderson @smeubank The requirement is a bit unclear to me- I'd understand if the Auth UX had a way to allow users to specify the token's purpose and then Sentry could auto-select the needed scopes.
But why do you want query parameters in the API? Since Sentry already knows what scopes to use for different use cases you already know what scopes to ask for. Is my understanding correct?
scefali commentedon May 16, 2023
I am hesitant about UX to improve user tokens. We want people to use organization tokens so if they leave Sentry, things don't just break.
Dhrumil-Sentry commentedon May 16, 2023
I 100% agree, Ideally, I'd like to improve the UX for internal integration tokens- "Internal Integration" is confusing to folks IMO- Either Sentry can automatically create these tokens for users when we know a project needs tokens to upload source maps, etc or We should have a very clear settings entry for Tokens in Orgs Settings- It can use the same logic behind the scenes but the users should not have to create "Internal Integrations" to get tokens
stephanie-anderson commentedon Jun 1, 2023
We're going to build proper org based auth tokens, which we will initially build to serve as CI/CD tokens (getsentry/team-sdks#6). Will close this issue.