Add support to override endpointUri for AWS IAM Authentication.

We now allow setting the AWS IAM Endpoint URI to adjust for various AWS regions.

Closes gh-346.
This commit is contained in:
Mark Paluch
2019-08-14 10:19:44 +02:00
parent ff3de271ec
commit 6b041b4df3
3 changed files with 24 additions and 2 deletions

View File

@@ -357,12 +357,14 @@ spring.cloud.vault:
role: my-dev-role
aws-path: aws
server-id: some.server.name
endpoint-uri: https://sts.eu-central-1.amazonaws.com
----
====
* `role` sets the name of the role against which the login is being attempted. This should be bound to your IAM role. If one is not supplied then the friendly name of the current IAM user will be used as the vault role.
* `aws-path` sets the path of the AWS mount to use
* `server-id` sets the value to use for the `X-Vault-AWS-IAM-Server-ID` header preventing certain types of replay attacks.
* `endpoint-uri` sets the value to use for the AWS STS API used for the `iam_request_url` parameter.
AWS-IAM requires the AWS Java SDK dependency (`com.amazonaws:aws-java-sdk-core`)
as the authentication implementation uses AWS SDK types for credentials and request signing.