Skip to content

feat(services/s3): Rename allow_anonymous to skip_signature#7544

Merged
Xuanwo merged 3 commits into
apache:mainfrom
YuangGao:feat/s3-skip-signature
May 18, 2026
Merged

feat(services/s3): Rename allow_anonymous to skip_signature#7544
Xuanwo merged 3 commits into
apache:mainfrom
YuangGao:feat/s3-skip-signature

Conversation

@YuangGao
Copy link
Copy Markdown
Contributor

@YuangGao YuangGao commented May 18, 2026

Which issue does this PR close?

Refs #7537.

Rationale for this change

allow_anonymous on S3 services is misleading — the implementation unconditionally skips credential loading and request signing rather than falling back from a failed credential load. Rename it to skip_signature to describe the actual behavior, aligning with object_store::AmazonS3Builder::with_skip_signature.

What changes are included in this PR?

  • Rename S3Config::allow_anonymous to skip_signature, with #[serde(alias = "allow_anonymous")] so the old config key still deserializes.
  • Add S3Builder::skip_signature(); keep S3Builder::allow_anonymous() as a #[deprecated] wrapper.
  • Rename the short-circuit field in S3Core and update sign_query / send / fetch.
  • Update object_store_opendal integration to map SkipSignature to s3.skip_signature().
  • Update .NET S3 service config (AllowAnonymousSkipSignature).
  • Regenerate Java + Python bindings

Are there any user-facing changes?

Yes, but not breaking

AI Usage Statement

AI-assisted implementation.

@YuangGao YuangGao marked this pull request as ready for review May 18, 2026 03:03
@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. releases-note/feat The PR implements a new feature or has a title that begins with "feat" labels May 18, 2026
Copy link
Copy Markdown
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

This is a breaking change. Please deprecate the old options and add new ones instead of simply removing them.

@YuangGao YuangGao force-pushed the feat/s3-skip-signature branch from b018873 to 56daf14 Compare May 18, 2026 05:06
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels May 18, 2026
@YuangGao
Copy link
Copy Markdown
Contributor Author

updated to keep allow_anonymous as deprecated

Copy link
Copy Markdown
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

Thank you!

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label May 18, 2026
@Xuanwo Xuanwo merged commit b25d98f into apache:main May 18, 2026
382 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer releases-note/feat The PR implements a new feature or has a title that begins with "feat" size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants