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

Fix UUID generation in insecure/non-https contexts #233

Merged
merged 2 commits into from
Dec 31, 2024

Conversation

sabljak
Copy link
Contributor

@sabljak sabljak commented Dec 17, 2024

This PR implements a custom randomUUID function to replace the crypto.randomUUID that could not be used in insecure environments due to the nature of crypto.

Detailed discussion here #223

@josefarias
Copy link
Owner

Thanks! Taking a look tomorrow

Copy link
Owner

@josefarias josefarias left a comment

Choose a reason for hiding this comment

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

Fantastic @sabljak, thanks a bunch!

Had two small suggestions, then we'll be ready to merge.

app/assets/javascripts/hw_combobox/helpers.js Outdated Show resolved Hide resolved
@sabljak
Copy link
Contributor Author

sabljak commented Dec 30, 2024

Thanks for the review @josefarias !

I force-pushed the requested changes.
Now everything should be good to go. 🙌

@josefarias josefarias merged commit b827048 into josefarias:main Dec 31, 2024
@josefarias
Copy link
Owner

Perfect! Thanks @sabljak! Will be part of the next release

@josefarias josefarias changed the title Implement UUID v4 with crypto.getRandomValues() Fix UUID generation in insecure/non-https contexts Jan 2, 2025
@josefarias josefarias added the bug Something isn't working label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants