forge icon indicating copy to clipboard operation
forge copied to clipboard

S3 Publisher can't be configured to prevent overwriting existing uploads if they exist

Open macdja38 opened this issue 2 years ago • 0 comments

Pre-flight checklist

  • [X] I have read the contribution documentation for this project.
  • [X] I agree to follow the code of conduct that this project uses.
  • [X] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Problem description

At the moment it's possible for an artifact to be uploaded over top of previous artifact.

Proposed solution

It would be fantastic if the s3 publisher was more customizable. Either allowing middleware to be supplied directly by the user, or by having a config option that supplies the If-None-Match: * header to s3 when uploading.

https://stackoverflow.com/a/76596824

Alternatives considered

In the key resolver step you can make a request to check if something is already on the server… Though that requires synchronously executing an http request.

Downsides:

  • Complexity
  • Race condition

Additional information

No response

macdja38 avatar Aug 30 '23 21:08 macdja38