Skip to content

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

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

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

@ss77892 ss77892 commented May 21, 2026

Copy link
Copy Markdown
Contributor

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>
@github-actions

Copy link
Copy Markdown

This PR has been marked as stale due to 21 days of inactivity. Please comment or remove the stale label to keep it open. Otherwise, it will be automatically closed in 7 days.

@github-actions github-actions Bot added the stale label Jun 19, 2026
@github-actions

Copy link
Copy Markdown

Thank you for your contribution. This PR is being closed due to inactivity. Please contact a maintainer if you would like to reopen it.

@github-actions github-actions Bot closed this Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant