-
Notifications
You must be signed in to change notification settings - Fork 189
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
Support regex-based paths ignoring for RBAC authz/authn #130
Comments
cc @s-urbaniak |
@brancz @s-urbaniak Do you have any suggestions? |
@knopt thank you for the feature suggestion! A couple of comments:
How about simply extending the current |
@s-urbaniak thanks for the reply!
So I guess we agree on the solution, I'll try to post the PR in a couple of days |
Hi there!
I'd like to propose a new feature, which would allow to ignore authn/authz for specific paths, based on a regex. This would allow to handle more complex authn/authz logic than
ignore-paths
flag does.I would suggest to introduce
ignore-regex
flag, which would accept single go-style regex, and exclude any path that matches the regex from authn/authz. This exclusion would be additional toignore-paths
exclusion, meaning that if a path matches one of paths fromignore-paths
it will be excluded as well. Currently a path has to equal to one of paths fromignore-paths
to be excluded.Example usage would be specifing
--ignore-regex='/path/(.)*'
to exclude all subpaths from authn/authz.Please let me know your thoughts. Once we agree on the solution I'll be happy to submit a PR.
Thanks,
Tomasz
The text was updated successfully, but these errors were encountered: