Skip to content

Commit 3e9cebe

Browse files
committed
feat: add admin commands for IAM user, policy, group, and service account management
Implement CLI support for IAM management on RustFS/MinIO-compatible servers. This adds the 'rc admin' command with subcommands for managing: - Users: list, add, info, remove, enable, disable - Policies: list, create, info, remove, attach - Groups: list, add, info, remove, enable, disable, add/remove members - Service Accounts: list, create, info, remove New modules: - core/admin: AdminApi trait and IAM types (User, Group, Policy, ServiceAccount) - s3/admin: AdminClient implementing HTTP calls with AWS SigV4 signing - cli/commands/admin: CLI command implementations All commands support --json output for scripting. Closes #1571
1 parent 8aca7ed commit 3e9cebe

14 files changed

Lines changed: 3151 additions & 0 deletions

File tree

Cargo.lock

Lines changed: 225 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ async-trait = "0.1"
6060
mime_guess = "2.0"
6161
glob = "0.3"
6262

63+
# HTTP client for Admin API
64+
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls", "json"] }
65+
aws-sigv4 = "1.2"
66+
http = "1.2"
67+
sha2 = "0.10"
68+
hex = "0.4"
69+
urlencoding = "2.1"
70+
6371
# Testing
6472
tempfile = "3.24"
6573
mockall = "0.14"

0 commit comments

Comments
 (0)