Add nextcloud-e2ee-verify CLI tool for offline E2EE metadata validation#10079
Draft
Copilot wants to merge 2 commits into
Draft
Add nextcloud-e2ee-verify CLI tool for offline E2EE metadata validation#10079Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
Copilot created this pull request from a session on behalf of
mgallien
May 26, 2026 17:23
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a standalone command-line tool for offline validation of Nextcloud E2EE folder metadata (v2.0+ only). Takes a private key + certificate, decrypts and structurally validates metadata JSON without any server connection or running client.
Summary
src/cmd/e2ee_verify_metadata.cpp(new)Sequential validation pipeline:
< 2.0immediatelyfiles,folders,counter,keyChecksums, per-file fields)SHA-256(key[0..15])must appear inkeyChecksumsverifySignatureCryptographicMessageSyntaxNested folder support via
--nested --metadata-key <base64>(key inherited from root run).No libsync/libp11 dependency — crypto is implemented directly with OpenSSL EVP + zlib +
Qt::Network(QSslCertificatefor cert fingerprinting).src/cmd/CMakeLists.txt(modified)Added
nextcloud-e2ee-verifytarget insideif(NOT BUILD_LIBRARIES_ONLY), linkingQt::Core Qt::Network OpenSSL::Crypto ZLIB::ZLIB. No newfind_packagecalls needed.Checklist
AI (if applicable)