Skip to content

Comments

feat(security): enforce export part hash verification#18

Merged
smekcio merged 3 commits intomainfrom
feat/security-export-part-hash-verification
Feb 22, 2026
Merged

feat(security): enforce export part hash verification#18
smekcio merged 3 commits intomainfrom
feat/security-export-part-hash-verification

Conversation

@smekcio
Copy link
Owner

@smekcio smekcio commented Feb 22, 2026

Summary

  • enforce SHA-256 verification for encrypted export parts using x-ms-meta-hash
  • add configurable requirement for export part hash presence
  • fail fast on hash mismatch

Changes

  • Added KsefClientOptions.require_export_part_hash (default: True)
  • Updated sync/async export workflows to validate part hashes before decryption
  • Added tests for matching hash, missing hash (required/optional), mismatch (sync + async)
  • Updated docs (configuration, workflows/export)

Validation

  • python -m pytest -q
  • Result at submission time: 404 passed, 4 skipped

@smekcio smekcio merged commit 966c895 into main Feb 22, 2026
16 checks passed
@smekcio smekcio deleted the feat/security-export-part-hash-verification branch February 22, 2026 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant