Replies: 7 comments 12 replies
-
Can you provide examples of logs with |
Beta Was this translation helpful? Give feedback.
-
This example looks like an entity management event to me. BTW, the |
Beta Was this translation helpful? Give feedback.
-
BTW, we should split the issue/PR is two separate items:
|
Beta Was this translation helpful? Give feedback.
-
Agree on item 1, we need those activities obviously. However, based on the example, this class, even with item 2 added, would not be able to model the change aspect of the event. In this case above, there is an old role name (member) and a new role name (domain_admin) and we've moved the user from one role to another. There are other systems where a user could have multiple roles. E.g. the user might have a current role PowerUser, and we also assigned the user BackupAdmin. We didn't take away PowerUser. I'm assuming the user isn't the actor (even though it says actor) as in the example we don't have information about who made the change, just the change of the user's role. And we don't know what the sensitive privileges are, they are assigned to the roles, not to the user. We need to be able to represent that case, assigning privileges to a role, regardless of who is in the role, and we need to generally know who made the change (the actor). In the proposed class, the Resource is the user so presumably the current role (group) would be part of the User object, but there is no new role/group attribute. If the Resource is the Group, then we don't have the current group, and the User object would have needed to be populated with that information (but it is an array of Groups, unlikely all of the groups would be known, and they may not all be roles). Also note that a Group object has In other words, we need more options in the class:
The Resource object has a name for the resource, and a type. With the last update #528 it now has a Group object but no other objects that match with the enum list. Likely should remove it. 5-7 are similar to entity change events, but have authorization implications and so may be better here than in a general Entity Change class. We might also consider other AuthZ related operations, such as enumerating privileges of a Group/Role or User, enumerating roles of a User.
So I think there is more to consider. |
Beta Was this translation helpful? Give feedback.
-
I am voting to "support" that a change be made, because right now we can't even encode an authorization grant for an S3 bucket - the current model is too network-centric. I also agree this is not a breaking change. I think the things brought up in #533 (comment) are other things to consider but they don't actually have to do with the core issue of the request, which is right now we can not model authorization grants to non-networked (normally, cloud) resources. |
Beta Was this translation helpful? Give feedback.
-
Based on the conversation above, thoughts on this structure?
|
Beta Was this translation helpful? Give feedback.
-
After some discussion with @jp-harvey, here's what we arrived at:
Proposing 2 new objects:
and
|
Beta Was this translation helpful? Give feedback.
-
Proposal to update
Authorization
class with the following changes:resource
to Authorization class with a constraint that at least one ofdst_endpoint
orresource
is required.PR #531
4 votes ·
Beta Was this translation helpful? Give feedback.
All reactions