Repository navigation
Conversation
gricha
force-pushed
the
ref/request-user-from-actor
branch
from
October 29, 2026 00:25
6d761b6 to
c85398f
Compare
gricha
changed the base branch from
ref/request-principal-interface
to
ref/request-principal-chokepoint
October 29, 2026 00:25
gricha
force-pushed
the
ref/request-principal-chokepoint
branch
from
October 29, 2026 00:38
9319e15 to
42b29ee
Compare
gricha
force-pushed
the
ref/request-user-from-actor
branch
from
October 29, 2026 00:38
c85398f to
a406591
Compare
This was referenced Oct 29, 2026
gricha
force-pushed
the
ref/request-principal-chokepoint
branch
from
October 29, 2026 06:39
42b29ee to
6a483e8
Compare
gricha
force-pushed
the
ref/request-user-from-actor
branch
from
October 29, 2026 06:39
a406591 to
70102de
Compare
This was referenced Oct 29, 2026
Contributor
Sentry Snapshot Testing
|
gricha
force-pushed
the
ref/request-principal-chokepoint
branch
from
October 29, 2026 16:25
6a483e8 to
d517b5d
Compare
gricha
force-pushed
the
ref/request-user-from-actor
branch
2 times, most recently
from
October 29, 2026 18:30
0e546e0 to
f499814
Compare
Authenticated callers with no human behind them (user_id is None), such as service accounts, now get the defaults org tokens already get in shared code: - serialize() hands serializers an AnonymousUser, so there are no per-viewer fields. - Feature checks get no actor, so flags are evaluated at the org and project level. - serialize_generic_user returns None. - Audit entries have no user actor and are labeled with the caller's display name. No caller like that exists yet, so nothing changes today.
gricha
force-pushed
the
ref/request-principal-chokepoint
branch
from
October 29, 2026 18:49
1010060 to
fc00e98
Compare
gricha
force-pushed
the
ref/request-user-from-actor
branch
from
October 29, 2026 18:49
f499814 to
e6e595b
Compare
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.
Authenticated callers with no human behind them (
user_id is None), such as service accounts, get what org auth tokens get today. An org auth token'srequest.userisAnonymousUser, so wherever shared code asks which person is looking, the answer is nobody. This gives callers with no human the same answers, once, in shared code. Access doesn't change:request.accessstill decides what the caller may do.serialize()hands serializers anAnonymousUser. Per-person fields (bookmarks, subscriptions, seen, stars) come back empty; the object itself is serialized in full, as for an org auth token or a public share.has,has_for_batch,batch_has,get_experiment_assignments) get no actor, so flags are evaluated at the org and project level. Flagpole's user context would otherwise raise on a non-Useractor.serialize_generic_userreturns None.Across
src,serialize(..., request.user)andfeatures.has(..., actor=request.user)account for about 520 of the ~1,600request.useruses. With the service-account PR on top, these defaults make its per-serializer fixes unnecessary: the auth matrix passes without them.No caller like that exists yet, so nothing changes today.
Stack (each PR is based on the one above it):
request.userinterfacerequest.user/request.auththrough one helperrequest.user.user_idin access, permissions and org lookupsrequires_user/require_user()request.user, behindauth.service-account-principalThe per-team
request.user.user_idreads sit on #128982 and can land in any order: #129154, #129155, #129149, #129156, #129150, #129151, #129152, #129153.