-
Notifications
You must be signed in to change notification settings - Fork 25
feat: send server url sha256 encoded to update server #1311
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Hashes the server URL before sending it to the update endpoint to avoid transmitting the raw URL.
- Add SHA-256 hashing (noble-hashes) of serverUrl and send hex digest instead of plain URL.
- Introduce new imports for hashing utilities.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
kulmann
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No change per se, but could you please check with @TheOneRing that the resulting hash is the exact same for desktop and web? 😇
kulmann
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs a rebase now 🙈
|
Related: opencloud-eu/desktop#564 |
a05ab11 to
a41a2f9
Compare
Sounds like a perfect time to add some tests ;) |
|
@TheOneRing please confirm that we generate the same hashes https://host.docker.internal:9200/ -> 4401822c2b42930d40ec436c0effbc66940570ebf7f3d79093cc0976b65f2aab |
Description
Related Issue
How Has This Been Tested?
Types of changes