Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bucketname duplicated with host_bucket #23

Open
2 tasks
mark-kubacki opened this issue Dec 5, 2023 · 1 comment
Open
2 tasks

bucketname duplicated with host_bucket #23

mark-kubacki opened this issue Dec 5, 2023 · 1 comment

Comments

@mark-kubacki
Copy link

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.
@koblas
Copy link
Owner

koblas commented Dec 28, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants