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

AWS_USE_FIPS_ENDPOINT should handle non-existing fips endpoints #8750

Closed
CharmanderJieniJieni opened this issue Jun 18, 2024 · 2 comments
Closed
Assignees
Labels
feature-request A feature should be added or improved.

Comments

@CharmanderJieniJieni
Copy link

Describe the bug

We have AWS_USE_FIPS_ENDPOINT enabled and noticed that if we are making aws cli calls to regions which does not support fips service endpoint, AWS CLI still tries to append -fips in the api call which ends up with DNS resolving error.

Expected Behavior

For example, If I enable AWS_USE_FIPS_ENDPOINT and then do a aws s3 ls --region ap-southeast-1. The API call should redirect to "https://s3.ap-southeast-1.amazonaws.com/" since FIPs service endpoint is not in this region

Current Behavior

Currently will get below error

"https://s3-fips.ap-southeast-1.amazonaws.com/": dial tcp: lookup s3-fips.ap-southeast-1.amazonaws.com on 127.0.0.53:53: no such host

Reproduction Steps

  1. Enable AWS_USE_FIPS_ENDPOINT
  2. aws s3 ls --region ap-southeast-1

Possible Solution

No response

Additional Information/Context

No response

CLI version used

2.16.9

Environment details (OS name and version, etc.)

Ubuntu 20

@CharmanderJieniJieni CharmanderJieniJieni added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jun 18, 2024
@tim-finnigan tim-finnigan self-assigned this Jun 19, 2024
@tim-finnigan tim-finnigan added the investigating This issue is being investigated and/or work is in progress to resolve the issue. label Jun 19, 2024
@tim-finnigan
Copy link
Contributor

Thanks for reaching out. Here are the currently supported FIPS endpoints for reference: https://aws.amazon.com/compliance/fips/. The AWS CLI is working as intended here and resolving to the correct endpoint when AWS_USE_FIPS_ENDPOINT is set. There are not plans to support a redirect for non-FIPS supported regions. You can manually specify the endpoint URL if necessary by using aws s3 ls --endpoint-url https://s3.ap-southeast-1.amazonaws.com

@tim-finnigan tim-finnigan closed this as not planned Won't fix, can't repro, duplicate, stale Jun 19, 2024
@tim-finnigan tim-finnigan added feature-request A feature should be added or improved. and removed bug This issue is a bug. investigating This issue is being investigated and/or work is in progress to resolve the issue. needs-triage This issue or PR still needs to be triaged. labels Jun 19, 2024
Copy link

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved.
Projects
None yet
Development

No branches or pull requests

2 participants