rust-oci-client icon indicating copy to clipboard operation
rust-oci-client copied to clipboard

Support monolithic blob upload in single post request

Open tofay opened this issue 6 months ago • 3 comments

Would you accept a PR to add support for add https://github.com/opencontainers/distribution-spec/blob/main/spec.md#single-post ?

Rationale: When working with JFrog artifactory container registries where a user has permission to add but not delete/modify artifacts, if a network error occurs during a blob upload (either chunked or POST then PUT monolithic) then an admin is required to delete the failed blob upload. This is not the case with the single POST monolithic upload.

tofay avatar Jul 01 '25 06:07 tofay

This is something we already support, you can tune that with this knob.

Does that solve your problem?

flavio avatar Jul 09 '25 16:07 flavio

No, that knob refers to the "POST then PUT" monolithic push operation, whereas I'd like configuration to enable the single POST monolithic push.

tofay avatar Jul 09 '25 17:07 tofay

TIL there was a single POST monolithic operation. I think we'd love to have that since it is in the spec. Naming is hard though because it will need to differentiate between the POST then PUT monolithic and a POST monolithic. I'm up for any ideas you have there

thomastaylor312 avatar Jul 09 '25 23:07 thomastaylor312