-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
failed to connect to the STS #11067
Comments
Hello, |
Please reopne , I have tried using region but it gives the same error |
Reopening this issue as per @prassawant 's comment. @prassawant what is your server side config? |
Thanks for reopening auth/aws/config/client |
@prassawant I'm currently on a similar journey and I've just got my first successful AWS authentication with vault 1.5.x. Comparing your aws client configuration with mine the main notable difference is that I have a value set for the 'endpoint' attribute. According to https://docs.aws.amazon.com/general/latest/gr/ec2-service.html this should probably be "ec2.eu-west-2.amazonaws.com" for you. |
@sriedel that endpoint is for ec2 , I am working on enabling regional endpoint for sts |
I have raised the pull request (#11363) |
@prassawant I've closed the PR quoting the need to make an upstream PR for the library. |
@vishalnayak raised another for library |
Great! |
Since it's been a few months since there was last activity on this issue, I'll go ahead and close it now. If you have further bug reports, or more activity on this issue, please feel free to re-open it. Don't forget you can get help on our discuss forum, as well! https://discuss.hashicorp.com/c/vault/30 |
We have a similar issue, we want to use the vpc endpoint to connect to the regional sts endpoint
but when I try to login I got this error
|
@cha7ri Did you ever manage to resolve this? Struggling with the same. it's defaulting to us-east-1 no matter what I do. I've tried:
|
I used this in my vault build and successfully retrieving tokens. Don't forget to also allow the relevant outbound access in your vault security group over HTTPS
|
I was having this same issue with vault 1.9.3. I have configured my client like:
I configured my role like
When running
I was able to resolve the issue by adding "region=us-west-2" to my vault login command. Notice that it doesn't have a dash. |
Describe the bug
I have installed Vault 1.6.2 , despite setting up sts_endpoint, sts_region and AWS_REGION=eu-west-2 (as mentioned in user guide and different blogs) the vault login method fails to get token
It throws the error following error
Error Authenticating: Error Making API request
URL PUT https://xxx.xx.local/v1/auth/aws/login
code: 400 Errors:
SignatureDoesNotMatch
Credential should be scoped to a valid region , not 'us-east-1'.To Reproduce
Steps to reproduce the behavior:
vault write ...
vault login -method=aws header_value=iam_server_id_header_value role=myrole ....
Expected behavior
Should retrieve STS token
Environment:
vault status
): 1.6.2vault version
): 1.6.2Vault server configuration file(s):
The text was updated successfully, but these errors were encountered: