Skip to content

feat(aws): support trusted S3 Express CreateSession endpoints - #843

Draft
Xuanwo wants to merge 2 commits into
mainfrom
xuanwo/s3-express-trusted-endpoint
Draft

feat(aws): support trusted S3 Express CreateSession endpoints#843
Xuanwo wants to merge 2 commits into
mainfrom
xuanwo/s3-express-trusted-endpoint

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Aug 12, 2026

Copy link
Copy Markdown
Member

Context

S3 Express CreateSession configuration only accepted AWS directory-bucket names and derived AWS or AWS China Zonal endpoints. That excluded S3-compatible deployments which expose CreateSession at a deployment-owned origin. A concrete documented example is MinIO AIStor S3 Express mode, whose S3 API compatibility reference lists CreateSession.

This introduces a separate, fallible trusted-endpoint configuration that binds the compatible bucket, SigV4 Region, and HTTPS origin before source credentials can be loaded. It preserves the strict AWS constructor and exposes no synthetic Zone or partition. The trust boundary is explicit: the configured origin receives the AWS Authorization header and any source x-amz-security-token.

Live AWS and MinIO AIStor interoperability were not run because this checkout has no authorized endpoint or credential environment. Deterministic tests cover pre-I/O endpoint validation, exact request routing and signing for long-lived and temporary source credentials, maximum-allowed mode behavior, and redaction.

Fixes #838

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.

Allow trusted custom endpoints for S3 Express CreateSession

1 participant