Repository navigation
test(service-accounts): Add a token column to the service account auth matrix - #131441
Merged
skaasten merged 1 commit intoNov 17, 2026
Merged
Conversation
…h matrix Every service account row in the agent token auth matrix now also runs with a service account bearer token, against the same oracle and the same expected outcomes as the viewer-context column. Known gaps get a strict xfail per credential. Refs ENG-9059
gricha
approved these changes
Nov 17, 2026
skaasten
deleted the
junioragent/eng-9059-add-a-token-column-to-the-service
branch
November 17, 2026 16:37
Contributor
|
PR reverted: c7135e4 |
sentry-fast-revert-bot Bot
added a commit
that referenced
this pull request
Nov 17, 2026
…ount auth matrix (#131441)" This reverts commit c2645ae. Co-authored-by: skaasten <[email protected]>
Contributor
Backend Test FailuresFailures on
|
skaasten
added a commit
that referenced
this pull request
Nov 17, 2026
…h matrix (#131473) Re-lands #131441, which was reverted in c7135e47542 because it collided with #131251. Service accounts can authenticate with a bearer token (#130914) as well as a viewer context. Before GA, both need to follow the same authorization rules. This adds a `service_account_token` column next to the viewer-context column in the service account auth matrix, so every service account row also runs with a bearer token for the same account. #131251 makes POST to `GroupAutofixEndpoint` return 403 `user-required` for service account tokens. So the token is refused there, but the viewer context isn't: - `SERVICE_ACCOUNT_TOKEN_USER_REQUIRED` lists rows that refuse only the token. Right now that's only `GroupAutofix_post`. - `_assert_service_account_outcome` takes the authentication. For those rows it expects `user-required` with token auth, and the viewer context still has to match the oracle. - `OrganizationSeerAgentChatEndpoint` refuses tokens the same way, but it isn't in the public matrix, so it isn't listed. Test-only change. Refs ENG-9059 <!-- junior-request-attribution:start --> via @skaasten. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent-dispatch%3Adispatch_1a2399a01a018d2d2e0b438397a5e72d --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent-dispatch%3Adispatch_1a2399a01a018d2d2e0b438397a5e72d) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent-dispatch%3Adispatch_1a2399a01a018d2d2e0b438397a5e72d/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Shaun Kaasten <[email protected]>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Now that service account tokens are possible, add this type of auth to the auth test matrix.
Service accounts can now authenticate with a bearer token (#130914) as well as a viewer context. Before GA, both ways in need to be held to the same authorization rules.
This adds a
service_account_tokencolumn to the service account auth matrix, next to the existing viewer-context column, so every service account row also runs with a bearer token for the same account.Refs ENG-9059
via @skaasten.
--
View Session [Sentry]