Skip to content

Commit

Permalink
Ignore Amazon EC2 public domain as AWS S3 domain
Browse files Browse the repository at this point in the history
Fixes minio#1390

Signed-off-by: Bala.FA <bala@minio.io>
  • Loading branch information
balamurugana committed Jan 13, 2024
1 parent fbcfca1 commit 9d5c9d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions minio/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,9 @@ def _get_aws_info(
if not _AWS_ENDPOINT_REGEX.match(host):
return (None, None)

if host.startswith("ec2-"):
return (None, None)

if not _AWS_S3_ENDPOINT_REGEX.match(host):
raise ValueError(f"invalid Amazon AWS host {host}")

Expand Down

0 comments on commit 9d5c9d0

Please sign in to comment.