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

Verify integrity of downloaded update #96

Merged
merged 4 commits into from
Apr 17, 2017
Merged

Conversation

LukasReschke
Copy link
Member

This can be easily tested by installing Nextcloud 11.0.1 and then executing the updater. Make sure to change the channel before to invalidate the cache.

On the regular updater server this should fail as no valid signature is set. On the https://updates.nextcloud.com/internal_updater_server/ one this should work, to configure it:

occ config:system:set --value "https://updates.nextcloud.com/internal_updater_server/" updater.server.url

Note that OpenSSL is already a hard-dependency in the server.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This verifies the integrity of the downloaded update using OpenSSL. The certificate is the one that we also use for the regular code signing.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
@LukasReschke
Copy link
Member Author

Let me adjust the integration tests here so that they have valid signatures.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Due to bug nextcloud/server#4362

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

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

Tested, works and code looks good 👍

@MorrisJobke MorrisJobke merged commit 3c28f8d into master Apr 17, 2017
@MorrisJobke MorrisJobke deleted the verify-integrity branch April 17, 2017 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants