Skip to content

fix: validate encryption context entry lengths#805

Open
kiwigitops wants to merge 1 commit into
aws:masterfrom
kiwigitops:fix-encryption-context-entry-length
Open

fix: validate encryption context entry lengths#805
kiwigitops wants to merge 1 commit into
aws:masterfrom
kiwigitops:fix-encryption-context-entry-length

Conversation

@kiwigitops
Copy link
Copy Markdown

Summary

  • reject encryption-context keys and values that exceed the two-byte serialized length limit before packing
  • add regressions that assert oversized entries raise SerializationError

Closes #55.

Testing

  • python -m pytest test/unit/test_encryption_context.py -q
  • git diff --check

@kiwigitops kiwigitops requested a review from a team as a code owner May 24, 2026 21:58
@kiwigitops kiwigitops changed the title Validate encryption context entry lengths fix: validate encryption context entry lengths May 24, 2026
@kiwigitops kiwigitops force-pushed the fix-encryption-context-entry-length branch from daee787 to d6ea609 Compare May 24, 2026 22:25
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.

Serialization of encryption context needs to check for single too-long key or value

1 participant