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

Strengthen the validation regexs on object IDs #27

Merged
merged 1 commit into from
Feb 7, 2022

Conversation

josephschorr
Copy link
Member

It was not properly checking that the entire ID matches the regex

Fixes authzed/spicedb#407

It was not properly checking that the *entire* ID matches the regex

Fixes authzed/spicedb#407
Copy link
Contributor

@ecordell ecordell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed offline: This is technically a backwards-incompatible change, but if data was written against this validation that would start to fail after this merges, then that data was already in a state that prevented it from being used in all of the current APIs.

There may be some time that this validation is relaxed, but for now we just want it to be consistent.

@josephschorr josephschorr merged commit 44dcca2 into authzed:main Feb 7, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Feb 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Embedded message failed validation
3 participants