Skip to content

WIP S3 SDK upgrade#4719

Draft
andrew-nowak wants to merge 6 commits into
mainfrom
an/s3-sdk-upgrade-complete
Draft

WIP S3 SDK upgrade#4719
andrew-nowak wants to merge 6 commits into
mainfrom
an/s3-sdk-upgrade-complete

Conversation

@andrew-nowak
Copy link
Copy Markdown
Member

What does this change?

How should a reviewer test this change?

How can success be measured?

Who should look at this?

Tested? Documented?

  • locally by committer
  • locally by Guardian reviewer
  • on the Guardian's TEST environment
  • relevant documentation added or amended (if needed)

lazy val client: S3Client = S3Ops.buildS3Client(config)
lazy val presigner = S3Presigner.create()

def signUrl(bucket: Bucket, url: URI, image: Image, expiration: DateTime = cachableExpiration(), imageType: ImageFileType = Source): String = {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

turns out nothing's ever caching the presigned urls, so no need to round to make cacheable?
(if we do need this, it's annoying as v2 sdk only allows you to specify an expiry duration, not an expiry time, and expiry time is calculated internally against a call to Instant.now(), so impossible to guarantee urls match!)

@andrew-nowak andrew-nowak force-pushed the an/s3-sdk-upgrade-complete branch from 4548d4e to 12724a0 Compare May 8, 2026 16:17
@andrew-nowak andrew-nowak added the maintenance Departmental tracking: maintenance work, not a fix or a feature label May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Departmental tracking: maintenance work, not a fix or a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant