Skip to content

fix: authorize user status changes by target status - #73

Merged
Vonng merged 1 commit into
mainfrom
codex/issue-21478
Aug 26, 2026
Merged

fix: authorize user status changes by target status#73
Vonng merged 1 commit into
mainfrom
codex/issue-21478

Conversation

@Vonng

@Vonng Vonng commented Aug 26, 2026

Copy link
Copy Markdown
Member

Fixes the permission mismatch reported in upstream minio#21478.

User status updates now select the admin action from the requested target state:

  • enabling requires admin:EnableUser
  • disabling requires admin:DisableUser
  • invalid statuses retain the existing admin:EnableUser authorization default before validation

The IAM regression test covers both allowed operations and both denied cross-action operations.

Tests:

  • go test ./cmd -run ^'TestSetUserStatusAdminAction$' -count=1
  • go test ./cmd -run ^'TestIAMInternalIDPServerSuite$' -count=1

Signed-off-by: Feng Ruohang <rh@vonng.com>
@Vonng
Vonng force-pushed the codex/issue-21478 branch from dcc50d4 to 58735ee Compare August 26, 2026 06:19
@Vonng
Vonng merged commit 2e2377d into main Aug 26, 2026
8 checks passed
@Vonng
Vonng deleted the codex/issue-21478 branch August 26, 2026 06:28
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