Skip to content

[s3] Propagate path-style-access config from server to client via delegation token#3165

Merged
polyzos merged 1 commit intoapache:release-0.9from
luoyuxia:fix-s3-path-style-propagation-release-0.9
Apr 22, 2026
Merged

[s3] Propagate path-style-access config from server to client via delegation token#3165
polyzos merged 1 commit intoapache:release-0.9from
luoyuxia:fix-s3-path-style-propagation-release-0.9

Conversation

@luoyuxia
Copy link
Copy Markdown
Contributor

@luoyuxia luoyuxia commented Apr 22, 2026

Summary

  • S3DelegationTokenProvider only forwarded region and endpoint to the client via additionInfos in delegation tokens. The path.style.access setting was missing.
  • This caused the Fluss client (e.g., running in Flink TaskManager) to use virtual-hosted-style addressing (bucket.host) instead of path-style (host/bucket), resulting in UnknownHostException when using S3-compatible stores (MinIO/RustFS) in Docker environments.
  • Fix: Add fs.s3a.path.style.access to the forwarded config keys.

Test plan

  • Verified with Fluss quickstart-flink Docker setup using RustFS as S3-compatible storage

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes S3-compatible storage access in delegation-token mode by ensuring the server forwards the S3A path-style addressing setting to clients (e.g., Flink TaskManagers), avoiding virtual-hosted-style DNS issues in local/Docker environments.

Changes:

  • Add fs.s3a.path.style.access as a forwarded config key in S3 delegation token additionInfos.
  • Introduce a constant for the new forwarded key to keep the forwarded list explicit.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@luoyuxia luoyuxia force-pushed the fix-s3-path-style-propagation-release-0.9 branch from 62db895 to fda4a88 Compare April 22, 2026 14:08
@luoyuxia luoyuxia changed the title [s3] Propagate path-style-access config from server to client via delegation token [cherry-pick][release-0.9] Reintroduce Quickstart Image (#3150) Apr 22, 2026
…egation token

Previously, S3DelegationTokenProvider only forwarded region and endpoint
to the client via additionInfos. The path.style.access setting was missing,
causing the client to use virtual-hosted-style addressing (e.g., bucket.host)
instead of path-style (e.g., host/bucket), which fails with S3-compatible
stores like MinIO/RustFS where DNS resolution of virtual-hosted names is
not available.
@luoyuxia luoyuxia force-pushed the fix-s3-path-style-propagation-release-0.9 branch from fda4a88 to 3fead0c Compare April 22, 2026 14:21
@luoyuxia luoyuxia changed the title [cherry-pick][release-0.9] Reintroduce Quickstart Image (#3150) [s3] Propagate path-style-access config from server to client via delegation token Apr 22, 2026
@polyzos polyzos merged commit 4942cda into apache:release-0.9 Apr 22, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants