You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It evaluates to false, as the time comparison is comparing time.now_ns() (a value in nanoseconds) to the token nbf and exp fields which are values in seconds.
Expected Behavior
In the Envoy tutorial (https://www.openpolicyagent.org/docs/latest/envoy-authorization/), the
is_token_valid
rule in policy.rego should evaluate to true for the sample tokensActual Behavior
It evaluates to false, as the time comparison is comparing
time.now_ns()
(a value in nanoseconds) to the tokennbf
andexp
fields which are values in seconds.Steps to Reproduce the Problem
Open the policy from Step 3 in the Rego Playground via the playground link (https://play.openpolicyagent.org/p/252FCEX43z). Evaluate the selection fo
is_token_valid
To workaround, I updated the policy to:
The text was updated successfully, but these errors were encountered: