Skip to content

[v18] Fix encrypted recording uploads in S3#60895

Merged
rosstimothy merged 1 commit intobranch/v18from
joerger/v18/pad-encrypted-recordings-s3
Nov 3, 2025
Merged

[v18] Fix encrypted recording uploads in S3#60895
rosstimothy merged 1 commit intobranch/v18from
joerger/v18/pad-encrypted-recordings-s3

Conversation

@Joerger
Copy link
Copy Markdown
Contributor

@Joerger Joerger commented Oct 31, 2025

Backport #60542 to branch/v18

Changelog: Fix a bug where encrypted sessions recordings could not be uploaded to S3.

* Add necessary padding to encrypted recordings for s3.

* Add padded part instead of editing existing part; Don't pad last upload part; Support skipping padded part in streamer.

* Reconstruct encrypted uploads from agent.

* Concatenate upload parts into a single upload part instead of restructuring and combining them.

* Make iterator buffer safe.

* Remove padding from 128kb parts during concatenation.

* Fix padding through gRPC service.

* Cleanup; Fix discarded padding logic.

* Add tests.

* Fix bad upload test.

* Expand test, add comments.

* Minor edits.

* Add padding helper with test; Add comments.

* Fix tests, lint.

* Don't use TELEPORT_UNSTABLE_GRPC_RECV_SIZE.

* Apply suggestions from code review

Co-authored-by: Erik Tate <erik.tate@goteleport.com>

---------

Co-authored-by: Erik Tate <erik.tate@goteleport.com>
@github-actions github-actions bot added audit-log Issues related to Teleports Audit Log backport size/lg labels Oct 31, 2025
@rosstimothy rosstimothy added this pull request to the merge queue Nov 3, 2025
Merged via the queue into branch/v18 with commit 130d6a9 Nov 3, 2025
43 of 45 checks passed
@rosstimothy rosstimothy deleted the joerger/v18/pad-encrypted-recordings-s3 branch November 3, 2025 14:13
This was referenced Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

audit-log Issues related to Teleports Audit Log backport size/lg

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants