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

Use 128-bit random base64url identifiers for images & files, not uuid #9079

Merged
merged 2 commits into from
Apr 2, 2024

Conversation

dcousens
Copy link
Member

@dcousens dcousens commented Apr 2, 2024

This pull request standardizes file and image fields to use the same "identifier" shape and type, falling back on a random 128-bit randomBytes identifier encoded as base64url.

Although the change should be backwards compatible in respect to Keystone, as these identifiers shouldn't have been monotonic anyway - I have marked this as major in the event users expected them to be UUIDs for some other reason.

Copy link

codesandbox-ci bot commented Apr 2, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit f6ba664:

Sandbox Source
@keystone-6/sandbox Configuration

@dcousens dcousens merged commit 2e5b086 into main Apr 2, 2024
43 checks passed
@dcousens dcousens deleted the asset-ids branch April 2, 2024 03:25
@dcousens dcousens mentioned this pull request Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant