# Bedrock with IRSA: no key in the application, the default chain finds the projected token

Environment the pod gets (the only configuration the application receives):
  AWS_ROLE_ARN                = arn:aws:iam::111122223333:role/spring-ai-bedrock
  AWS_WEB_IDENTITY_TOKEN_FILE = <projected service account token>
  (AWS_ENDPOINT_URL_* point at the local stub; on EKS they are absent)
  spring.ai.bedrock.aws.access-key / secret-key / session-token: not set

Application output:
  INFO  audit - provider=bedrock principal=arn:aws:sts::111122223333:assumed-role/spring-ai-bedrock/pod-session model=us.anthropic.claude-sonnet-4-5-20250929-v1:0 outcome=OK inputTokens=12 outputTokens=7 ms=<n>
  ANSWER 1: Hello from the Bedrock stub.

STS received 1 AssumeRoleWithWebIdentity call(s) (1 GetCallerIdentity for the audit identity)
  Authorization header on AssumeRoleWithWebIdentity: null (this call is not signed)
  RoleArn                     = arn:aws:iam::111122223333:role/spring-ai-bedrock
  RoleSessionName starts with = aws-sdk-java-
  WebIdentityToken equals the token file content: true

Bedrock received POST /model/us.anthropic.claude-sonnet-4-5-20250929-v1:0/converse
  signed by access key id : ASIASTUB0000...  (temporary: starts with ASIA)
  signing service / region: bedrock / us-east-1
  x-amz-security-token signed: true
  X-Amz-Security-Token header present: true
