Skip to content

fix(mcp): say which backends enforce requester pays - #67

Merged
houseme merged 1 commit into
rustfs:mainfrom
zhi22915:fix/request-payment-backend-notes
Nov 27, 2026
Merged

houseme merged 1 commit into
rustfs:mainfrom
zhi22915:fix/request-payment-backend-notes

Conversation

@zhi22915

Copy link
Copy Markdown
Contributor

Follow-up to #62. Stacked on #65 and #66: this branch contains their commits, so its diff shrinks to the request payment changes once they merge.

What was wrong in #62

The tools described what requester pays does as if every storage backend did it: "callers must authenticate and cover the request and data-transfer costs; anonymous access to the bucket is disabled while requester pays is set". Checked against the backends' sources, only AWS S3 does that:

Backend Requester pays
AWS S3 Enforced: callers authenticate and pay, anonymous access is disabled
RustFS (1.0.7 and current main) The setting is stored and never read: no request is charged to a caller, and anonymous access stays as the bucket's policy and ACL allow
MinIO Not implemented; the request is answered with NotImplemented

On RustFS the note let the setting pass for a restriction of access.

What changes

  • The notes of get_bucket_request_payment and put_bucket_request_payment name AWS S3 as the backend that enforces requester pays, say that RustFS only stores the setting, and point at put_bucket_policy and put_bucket_acl for restricting access. The tool descriptions, the payer parameter, the README, and the CHANGELOG say the same.
  • The failure hints name the missing implementation as a cause.
  • get_bucket_request_payment reports a payer it does not know as an error that names the value, instead of reporting the default BucketOwner for it. An absent payer element still is the S3 default. (An empty response body never reaches this code: the SDK rejects it as unparsable.)
  • BucketPayer::as_str replaces serializing the payer to strip the quotes off it.

Verification

The request payment tools described what requester pays does as if every
storage backend did it. Checked against the backends' sources, only AWS
S3 does:

- RustFS (1.0.7 and its main branch) stores the setting and never reads
  it: no request is charged to a caller, and anonymous access stays as
  the bucket's policy and ACL allow. The note that "anonymous access to
  the bucket is disabled while requester pays is set" let the setting
  pass for a restriction of access there
- MinIO does not implement the configuration at all and answers
  NotImplemented

- The notes of both tools now name AWS S3 as the backend that enforces
  requester pays, say that RustFS only stores the setting, and point at
  put_bucket_policy and put_bucket_acl for restricting access; the
  tool descriptions, the payer parameter, the README, and the CHANGELOG
  say the same
- The failure hints name the missing implementation as a cause
- get_bucket_request_payment reports a payer it does not know as an
  error naming the value, instead of reporting the default BucketOwner
  for it; an absent payer element still is the S3 default
- BucketPayer::as_str replaces serializing the payer to strip the quotes
  off it
- The tools run against the in-process endpoint with the backends'
  answers: both payers, an absent element, an unknown payer, a backend
  without the implementation, a missing bucket, and the document the
  setter sends
@zhi22915
zhi22915 force-pushed the fix/request-payment-backend-notes branch from ba6118e to 55ca11f Compare November 27, 2026 16:28
@houseme
houseme merged commit 21618d0 into rustfs:main Nov 27, 2026
6 checks passed
zhi22915 added a commit to zhi22915/mcp that referenced this pull request Nov 27, 2026
- Bump crate version to 0.9.1
- Set the release date of the 0.9.1 changelog section, which the
  feature PRs (rustfs#60-rustfs#63, rustfs#65-rustfs#67) assemble and keep current
houseme pushed a commit that referenced this pull request Nov 27, 2026
- Bump crate version to 0.9.1
- Set the release date of the 0.9.1 changelog section, which the
  feature PRs (#60-#63, #65-#67) assemble and keep current
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