Skip to content

fix(bucket-encryption): allow default SSE-KMS key#222

Merged
overtrue merged 3 commits into
mainfrom
fix/sse-kms-default-key-optional
Jun 6, 2026
Merged

fix(bucket-encryption): allow default SSE-KMS key#222
overtrue merged 3 commits into
mainfrom
fix/sse-kms-default-key-optional

Conversation

@overtrue

@overtrue overtrue commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Related: rustfs/rustfs#3039, rustfs/rustfs#3225

Problem: rc bucket encryption set --mode sse-kms rejected missing --key-id, but RustFS supports using the server default KMS key for bucket-level SSE-KMS.

Solution: Allow bucket-level SSE-KMS without --key-id, keep --key-id invalid for SSE-S3, and update CLI/help/error/reference coverage.

BREAKING: Protected reference docs updated for a backward-compatible CLI contract expansion; no migration is required.

Validation: cargo fmt --all --check; cargo clippy --workspace -- -D warnings; cargo test --workspace.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 00f65bc2e7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/cli/src/commands/encryption.rs
@overtrue overtrue merged commit 2138d21 into main Jun 6, 2026
15 checks passed
@overtrue overtrue deleted the fix/sse-kms-default-key-optional branch June 6, 2026 02:57
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.

1 participant