Slackbot
06/13/2023, 1:57 PMAmy Bertken
06/13/2023, 1:57 PMpermit(
principal in Role::"photographer",
action in [Action::"read", Action::"create"],
resource in ResourceType::"photos"
);
permit(
principal in Role::"photographer",
action in [Action::"read",Action::"create",Action::"update"],
resource in ResourceType::"solutions"
);
This is the code in the single .policy
file I'm trying to get to work. If I delete the second "permit", it works fine.Raz Co
06/13/2023, 2:02 PMGabriel L. Manor
06/13/2023, 2:02 PMGabriel L. Manor
06/13/2023, 2:03 PMOmer Zuarets
06/13/2023, 2:27 PMOmer Zuarets
06/13/2023, 3:03 PMmy_policy.cedar
that contains the following code
permit(
principal in Role::"photographer",
action in [Action::"read", Action::"create"],
resource in ResourceType::"photos"
);
permit(
principal in Role::"photographer",
action in [Action::"read",Action::"create",Action::"update"],
resource in ResourceType::"solutions"
);
The ids will be my_policy.cedar:0
and my_policy.cedar:1
We are still thinking about the :
delimiter and any edge cases but this is our current line of thinking.
What do you think about it ? @Amy BertkenAmy Bertken
06/13/2023, 3:22 PM:
as the delimiter, but haven't worked with the policies enough to know any limitations that might present. For our work right now, I can't think of any. Thanks for walking me through this.