Skip to content

Commit 407bb4f

Browse files
lidiams96claude
andauthored
fix: add STS dependency for IRSA credential resolution in EKS (#98)
The BedrockProvider uses the AWS SDK DefaultCredentialsProvider chain, which requires the STS module on the classpath to perform AssumeRoleWithWebIdentity. Without it, the credential chain silently skips IRSA and falls back to EC2 instance metadata, causing the plugin to use the EKS node role instead of the pod's service account IAM role. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 28ee969 commit 407bb4f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,5 +230,14 @@
230230
</exclusions>
231231
</dependency>
232232

233+
<!-- Required for IRSA (IAM Roles for Service Accounts) in EKS environments.
234+
Without this, DefaultCredentialsProvider cannot perform AssumeRoleWithWebIdentity
235+
and falls back to EC2 instance metadata (node role). -->
236+
<dependency>
237+
<groupId>software.amazon.awssdk</groupId>
238+
<artifactId>sts</artifactId>
239+
<version>2.33.5</version>
240+
</dependency>
241+
233242
</dependencies>
234243
</project>

0 commit comments

Comments
 (0)