[fs] Support IRSA with AssumeRole delegation tokens - #4425
Open
fresh-borzoni wants to merge 1 commit into
Open
fresh-borzoni wants to merge 1 commit into
fresh-borzoni wants to merge 1 commit into
Conversation
fresh-borzoni
force-pushed
the
s3-irsa-assumerole
branch
from
September 18, 2026 15:45
0521762 to
7546620
Compare
fresh-borzoni
force-pushed
the
s3-irsa-assumerole
branch
from
September 18, 2026 15:50
7546620 to
ccd2bee
Compare
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.
Fluss 1.0.0 has no working configuration for EKS IRSA.
Hadoop S3A's default provider chain has no web-identity entry. On 3.4.3 STANDARD_AWS_PROVIDERS is:
EnvironmentVariableCredentialsProvider
IAMInstanceCredentialsProvider
SimpleAWSCredentialsProvider
TemporaryAWSCredentialsProvider
So the setup our docs currently recommend for EKS: omit the keys, let the default chain authenticate silently runs the server's own S3 access on the EC2 node role instead of IRSA. Delegation tokens still work, because that path falls back to the SDK's own chain, which does include web identity.
Fixing it means naming the provider explicitly and it's not working
Setting a provider alongside
s3.assumed.role.arnis rejected outright. Dropping the role ARN doesn't help either as provider mode mints client credentials withGetSessionToken, which cannot be called with temporary credentials, so IRSA is refused there too.The two settings aren't actually in conflict.
AssumeRoleaccepts a caller holding temporary credentials, so the provider can serve the server's own S3 access while the role mints credentials for clients.The way through is to set the provider per bucket instead of globally:
That passes because the check inspects three exact global keys, and S3A's propagateBucketOptions promotes the bucket-scoped key to fs.s3a.aws.credentials.provider during S3AFileSystem.initialize, after the check has run. The data path ends up on IRSA and delegation tokens stay on AssumeRole. But it's brittle tbh