Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for a now built-in method for warrant policies #155

Open
kkajla12 opened this issue Jun 12, 2023 · 0 comments
Open

Add support for a now built-in method for warrant policies #155

kkajla12 opened this issue Jun 12, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@kkajla12
Copy link
Member

Is your feature request related to a problem? Please describe.
In some use cases, access rules should only apply to a subject (user) for a specific time period each day/week/month/year. For example, a contract employee might only have access to a particular page in a dashboard on Monday each week. In order to write policies like this, the policy runtime needs to know the time at which the policy is being evaluated.

Describe the solution you'd like
To support writing policies with this type of behavior, we should add support for a built-in now method that returns the current time during evaluation of the policy. Developers can then use this timestamp to implement all sorts of time-based functionality like the example above and more.

Describe alternatives you've considered
Without the ability to get the current timestamp at time of policy evaluation, there is no alternative solution currently.

Additional context
N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant