zio / zio-s3

An S3 client for ZIO
Apache License 2.0
43 stars 31 forks source link

feat: implement a `presignGetObject` method #500

Open mbaechler opened 2 months ago

mbaechler commented 2 months ago

We implemented a method to generate presigned links :

  /**
   * This method generates a `PresignedGetObjectRequest` containing an URL that allows the object to be downloaded
   * without any credentials. Signature happens locally, it does not issue any network call. It's not a pure
   * computation neither as it performs an IO by looking at the current time.
   *
   * See https://web.archive.org/web/20240621234636/https://docs.aws.amazon.com/AmazonS3/latest/userguide/ShareObjectPreSignedURL.html
   * for further details regarding signature with S3.
   */

It requires to instantiate a S3Presigner in the Live class but it doesn't leak to the user.