feat: Add AWS Role Chaining support for Workload Identity Federation#107
Merged
katamotokosuke merged 1 commit intomasterfrom Jan 20, 2026
Merged
feat: Add AWS Role Chaining support for Workload Identity Federation#107katamotokosuke merged 1 commit intomasterfrom
katamotokosuke merged 1 commit intomasterfrom
Conversation
Replace static AWS credentials with AssumeRole-based authentication to support automatic credential refresh for long-running jobs. Changes: - Add AwsRoleCredentialsSupplier for AssumeRole + auto-refresh (5 min before expiry) - Update WorkloadIdentityFederationConfig: replace aws_access_key_id/secret/session_token with aws_role_arn - Update WorkloadIdentityFederationAuth to use AwsSecurityCredentialsSupplier pattern - Update WorkloadIdentityFederationCredentials with new cache key based on role ARN - Add AWS SDK STS dependency - Add unit tests for AwsRoleCredentialsSupplier and WorkloadIdentityFederationAuth BREAKING CHANGE: Configuration schema changed - Removed: aws_access_key_id, aws_secret_access_key, aws_session_token - Added: aws_role_arn, aws_role_session_name (optional) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Contributor
Author
|
動作確認のため一旦マージします |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Background
AWS Role Chainingを使用する場合、AWSの仕様により最大セッション時間が1時間に制限されます。従来の実装では静的なAWS認証情報を設定で受け取っていたため、プラグイン内部でのリフレッシュができず、1時間以上のジョブで認証情報が期限切れになる問題がありました。
Changes
AwsRoleCredentialsSupplier.javaWorkloadIdentityFederationConfig.javaWorkloadIdentityFederationAuth.javaWorkloadIdentityFederationCredentials.javashadow-google-cloud-bigquery-helper/build.gradleAwsRoleCredentialsSupplierTest.javaWorkloadIdentityFederationAuthTest.javaBreaking Changes
設定スキーマが変更されます:
Test plan
./gradlew test)🤖 Generated with Claude Code