Skip to content

Conversation

@GatewayJ
Copy link
Contributor

@GatewayJ GatewayJ commented Jan 2, 2026

Type of Change

  • New Feature
  • Bug Fix
  • Documentation
  • Performance Improvement
  • Test/CI
  • Refactor
  • Other:

Related Issues

Summary of Changes

Checklist

  • I have read and followed the CONTRIBUTING.md guidelines
  • Passed make pre-commit
  • Added/updated necessary tests
  • Documentation updated (if needed)
  • CI/CD passed (if applicable)

Impact

  • Breaking change (compatibility)
  • Requires doc/config/deployment update
  • Other impact:

Additional Notes


Thank you for your contribution! Please ensure your PR follows the community standards (CODE_OF_CONDUCT.md) and sign the CLA if this is your first contribution.

@GatewayJ
Copy link
Contributor Author

GatewayJ commented Jan 2, 2026

#1299 @loverustfs please check it

@loverustfs loverustfs requested a review from Copilot January 2, 2026 07:08
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request implements permission verification for deleting object versions in the RustFS S3-compatible storage system. The changes add fine-grained authorization checks that ensure users have appropriate permissions before deleting objects or specific object versions.

Key Changes:

  • Added per-object authorization checks in the delete_objects operation to verify permissions before deleting each object
  • Updated the delete_objects access control method to perform authorization instead of allowing all requests by default
  • Enhanced the ReqInfo struct with Debug trait for better debugging capabilities

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
rustfs/src/storage/ecfs.rs Added per-object authorization loop that checks DeleteObjectAction permissions for each object being deleted, including version-specific permission checks when version IDs are present
rustfs/src/storage/access.rs Modified delete_objects access control method to call authorize_request and added Debug trait to ReqInfo struct for improved debugging

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: GatewayJ <835269233@qq.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@loverustfs loverustfs merged commit cc91692 into rustfs:main Jan 2, 2026
12 checks passed
houseme added a commit that referenced this pull request Jan 3, 2026
…-proxies

* 'main' of github.com:rustfs/rustfs:
  Add workflow to mark stale issues automatically
  fix: remove nginx-ingress default body size limit (#1335)
  feat:Permission verification for deleting versions (#1341)
  chore: upgrade GitHub Actions artifact actions (#1339)
  chore: replace native-tls with pure rustls for FTPS/SFTP e2e tests (#1334)
  chore: upgrade dependencies and migrate to aws-lc-rs (#1333)
  fix: s3 list object versions next marker (#1328)
  fix(tagging): fix e2e test_object_tagging failure (#1327)
  Feat/ftps&sftp (#1308)

# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	crates/config/src/constants/mod.rs
#	crates/config/src/lib.rs
#	rustfs/Cargo.toml
houseme added a commit that referenced this pull request Jan 7, 2026
* 'main' of github.com:rustfs/rustfs:
  fix:correct RemoteAddr extension type to enable IP-based policy evaluation (#1356)
  Add workflow to mark stale issues automatically
  fix: remove nginx-ingress default body size limit (#1335)
  feat:Permission verification for deleting versions (#1341)
  chore: upgrade GitHub Actions artifact actions (#1339)
  chore: replace native-tls with pure rustls for FTPS/SFTP e2e tests (#1334)
  chore: upgrade dependencies and migrate to aws-lc-rs (#1333)
  fix: s3 list object versions next marker (#1328)
  fix(tagging): fix e2e test_object_tagging failure (#1327)
  Feat/ftps&sftp (#1308)
  fix(iam): preserve decrypt-failed credentials instead of deleting them (#1312)
  Restore globals and add unified TLS/mTLS loading from RUSTFS_TLS_PATH (#1309)
  fix: correctly handle aws:SourceIp in policy evaluation (#1301) (#1306)
  Add trendshift
  feat: add local s3-tests script with configurable options and improvements (#1300)
reatang pushed a commit that referenced this pull request Jan 11, 2026
Signed-off-by: GatewayJ <835269233@qq.com>
Co-authored-by: loverustfs <hello@rustfs.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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