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
Offer query parameters for easier setup of Auth Tokens #49084
Comments
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 |
Related: #48690 |
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 |
Routing to @getsentry/product-owners-settings-auth for triage, due by Wednesday, May 17th at 9:07 am (sfo). ⏲️ |
@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. |
Problem Statement
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):
What was actually written in the comment was:
What would be really great is if we would introduce kind of "presets" for auth tokens, without complicating it for our users. We could do so by introducing query parameters for the URL:
https://sentry-tutorial.sentry.io/settings/account/api/auth-tokens/new-token/
Something like
https://sentry-tutorial.sentry.io/settings/account/api/auth-tokens/new-token/?preset=sourcemaps or
https://sentry-tutorial.sentry.io/settings/account/api/auth-tokens/new-token/?setup=sourcemaps
Which would then pre-fill the privileges like that:
And we would change it in the SDK comments to:
Product Area
Settings - Auth
The text was updated successfully, but these errors were encountered: