Join Slack
Communities
Powered by
is there a way to write time-based cerbos policies...
# help
j
Jesum Yip
01/06/2022, 1:05 AM
is there a way to write time-based cerbos policies? like manager from branch A is only allowed access to branch A data between 9am to 5pm from Mondays to Fridays, or engineer in department C can only access archive data for the next 3 hours?
d
Dennis (Cerbos)
01/06/2022, 1:08 AM
Yes, there’re
time related functions
available in the policies’ conditions.
j
Jesum Yip
01/06/2022, 1:15 AM
so lastaccessed and and lastupdatetime are just custom attributes that we pass in to the /api/check endpoint?
Jesum Yip
01/06/2022, 1:16 AM
meaning my code has to keep track of these values and pass them in to cerbos for policy evaluation.
d
Dennis (Cerbos)
01/06/2022, 1:33 AM
Yes, correct.
🆗 1
6
Views
Open in Slack
Previous
Next