Skip to content

[v18] support session metadata generation for encrypted sessions#60945

Merged
tigrato merged 1 commit intobranch/v18from
tigrato/supportsummariesmetadataencryptedv18
Nov 3, 2025
Merged

[v18] support session metadata generation for encrypted sessions#60945
tigrato merged 1 commit intobranch/v18from
tigrato/supportsummariesmetadataencryptedv18

Conversation

@tigrato
Copy link
Copy Markdown
Contributor

@tigrato tigrato commented Nov 3, 2025

Backport of #60838 to branch/v18

Changelog: Enabled summarization and metadata generation for encrypted session recordings, storing metadata and summaries in encrypted form.

@github-actions github-actions bot added audit-log Issues related to Teleports Audit Log backport size/lg labels Nov 3, 2025
* support session metadata generation for encrypted sessions

Encrypted sessions do not use the normal uploader flow as the agents
encrypt the data themselves and push the encrypted blobs directly to
auth server.

This behavior caused the session metadata and summaries generation to be
skipped. This PR hooks the session summarization and metadata generation
into the encrypted sessions completer - it can be via  gRPC call or the local
AuditLog.

Since the encrypted session recordings receives the payloads encrypted
and parts might be sent to different auth servers in case one
disconnects in the middle, we always stream the full parts to retrieve
the `session.end` event. This can be further improved in the future.

This PR also adds support for encrypted session metadata and thumbnails
files so all data stored in the recordings backend will be encrypted and
users can't download the file and inspect the svg data.

Contributes to #60689

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>

* add unit tests for session completer

* add unit tests for audit log session completer

* move file decrypter to file

* handle code review comments

* add todo list

* remove duplicate code

* fix typo

* rename

---------

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
@tigrato tigrato force-pushed the tigrato/supportsummariesmetadataencryptedv18 branch from 1f3a527 to 1313027 Compare November 3, 2025 14:47
@tigrato tigrato added this pull request to the merge queue Nov 3, 2025
Merged via the queue into branch/v18 with commit 484821a Nov 3, 2025
39 checks passed
@tigrato tigrato deleted the tigrato/supportsummariesmetadataencryptedv18 branch November 3, 2025 22:09
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