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

Add sha256 support for library verification to the launcher and a flag to disable it. #1656

Merged
merged 4 commits into from
Oct 27, 2023

Conversation

leMaik
Copy link
Member

@leMaik leMaik commented Oct 24, 2023

It's 2023 and md5 is basically broken. This PR adds sha256 verification support. The latest.json for Chunky 2.4.5 on my server already contains the sha256 hashes.

Using --dangerouslyDisableLibraryValidation, checksum validation of libraries can now be disabled. This is a potential security issue and thus not recommended. It does help with local debugging and sharing custom Chunky versions though. Closes #1509

@leMaik
Copy link
Member Author

leMaik commented Oct 24, 2023

Having that flag as system property means that the checksum validation could be disabled by environment variables (ie. JAVA_TOOL_OPTIONS. I'll change this to a command line flag.

@leMaik leMaik merged commit 47b7f25 into chunky-dev:master Oct 27, 2023
1 check passed
@leMaik leMaik deleted the launcher-checksum-update branch October 27, 2023 21:33
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.

Add an option to disable md5 checks
1 participant