Ryan Frantz
09/09/2021, 3:34 PMSerdar
Ryan Frantz
09/09/2021, 3:35 PMRyan Frantz
09/09/2021, 3:36 PMSerdar
Ryan Frantz
09/09/2021, 3:36 PMRyan Frantz
09/09/2021, 3:37 PMderivedRoles
is how/where user-to-role definitions are defined and maintained. Is that correct?Emre (Cerbos)
Emre (Cerbos)
Ryan Frantz
09/09/2021, 3:37 PMRyan Frantz
09/09/2021, 3:38 PMRyan Frantz
09/09/2021, 3:39 PMEmre (Cerbos)
Emre (Cerbos)
Emre (Cerbos)
Emre (Cerbos)
Ryan Frantz
09/09/2021, 3:41 PMRyan Frantz
09/09/2021, 3:41 PMEmre (Cerbos)
Emre (Cerbos)
Emre (Cerbos)
Ryan Frantz
09/09/2021, 3:43 PMEmre (Cerbos)
Ryan Frantz
09/09/2021, 3:43 PMderivedRoles
to be the thing that defines those mappingsEmre (Cerbos)
Emre (Cerbos)
Ryan Frantz
09/09/2021, 3:44 PMderivedRoles
are where user-to-role definitions/mappings are managed.Ryan Frantz
09/09/2021, 3:45 PMRyan Frantz
09/09/2021, 3:45 PMEmre (Cerbos)
derivedRoles
is where LDAP role to Cerbos role mappings are maintained. BTW: You do not need the derived roles if you do not want to define a new role based on context. You can just use role
in the resourcePolicy
tooRyan Frantz
09/09/2021, 3:46 PMRyan Frantz
09/09/2021, 3:47 PMEmre (Cerbos)
Emre (Cerbos)
Emre (Cerbos)
Emre (Cerbos)
manager
in LDAPEmre (Cerbos)
Emre (Cerbos)
marketing_manager
derived role. Where parent role is manager
and request.principal.attr.department == 'MARKETING'
Emre (Cerbos)
marketing manager
in Cerbos policies. and as long as your request
principal
object has the attr.deparment
set correctly, everythign will work fine.Ryan Frantz
09/09/2021, 3:52 PMdepartment
property in the request body, correct?Emre (Cerbos)
Ryan Frantz
09/09/2021, 3:53 PMEmre (Cerbos)
Emre (Cerbos)
Ryan Frantz
09/09/2021, 3:53 PMEmre (Cerbos)
Ryan Frantz
09/09/2021, 3:53 PMRyan Frantz
09/09/2021, 3:54 PMRyan Frantz
09/09/2021, 3:54 PMRyan Frantz
09/09/2021, 3:54 PMEmre (Cerbos)