Skip to content

chainloop artifact upload seems to fail for S3 buckets #2518

@javirln

Description

@javirln

UPDATE
This is the issue https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/feature/s3/manager@v1.20.1#hdr-Pre_computed_Checksums-Uploader

We have seen a weird behaviour when trying to upload some artifacts to a S3 bucket. Some artifacts report the following:

$ chainloop artifact upload --file ~/Downloads/chainloop-linux-amd64
INF uploading chainloop-linux-amd64 - sha256:44c7fa3a3545c29c8c990699c3209aeaef1d71f3773a0b53d7a5ca9d3910f56b
 ... done! [89.84MB in 7.713s; 11.65MB/s]
ERR server error

The error on the CAS side is something like:

{"level":"error","ts":1762342756.7378519,"component":"service","msg":"failed to upload to bucket: upload multipart failed, upload id: THE-ID, cause: operation error S3: CompleteMultipartUpload, https response error StatusCode: 400, RequestID: OTHER-ID, HostID: HOST-ID, api error BadDigest: The sha256 you specified did not match the calculated checksum."...

Uploading to OCI seems to work fine:

$ chainloop artifact upload --file ~/Downloads/chainloop-linux-amd64
 ... done! [89.84MB in 10.1s; 8.90MB/s]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions