Skip to content

Commit 4e20bc3

Browse files
committed
docs(buffer): document presign lifetime bound by signing credentials
1 parent a80fbd2 commit 4e20bc3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

apps/sim/app/api/tools/buffer/server-utils.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ const MEDIA_PROBE_TIMEOUT_MS = 5000
2222
* Buffer fetches asset URLs at publish time, which for queued or scheduled
2323
* posts can be days after createPost. Presign stored files for the S3 maximum
2424
* of 7 days so scheduled posts within that window can still be published.
25+
* The effective lifetime is additionally bounded by the signing credentials:
26+
* Sim's storage clients sign with static keys (AWS_ACCESS_KEY_ID /
27+
* AWS_SECRET_ACCESS_KEY), which support the full 7 days; deployments signing
28+
* with temporary session credentials cap every presigned URL at the session
29+
* lifetime platform-wide.
2530
*/
2631
const MEDIA_PRESIGN_EXPIRY_SECONDS = 7 * 24 * 60 * 60
2732

0 commit comments

Comments
 (0)