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

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

@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
Vonng added a commit that referenced this pull request Nov 7, 2026
Pin the Console module to the v2.6.0 tag commit (f8ab14669). It carries
the bucket-list quota display fix and the bucket-creation quota and
retention validation (pgsty/silo-console#72, #73, PR #74), the follow-up
numeric fixes, and the usage-scan feature with its optional PostgreSQL
worker (PR #70), which brings github.com/jackc/pgx/v5 in as an indirect
dependency. golang.org/x/crypto and golang.org/x/net move with Console's
security dependency update.

The v2.6.0 release was published on 2026-11-04 from that commit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Feng Ruohang <[email protected]>
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