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 'in' evaluater to security rule #587

Closed
s-kris opened this issue Dec 27, 2019 · 1 comment
Closed

add 'in' evaluater to security rule #587

s-kris opened this issue Dec 27, 2019 · 1 comment
Milestone

Comments

@s-kris
Copy link

s-kris commented Dec 27, 2019

The problem faced currently?

We need to use 'or' and write multiple clauses to compare a value with multiple options (for example to check if args.auth.role is in an array of values ['role1', 'role2', 'role3'])

How can we solve it?

As talked on discord,

rule: match
eval: in
type: string
f1: args.auth.rule
f2: [val1, val2, val3]

the above 'in' evaluator will be very helpful in writing efficient security rules

If you want this feature to be implemented, give it a thumbs up reaction, so that we can determine which features are important to you.
👍

@HeyItsJs HeyItsJs added this to the v0.15.0 milestone Dec 29, 2019
@HeyItsJs
Copy link
Contributor

coming in v0.15.0

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

No branches or pull requests

2 participants