Skip to content

feat(bucket): manage public access block configuration - #410

Merged
cxymds merged 3 commits into
rustfs:mainfrom
jmeiracorbal:feat/bootstrap-bucket-apis
Nov 18, 2026
Merged

cxymds merged 3 commits into
rustfs:mainfrom
jmeiracorbal:feat/bootstrap-bucket-apis

Conversation

@jmeiracorbal

Copy link
Copy Markdown
Contributor

Related issues

N/A. This adds the CLI operation needed by the RustFS bootstrap integration discussed in rustfs/rustfs#997.

Context

Bootstrap workflows need a way to keep bucket-level public access blocked by default. The CLI did not expose the S3 Public Access Block operations.

Solution

Add rc bucket public-access-block get|set|remove with strict validation of all four flags, S3 API support, and an unsupported-by-default ObjectStore implementation for compatibility with other backends.

Validation

  • cargo fmt --all --check — passed.
  • cargo clippy --workspace --all-targets -- -D warnings — passed.
  • cargo test --workspace — passed (2,000 passed, 2 ignored).
  • Targeted Public Access Block API, output schema, and help tests — passed.

Impact

Adds bucket Public Access Block management to rc; existing ObjectStore implementations remain source-compatible.

@jmeiracorbal

Copy link
Copy Markdown
Contributor Author

Hi @overtrue,

Following up on this PR, as the dependent change in rustfs/rustfs#9162 has already been merged.

The container bootstrap functionality requires this CLI capability to be merged and released before it can be used.

Could you review this PR or let me know if any additional changes are needed before merging?

Thanks!

jmeiracorbal and others added 2 commits November 16, 2026 14:06
Merge main to keep the current dependency lockfile. Classify Public Access Block failures using S3 error metadata and cover missing configuration, missing buckets, and permission failures through the CLI.
@cxymds
cxymds merged commit da59bcb into rustfs:main Nov 18, 2026
13 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.

2 participants