Skip to content

Commit

Permalink
Add dependency on aws sts to support IAM roles for service accounts
Browse files Browse the repository at this point in the history
Despite since `software.amazon.awssdk:2.10.11`, the
`WebIdentityTokenFileCredentialsProvider` is part of the default
credentials chain, it will only be enabled if
`software.amazon.awssdk:sts` is on the classpath, which is
mentioned in the javadocs: "Use of this credentials provider
requires the 'sts' module to be on the classpath".

See aws/aws-sdk-java#2136
  • Loading branch information
groldan committed May 31, 2023
1 parent 630edb2 commit 1382740
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,12 @@
<artifactId>auth</artifactId>
<version>${aws.version}</version>
</dependency>
<dependency>
<!--- Additional dependency required to support "IAM roles for service accounts" -->
<groupId>software.amazon.awssdk</groupId>
<artifactId>sts</artifactId>
<version>${aws.version}</version>
</dependency>
<dependency>
<groupId>org.geoserver.community</groupId>
<artifactId>gs-datadir-catalog-loader</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions src/starters/raster-formats/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@
<groupId>org.geoserver.community</groupId>
<artifactId>gs-cog</artifactId>
</dependency>
<dependency>
<!--- Additional dependency required to support "IAM roles for service accounts" -->
<groupId>software.amazon.awssdk</groupId>
<artifactId>sts</artifactId>
</dependency>
<dependency>
<!-- provided scope for pgraster's and cog autoconfiguration when in web-ui -->
<groupId>org.geoserver.web</groupId>
Expand Down

0 comments on commit 1382740

Please sign in to comment.