Repository navigation
feat(storage): SecuritySignatureManager – implement RocksDB iteration (v1.8.0 #206) - #4260
Merged
Merged
Conversation
…er (v1.8.0 #206) - Add RocksDBWrapper::iterateRange(start_key, end_key, callback) using a rocksdb::Iterator under OperationGuard lifecycle protection - Fix listAllSignatures() TODO: use iterateRange over the security_sig: prefix - Add SecuritySignatureManager::verifyAll() that iterates all stored signature keys via iterateRange and verifies each file's SHA-256 hash - Extract makePrefixRange() helper to avoid duplicating end-key logic - Add 13 focused tests in test_security_signature_rocksdb_iteration.cpp - Add CMakeLists.txt target test_security_signature_rocksdb_iteration_focused - Add CI workflow security-signature-rocksdb-iteration-ci.yml - Mark FUTURE_ENHANCEMENTS.md items as complete" Co-authored-by: makr-code <[email protected]>
Copilot
AI
changed the title
[WIP] Implement RocksDB iteration for SecuritySignatureManager
feat(storage): SecuritySignatureManager – implement RocksDB iteration (v1.8.0 #206)
Mar 15, 2026
makr-code
marked this pull request as ready for review
March 15, 2026 13:18
Owner
|
@copilot Review und Code Audit. Wurden alle Aufgaben des Issue erfüllt? |
Contributor
Author
Ja, alle Aufgaben des Issues wurden vollständig erfüllt. Hier die Audit-Übersicht: AC-1 ✅
AC-2 ✅
Tests ✅ 13 Tests in
Weitere Artefakte ✅
Der CI-Run hat Status Commit: |
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.
listAllSignatures()silently returned an empty result when backed by RocksDB (TODO at line 110).verifyAll()did not exist. Both gaps meant integrity checks across all stored records were impossible.Description
RocksDBWrapper– newiterateRangeDirect
rocksdb::IteratorunderOperationGuard(same thread-safety pattern asscanRange). Callback returningfalsestops early.SecuritySignatureManager– iteration + bulk verifymakePrefixRange()(private helper) — computes["security_sig:", "security_sig;"]once; used by both list and verify paths to avoid duplication.listAllSignatures()— replaces the TODO withiterateRangeover the prefix range; deserialises each value intoSecuritySignature.verifyAll()(new) — iterates all stored signature keys viaiterateRange, callsverifyFileper entry, returnsVerifyAllResult:Both RocksDB and in-memory fallback paths are handled in each method.
Tests & CI
tests/test_security_signature_rocksdb_iteration.cpp— coversiterateRangebounds, exclusive end key, early termination, value retrieval;listAllSignaturesprefix isolation;verifyAllempty/correct/wrong-hash/missing-file/mixed + fallback path.test_security_signature_rocksdb_iteration_focused/SecuritySignatureRocksDBIterationFocusedTests..github/workflows/security-signature-rocksdb-iteration-ci.yml(gcc-12, clang-15, gcc-13).Audit / Code Review
A post-implementation audit confirmed all acceptance criteria from the issue are fully satisfied:
RocksDBWrapper::iterateRangedeclared in header, implemented withrocksdb::Iterator+OperationGuard.SecuritySignatureManager::verifyAll()wired toiterateRange; scans allsecurity_sig:keys and verifies each file's SHA-256 hash in sequence.src/storage/FUTURE_ENHANCEMENTS.mditems marked[x]complete.Type of Change
Testing
📚 Research & Knowledge (wenn applicable)
/docs/research/angelegt?/docs/research/implementation_influence/eingetragen?Relevante Quellen:
Checklist
Original prompt
SecuritySignatureManager: Implement RocksDB Iteration #4037✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.