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

Signature error when attempting to use STS #27

Closed
mrmcc3 opened this issue Dec 18, 2018 · 2 comments
Closed

Signature error when attempting to use STS #27

mrmcc3 opened this issue Dec 18, 2018 · 2 comments
Labels
bug Something isn't working

Comments

@mrmcc3
Copy link

mrmcc3 commented Dec 18, 2018

Hello, I'm getting the following signature error

{:ErrorResponse {:Error {:Type "Sender",
                         :Code "SignatureDoesNotMatch",
                         :Message "Credential should be scoped to a valid region, not 'ap-southeast-2'. "}},
 :ErrorResponseAttrs {:xmlns "https://sts.amazonaws.com/doc/2011-06-15/"},
 :cognitect.anomalies/category :cognitect.anomalies/forbidden}

When calling

(aws/invoke sts {:op :AssumeRole :request {:RoleArn arn :RoleSessionName "REPL"}})

For reference other APIs work fine

(aws/invoke ec2 {:op :DescribeInstances})

Deps

{:deps {org.clojure/clojure         {:mvn/version "1.10.0"}
        com.cognitect.aws/api       {:mvn/version "0.8.158"}
        com.cognitect.aws/endpoints {:mvn/version "1.1.11.467"}
        com.cognitect.aws/sts       {:mvn/version "669.2.364.0"}
        com.cognitect.aws/ec2       {:mvn/version "681.2.373.0"}}}
@dchelimsky dchelimsky added the bug Something isn't working label Dec 21, 2018
@dchelimsky
Copy link
Contributor

Per https://docs.aws.amazon.com/general/latest/gr/sigv4_elements.html#sigv4_elements_endpoint, "If you use a service like IAM that uses a globally unique endpoint, use the default region (us-east-1), as part of the Credential authentication parameter (described later in this topic)."

STS is such a service, and implementing ^^ fixes the issue. Fix coming shortly. Release in the next day or so.

@dchelimsky
Copy link
Contributor

Released in 0.8.166.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants