fix: update user/relation/object regex validation. - #205
Conversation
Update the regex validation for user, relation, and object under CheckRequestTupleKey.
|
This PR has had no human activity for 90 days, so it has been marked This is automated backlog grooming, not a judgment on the work. What happens next, unless there is activity:
To keep it open, push a commit or leave a comment, and the clock will reset. For work that should not auto-close, such as an RFC or long-running experiment, ask a maintainer to add |
|
This PR has had no human activity for 30 days since being marked It will be closed in 30 days unless there is new activity. If the work still matters, this is the moment to say so: leave a comment, push a commit, or ask a maintainer to add If this work is no longer being pursued, no action is needed. |
Update the regex validation for
user,relation, andobjectunderCheckRequestTupleKey.Updated regular expressions used for user, relation and object under CheckRequestTupleKey in the following manner:
user:^(?=.{2,512}$)(?:[a-z_-]+:(?:[a-zA-Z0-9_/#-]+|\*))$relation:^[a-z]{1,50}$object:^(?=.{2,256}$)(?:[a-z_-]+:(?:[a-zA-Z0-9_/-]+|\*))$Description
I tried to follow the docs for this project to ensure the regex matches, if there is a mistake or edge case please correct me. This is also my first code-based PR so please correct me if i did not understand the issue properly.
References
This PR is to fix the problem mentioned in this issue #188
Review Checklist
main