OPA - Provide the ability to schedule policies or put timeframes on policies
pending feedback
L
Lisa Edwards
Provide the ability to schedule start/end times for policies. This would allow teams to set up a number of policies to be gradually introduced all at once while ensuring that the right policies are enforced at the right time based on their schedule.
Log In
a
abhijit.pujare
pending feedback
a
abhijit.pujare
Lisa Edwards There's an a clock function in rego that allows you to check the current time: https://docs.styra.com/opa/rego-by-example/builtins/time/clock
you can write a policy that uses this function to only enforce the policies during a certain time frame.