Skip to content

Strengthen the validation regexs on object IDs#27

Merged
josephschorr merged 1 commit intoauthzed:mainfrom
josephschorr:object-id-regex
Feb 7, 2022
Merged

Strengthen the validation regexs on object IDs#27
josephschorr merged 1 commit intoauthzed:mainfrom
josephschorr:object-id-regex

Conversation

@josephschorr
Copy link
Copy Markdown
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
Copy Markdown
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