Files
teleport/lib/auth/recordingencryption
Tiago Silva 2aaf823b00 events: refactor download methods to return io.ReadCloser (#64379)
* events: refactor download methods to return io.ReadCloser

Replace the writer-based download interface (Download, DownloadSummary,
DownloadMetadata, DownloadThumbnail) with a reader-based one that returns
io.ReadCloser, giving callers control over streaming.

Add a downloadretrier package implementing an io.ReadCloser that
transparently retries failed downloads up to 3 times, resuming from the
last successfully read byte offset. This replaces the S3-only retry logic
and extends resilient downloads to all storage backends (S3, GCS, Azure,
and local filesystem).

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

* avoid breaking e

* handle review feedback

* disable retry for pending summaries in gcs and abs

---------

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
2026-04-01 12:48:50 +00:00
..