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

stringlike comparison operator? #95

Closed
mewalig opened this issue Dec 18, 2017 · 2 comments
Closed

stringlike comparison operator? #95

mewalig opened this issue Dec 18, 2017 · 2 comments

Comments

@mewalig
Copy link

mewalig commented Dec 18, 2017

Any plans to add a StringLike operator such as used in AWS policies (e.g. http://docs.aws.amazon.com/AmazonS3/latest/dev/amazon-s3-policy-keys.html)? Would be nice to have something in between StringEqual and Regex-- easier for users and more scalable than RegEx, and also lowers the barriers to porting between AWS and Ladon policies.

@aeneasr
Copy link
Member

aeneasr commented Dec 19, 2017

Hi, that is a good point and it has been on my mind for a long time. I think you are talking about resource/action/subject names, right?

My current idea would be to allow both - regexp and StringEqual, but disallow a mixture of the two, so you could do:

  • foo:bar:*
  • foo:bar:<.*>

But not:

  • foo:bar:*:<.*>

What do you think?

@aeneasr
Copy link
Member

aeneasr commented Oct 8, 2018

Closing because this repository is being archived. This feature is scheduled for implementation in ORY Keto.

@aeneasr aeneasr closed this as completed Oct 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants