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
hostname underscores #13025
Comments
Invalid endpoint is returned by boto3 here why is it reported here ? |
The fix needs to be in boto3 client here, which does not support underscore DNS names. Note hostnames cannot have underscore as per the RFC The underscore is not a legal character for use in hostnames. As defined in RFC 822, the only legal characters are the following:
|
Yep, yep, thank you @harshavardhana, definitely boto boto/boto3#703 |
Getting
Invalid endpoint
error with minio services that have a hostname with underscores like:Expected Behavior
Support underscores for minio service names
Current Behavior
given
.env
filewith a
docker-compose.yml
file like below:It works fine. It should work also in another (potentially larger)
docker-compose.yml
file like so:However because the service now has an underscore in the name, calls to it fail with "Invalid endpoint".
Possible Solution
update the regex, I believe a similar solution was mentioned here minio/minio-dotnet#238 and committed here https://github.com/minio/minio-dotnet/pull/334/files
Steps to Reproduce (for bugs)
run the second example I posted (with it's accompanying
.env
file present) and it will show the errorContext
It has made me be wary of my naming schemes used in docker-compose files. I walk through the halls, concerned that they might fail. Every corner I take, I look over my shoulder in suspicion. Life has become definitely harder.
Regression
No
Your Environment
minio --version
): minio/minio:RELEASE.2021-08-05T22-01-19Zuname -a
): minio docker image (redhat?) and python using boto to connectThe text was updated successfully, but these errors were encountered: