s3-cli icon indicating copy to clipboard operation
s3-cli copied to clipboard

bucketname duplicated with host_bucket

Open mark-kubacki opened this issue 2 years ago • 1 comments

Given this configuration:

[default]
host_base = s3.nl-ams.scw.cloud
host_bucket = %(bucket)s.s3.nl-ams.scw.cloud
bucket_location = nl-ams
use_https = True

I want to upload an file:

s3-cli --part-size 512 cp *localname* s3://my-storage

Instead, this ends in:

RequestError: send request failed
caused by: Post "https://my-storage.my-storage.s3.nl-ams.scw.cloud/the-files-localname?uploads=": tls: failed to verify certificate: x509: certificate is valid for *.s3-website.nl-ams.scw.cloud, *.s3.nl-ams.scw.cloud, s3-website.nl-ams.scw.cloud, s3.nl-ams.scw.cloud, not my-storage.my-storage.s3.nl-ams.scw.cloud
  • [ ] The bucket appears twice in the hostname.
  • [ ] The certificate is valid and the host has a current ca-certificate.crt file that gets used, so this could be a second-order effect.

mark-kubacki avatar Dec 05 '23 21:12 mark-kubacki

Good bug, still looking into how to fix this without breaking anything.

koblas avatar Dec 28 '23 12:12 koblas