Skip to content

[FIXED] Cipher conversion fails on compressed msg block#7099

Merged
neilalexander merged 1 commit intomainfrom
maurice/cipher-compress-convert
Jul 25, 2025
Merged

[FIXED] Cipher conversion fails on compressed msg block#7099
neilalexander merged 1 commit intomainfrom
maurice/cipher-compress-convert

Conversation

@MauriceVanVeen
Copy link
Copy Markdown
Member

If a message block was compressed and the encryption cipher was changed, a cipher conversion would happen on startup. Although the cipher conversion would be successful, the sanity check would not take compression into account and would fail. Now we optionally decompress to allow for the sanity check to pass before converting to the new cipher.

Signed-off-by: Maurice van Veen github@mauricevanveen.com

@MauriceVanVeen MauriceVanVeen requested a review from a team as a code owner July 24, 2025 18:58
Copy link
Copy Markdown
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

In general LGTM - minor nit on clarity.

Signed-off-by: Maurice van Veen <github@mauricevanveen.com>
@MauriceVanVeen MauriceVanVeen force-pushed the maurice/cipher-compress-convert branch from 1d951ce to 66d94de Compare July 24, 2025 22:12
@derekcollison derekcollison self-requested a review July 24, 2025 22:44
Copy link
Copy Markdown
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

LGTM

@neilalexander neilalexander merged commit 52616d3 into main Jul 25, 2025
109 of 114 checks passed
@neilalexander neilalexander deleted the maurice/cipher-compress-convert branch July 25, 2025 08:33
neilalexander added a commit that referenced this pull request Jul 25, 2025
Includes the following:

- #7031
- #7033
- #7034
- #7035
- #7036
- #7040
- #7043
- #7045
- #7047
- #7046
- #7050
- #7051
- #7052
- #7053
- #7061
- #7063
- #7064
- #7065
- #7066
- #7070
- #7072
- #7080
- #7026
- #6728
- #7074
- #7089
- #7095
- #7087
- #7094
- #7096
- #7099

Signed-off-by: Neil Twigg <neil@nats.io>
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.

3 participants