Always use path style endpoints

Created on 25 July 2025, 2 months ago

Problem/Motivation

Bucket names with a "." will not work with s3fs_cors. The reason is that "https://www.example.com.s3.dualstack.amazonaws.com/" does not have a valid SSL certificate because of the dots in the name. Only "https://www-example-com.s3.dualstack.amazonaws.com/" will work, as the SSL certificate only matches the "https://*.s3.dualstack.amazonaws.com/" name.

People won't know about this problem until they start using s3fs_cors. It also will cost them time to figure out the problem as it is not obvious.

You can enable the use_path_style_endpoint of s3fs, but that has its own problems with s3fs, and I prefer to have it disabled.

IMO there is no good reason for s3fs_cors not to use path style endpoints all the time, so that is what this tiny patch does. It will use "https://s3.dualstack.amazonaws.com/www.example.com/"

Steps to reproduce

Use a bucket with a dot in it.

Proposed resolution

Always use path style endpoints.

Feature request
Status

Active

Version

1.1

Component

Code

Created by

🇳🇿New Zealand berenddeboer

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024