Skip to content

HDDS-13855. Add integration tests for ACL enforcement after leadership change#10331

Open
ss77892 wants to merge 1 commit into
apache:masterfrom
ss77892:HDDS-13855-acl-enforcement-tests
Open

HDDS-13855. Add integration tests for ACL enforcement after leadership change#10331
ss77892 wants to merge 1 commit into
apache:masterfrom
ss77892:HDDS-13855-acl-enforcement-tests

Conversation

@ss77892
Copy link
Copy Markdown
Contributor

@ss77892 ss77892 commented May 21, 2026

Summary

  • Extends TestOMHALeaderSpecificACLEnforcement with 8 new test methods covering all operations changed in HDDS-13855
  • Volume: testVolumeDeleteAclEnforcementAfterLeadershipChange, testVolumeSetOwnerAclEnforcementAfterLeadershipChange, testVolumeSetQuotaAclEnforcementAfterLeadershipChange
  • Bucket: testBucketDeleteAclEnforcementAfterLeadershipChange, testBucketSetOwnerAclEnforcementAfterLeadershipChange, testBucketSetPropertyAclEnforcementAfterLeadershipChange
  • Keys: testKeysDeleteAclEnforcementAfterLeadershipChange, testKeysRenameAclEnforcementAfterLeadershipChange
  • Key ACL (FSO): testKeyAclOperationsEnforcementAfterLeadershipChangeWithFSO

Motivation

Each test triggers an OM leadership change and then attempts an unauthorized operation. The test verifies that the request is rejected (throwing OMException) before a Ratis log entry is written, confirming that ACL enforcement now runs in preExecute on the new leader.

Test plan

  • TestOMHALeaderSpecificACLEnforcement passes all new test methods

Dependencies

Depends on the three implementation PRs:

Made with Cursor

…p change

Add HA integration tests to TestOMHALeaderSpecificACLEnforcement covering
ACL enforcement in preExecute for:
- Volume operations: delete, set-owner, set-quota
- Bucket operations: delete, set-owner, set-property
- Key bulk operations: delete-keys, rename-keys
- Key ACL operations: add/remove/set ACL (FSO layout)

Each test triggers a leadership change and verifies that unauthorized
requests are rejected before a Ratis log entry is written, confirming
that the ACL check runs in preExecute on the new leader.

Co-authored-by: Cursor <cursoragent@cursor.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.

1 participant