Closed max-wittig closed 4 months ago
Assigning to @getsentry/support for routing ⏲️
Okay seems like you need to re-authenticate to get superuser, even though the token is already a superuser token. How do you re-authenticate?
The API docs are really outdated. Is there a plan to modernize those at some point?
If I were to sit down and say the way I hoped this worked (based on our design) - you will not be able to query any superuser endpoints via a non-session token.
Superuser has escalated permissions, has an idle timeout, maximum session length, and requires re-auth to re-enable. This is entirely managed via the session and shouldnt be achievable via the API (though I wouldnt make that promise).
I will keep this ticket open as we should improve our documentation around how superuser works, though I dont think we should directly mention much about this in the API docs (other than maybe how our session-based tokens work).
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Accepted
, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
I will keep this ticket open as we should improve our documentation around how superuser works
@max-wittig yup, reopened. Just us getting used to our new bot overlords.
🧎♂️
I will keep this ticket open as we should improve our documentation around how superuser works
More bot thrashing, sorry @max-wittig, this one's on me. 😞
No problem
Routing to @getsentry/ecosystem for triage. ⏲️
Routing to @getsentry/enterprise for triage. ⏲️
Routing to @getsentry/product-owners-apis for triage ⏲️
Moving to docs repo, I think this is a sentence or two on https://docs.sentry.io/api/auth/, yes?
You will not be able to query any superuser endpoints via a non-session token. Superuser has escalated permissions, has an idle timeout, maximum session length, and requires re-auth to re-enable. This is entirely managed via the session and shouldn't be achievable via the API (though that's not a promise).
Something like that?
@sentaur-athena What are your thoughts on this issue? Is this still relevant or can we close this?
apis for self-hosted aren't documented in sentry-docs so we'll close for this for and bring this up with the owners for self-hosted sentry
Important Details
How are you running Sentry?
Description
Some API endpoints require superuser permissions (e.g. https://sentry-instance.com/api/0/internal/stats/, but even when I create a superuser on the commandline and use the
Auth Token
from this user, I just get this message:How do I re-authenticate? I've checked all the boxes in the API menu
Steps to Reproduce
api/0/internal/stats/
endpointWhat you expected to happen
I should work and grant the superuser permission to the endpoint
Possible Solution
[If you have an idea on how this could be solved include that detail here.]