MinIO AIops

io.github.AIops-tools由 GitHub 帳號 AIops-tools 發布v0.15.1更新於 Nov 8, 2026

Governed MinIO ops: capacity RCA, exposure audit, ILM, WORM retention, IAM, healing, 48 tools.

概覽

AI 產生的概覽

具治理機制的 MinIO 物件儲存維運伺服器:48 個工具涵蓋容量根因分析、暴露與 ILM 稽核、修復、WORM 保留與 IAM,並附稽核日誌與復原記錄。

可以做什麼
  • 檢查叢集健康、狀態與整體概況,並執行容量根因分析與各桶用量統計
  • 稽核桶暴露面、生命週期/ILM 缺口、修復積壓與寫入仲裁風險
  • 讀取桶原則、生命週期、版本控制、配額、物件與未完成分段上傳,以及伺服器資訊
  • 變更桶原則、版本控制、生命週期與配額,並擷取原有狀態、記錄復原描述
  • 管理物件鎖與 WORM 保留、法定保留與預設保留,並建立桶
  • 檢視與修改 IAM 使用者、群組與原則,並列出或重播已記錄的復原項目
適用情境
適合家用實驗室與中小型自架 MinIO 部署:希望助理診斷容量成長原因、找出匿名公開或未加密的桶、發現可回收的 ILM 缺口,並進行可稽核、可復原的設定變更。
執行需求
以 Python 套件形式透過 stdio 在本機執行(uv tool、pipx 或 uvx)。需要可連線的 MinIO 伺服器 S3 埠、以 minio-aiops init 設定的存取金鑰,以及由 MINIO_AIOPS_MASTER_PASSWORD 解鎖的加密金鑰庫;MCP 用戶端必須在 env 區塊中傳入該密碼。配額與伺服器資訊需要具管理權限的金鑰;指標讀取 v2 叢集端點。
安裝前請注意
沒有唯讀開關或核准關卡;寫入工具會作用於真實的桶,部分無法復原:bucket_delete 屬高風險且僅限空桶,remove_user 無復原,set_object_retention 屬極高風險且無復原。應將存取金鑰的 IAM 原則限制為最小權限。主密碼屬機密,匯出的環境變數對其他程序與 shell 歷史可見。每次呼叫都會寫入本機稽核資料庫;本專案由社群維護,與 MinIO, Inc. 無關聯。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 MinIO AIops,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

MinIO AIops

Audit availability: Real writes require a committed pending audit row and stop before contacting the platform if storage is unavailable. Reads and previews may continue with a warning; new audit rows store outcome summaries rather than full responses.

Disclaimer: Community-maintained open-source project. Not affiliated with, endorsed by, or sponsored by MinIO, Inc. or any storage vendor. Product and trademark names belong to their owners. MIT licensed.

Governed AI-ops for MinIO object storage — for the homelab and small/medium self-hosted deployments where MinIO actually lives. Talks to the S3 API (official minio SDK, SigV4), the admin API (bucket quota, server info), the unauthenticated health endpoints (/minio/health/live|ready|cluster), and the cluster metrics endpoint (/minio/v2/metrics/cluster, bearer-token or public auth) — with a built-in governance harness: a unified audit log, a token/runaway budget guard, undo-token recording, and a descriptive risk tier on every audit row. Self-contained: no external skill-family dependency.

What it does

Four flagship analyses, plus the guarded reads and writes around them:

  • capacity_rca — capacity vs used, offline drives/nodes, per-drive hotspots and imbalance → each finding as cause + suggested action (nearfull/full thresholds are named constants, not magic).
  • bucket_exposure_audit — every bucket scored and ranked for anonymous/public policy statements (read and, far worse, write), missing default encryption, versioning off, no lifecycle.
  • lifecycle_gap_analysis — the storage ILM should be reclaiming but isn't: versioned buckets with no noncurrent expiry (old bytes accrue forever), incomplete multipart uploads with no abort rule (invisible space), large buckets with no lifecycle — with a clearly-labelled reclaimable estimate.
  • healing_health — heal backlog and per-erasure-set write-quorum risk: how many more drive failures each set can tolerate, which sets are healing, where heal errors are piling up.
  • Governed writes. Bucket policy / versioning / lifecycle / quota changes capture the real prior state and record an undo descriptor; bucket_delete is refused unless the bucket is verifiably empty (including versions and delete markers) and remove_incomplete_uploads only touches uploads older than a safety window.

What works

  • CLI (minio-aiops ...): init, overview, doctor, health check/status, capacity rca/usage, heal status/drives/nodes, bucket ls/info/objects/audit/ilm-gap/uploads plus guarded writes (bucket versioning-set/policy-set/lifecycle-set/quota-set/purge-uploads/delete), secret set/list/rm/migrate/rotate-password, mcp. Destructive commands take --dry-run and double-confirm.
  • MCP server (minio-aiops mcp or minio-aiops-mcp): the full 48 tools (29 read, 19 write), every one wrapped with the bundled @governed_tool harness. The CLI is a convenience subset; the MCP surface is the whole tool. CLI writes delegate to the same governed functions, so they are audited identically.
  • Encrypted credentials: the secret key lives in an encrypted store ~/.minio-aiops/secrets.enc (Fernet + scrypt) — never plaintext on disk. Unlock with a master password from MINIO_AIOPS_MASTER_PASSWORD (MCP/CI) or an interactive prompt (CLI).
  • Metrics auth, both modes: servers running MINIO_PROMETHEUS_AUTH_TYPE=public are scraped directly; for the default (jwt) mode the bearer token is derived from the stored credentials — no extra secret to manage.
  • Reversibility: reversible writes capture prior state and record an inverse undo descriptor (prior policy JSON, prior lifecycle XML, prior versioning state, prior quota).

Capability matrix (48 MCP tools)

GroupToolsCountR/W
Healthhealth_live, health_ready, health_cluster, cluster_status, fleet_overview5read
Capacitycapacity_rca (flagship), usage_by_bucket2read
Healinghealing_health (flagship), drive_status, node_status3read
Exposure / ILMbucket_exposure_audit (flagship), lifecycle_gap_analysis (flagship)2read
Bucketsbucket_ls, bucket_info, bucket_policy_get, bucket_lifecycle_get, bucket_versioning_get, bucket_quota_get, object_ls, incomplete_uploads_ls, server_info9read
Writesset_bucket_policy (med, undo), delete_bucket_policy (med, undo), set_versioning (med, undo), set_lifecycle (med, undo), delete_lifecycle (med, undo), set_bucket_quota (med, undo)6write
bucket_delete (high, dry-run, empty-only, irreversible), remove_incomplete_uploads (med, dry-run, priorState only)2write
Object lock (WORM)bucket_lock_config, object_lock_status, diagnose_retention_gaps (flagship)3read
bucket_create (med, undo — the only way to enable object lock), set_default_retention (high, undo), clear_default_retention (med, undo), set_legal_hold (med, undo)4write
set_object_retention (critical, dry-run, extend-only, no undo exists)1write
IAMiam_users, iam_groups, iam_policies, diagnose_iam_exposure (flagship)4read
create_user (med, undo, secret redacted + never returned), set_user_status (med, undo), attach_user_policy (med, undo), detach_user_policy (med, undo) — all refused for this tool's own credential4write
remove_user (high, dry-run, no undo: MinIO keeps no recoverable secret)1write
Undoundo_list, undo_apply2read + replay

Totals: 48 tools — 29 read (incl. undo_list), 19 write (incl. undo_apply).

What this tool does, and does not, decide

It delivers MinIO object-storage operations — reads and writes — accurately and efficiently, and records every one of them. It does not decide whether a write is allowed to happen. That is the agent's judgement, or the permission of the access key you connect it with: give the key a read-only IAM policy and the writes fail at the server — the place that actually owns the permission.

So there is no read-only switch, no policy file, no approval gate to configure. The one thing the tool guarantees is that nothing is silent: every call, over MCP and over the CLI alike, lands an audit row in ~/.minio-aiops/audit.db, and reversible writes still capture their real prior state and record an inverse undo descriptor.

Each tool declares a risk_level, kept in agreement with its [READ]/[WRITE] documentation tag by a test, and carried into the audit row as a descriptive tier — so a reviewer can see at a glance that a row was a high-risk delete. It is a label, not a gate.

Running a smaller / local model? See agent-guardrails.md — it lists the guardrails this tool enforces for you (so you don't spend prompt budget restating them) and gives a ready-made system prompt for what's left.

Quick start

As a Claude Code plugin

One install gives an agent both the skill and the MCP server:

/plugin marketplace add AIops-tools/marketplace/plugin install minio-aiops@aiops-tools

The MCP server is fetched with uv and pinned to the package version this plugin declares, so an audit row can be traced back to the code that wrote it. Credentials are still configured with minio-aiops init — see below.

As an OpenClaw plugin

The same bundle is published on ClawHub, where one install delivers the skill and its MCP server together:

bash
openclaw plugins install clawhub:@zw008/minio-aiopsopenclaw skills info minio-aiops          # expect: Visible to model: yes

Restart the OpenClaw gateway afterwards so it loads the plugin. The MCP server is fetched with uv, pinned to this exact release, so uvx has to be on PATH — without it the skill still installs but reports Visible to model: no. Credentials are configured exactly as below.

As a CLI or standalone MCP server

bash
uv tool install minio-aiops         # or: pipx install minio-aiopsminio-aiops init                    # wizard: endpoint + access key; secret key stored encryptedminio-aiops doctor                  # live/ready + S3 auth + metrics reachabilityminio-aiops overview                # health + capacity headline + exposure headlineminio-aiops capacity rca            # why is storage filling up, and what to dominio-aiops bucket audit            # ranked bucket-exposure findings

Run as an MCP server (stdio):

bash
export MINIO_AIOPS_MASTER_PASSWORD=...   # unlock secrets non-interactivelyminio-aiops-mcp

Where that password then lives: an exported variable is readable by every process this shell starts and is recorded by shell history. On a shared or long-lived host, prefer the interactive prompt, or inject it from a secret manager for the life of the one command that needs it.

MCP client config

json
{  "mcpServers": {    "minio-aiops": {      "command": "uvx",      "args": ["--from", "minio-aiops", "minio-aiops-mcp"],      "env": { "MINIO_AIOPS_MASTER_PASSWORD": "your-master-password" }    }  }}

Env-block caveat: MCP clients launch the server without a TTY and without your shell profile, so the master password cannot be prompted for and an export in ~/.zshrc is not seen — it must be passed in the client's env block (or the client process's environment) as above. Everything else (targets, TLS, region, metrics mode) comes from ~/.minio-aiops/config.yaml written by minio-aiops init.

Configuration

~/.minio-aiops/config.yaml (non-secret connection details only):

yaml
targets:  - name: lab1    host: 192.0.2.10    port: 9000    access_key: minio-ops        # identifies the account; NOT the secret    secure: true                 # https (false for plain-http labs)    verify_ssl: true             # false for self-signed lab certs    region: ""                   # optional    metrics_public: false        # true when MINIO_PROMETHEUS_AUTH_TYPE=public

The secret key is stored with minio-aiops secret set lab1 (encrypted; a legacy MINIO_LAB1_SECRET_KEY env var is honoured as a fallback with a migration warning).

Governance

Every MCP tool passes through the bundled @governed_tool harness:

  • Audit — every call (params, outcome summary, status, duration, risk tier, and any MINIO_AUDIT_APPROVED_BY / MINIO_AUDIT_RATIONALE annotations) is logged to ~/.minio-aiops/audit.db (relocatable via MINIO_AIOPS_HOME).
  • Budget / runaway guard — token and call budgets trip a circuit breaker. A safety backstop, not authorization.
  • Risk-tier labelling — each tool's declared risk_level is recorded on the audit row as a descriptive tier (bucket_delete is high). It is a label for the reviewer, not a gate: there is no read-only switch, policy file, or approval gate, and MINIO_AUDIT_APPROVED_BY / MINIO_AUDIT_RATIONALE are optional annotations recorded when set, never required.
  • Undo recording — reversible writes record an inverse descriptor built from the captured prior state.

Supported scope & limitations

  • Deployments: any reasonably current MinIO server (single-node or distributed/erasure-coded) reachable over its S3 port. Admin features (quota, server_info) need admin-capable keys. Generic S3 services are not a target: the health/metrics/admin surfaces used here are MinIO-specific.
  • Metrics: the capacity/healing RCAs read the v2 cluster metrics endpoint; both public and bearer-token (default) auth modes are supported.
  • Incomplete-upload listing uses the SDK's core ListMultipartUploads call (the public alias was removed from the SDK); it is exercised in tests and documented in connection.py.
  • Verification status. Live-verified against a real single-node MinIO server (2026-07-19): connectivity, the reads, the exposure audit (it correctly scored an anonymously-writable bucket high and named PUBLIC_WRITE_POLICY), and the governance loop (real set_versioning → undo restoring it to Suspended, the correct S3 inverse). Distributed / multi-node MinIO is still unverified — healing was never exercised against a real degraded drive or erasure set — as are lifecycle/quota writes and TLS endpoints. See docs/VERIFICATION.md; minio-aiops doctor is the fastest live check.

Missing a capability?

Site replication status, IAM policy authoring (creating and editing policy documents — attachment is supported), group membership writes, tiering to remote storage — not here yet. Open an issue or send a PR — feedback and contributions are welcome.

來源:README.md,提交 9411f42

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

4
  1. v0.15.0Oct 30, 2026
  2. v0.14.0Oct 15, 2026
  3. v0.13.0Oct 15, 2026
  4. v0.12.3Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分