Repository navigation
feat: introduce the genric Actor entity - #65987
Open
salmart-dev wants to merge 9 commits into
Open
salmart-dev wants to merge 9 commits into
salmart-dev wants to merge 9 commits into
Conversation
salmart-dev
force-pushed
the
feat/ncu-actor
branch
from
October 28, 2026 17:39
9cbcae1 to
c3c02cf
Compare
salmart-dev
marked this pull request as ready for review
October 28, 2026 17:40
salmart-dev
requested review from
icewind1991,
leftybournes,
provokateurin and
sorbaugh
and removed request for
a team
October 28, 2026 17:40
provokateurin
requested changes
Nov 2, 2026
provokateurin
left a comment
Member
There was a problem hiding this comment.
Despite the amount of comments, this looks really good!
| * bot "summarizer" for alice: principal=alice, delegate=Actor(bot), via=OnBehalfOf | ||
| * version expiry in alice's files: principal=alice, delegate=Actor(system), via=OnBehalfOf | ||
| * admin impersonating alice: principal=alice, delegate=Actor(admin), via=Impersonation | ||
| * alice's action escalated: principal=system, delegate=Actor(alice), via=SystemElevation |
Member
There was a problem hiding this comment.
Can you give a better example? Would this be the case if alice is an admin and would do something only admins can do?
| /** | ||
| * @experimental 36.0.0 | ||
| */ | ||
| public function isHuman(): bool { |
Member
There was a problem hiding this comment.
Not sure if this is a good idea 😅 Maybe it can be removed for now and if there is code that we duplicate to check this, we can add it back?
Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com> Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
susnux
force-pushed
the
feat/ncu-actor
branch
from
November 2, 2026 15:49
c3c02cf to
686c399
Compare
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
susnux
force-pushed
the
feat/ncu-actor
branch
from
November 2, 2026 15:52
686c399 to
d9c99aa
Compare
susnux
requested review from
GhassenKefi and
provokateurin
and removed request for
sorbaugh
November 2, 2026 15:53
This branch has not been 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.
Summary
Introduces an
Actordata object to pass around the information of who is performing an action / request, and include information about "privilege escalation" or delegation, so that audit or compliance apps can log a chain, and apps can take decisions losing less context and avoiding mix ups like$userId = nullequalling to "all privileges" or "no privileges" depending on the call, which are completely different answers.The
DelegationKindandPrincipalTypecould be extended in the future as "stable" cases become more prominent.Example: SystemTagManager
I took the example of the
SystemTagManager, where I stumbled on the pattern first-hand.Before
After
Checklist
3. to review, feature component)stable32)AI (if applicable)