Minio

From joelhooks/joelclaw · View interactive version

Minio is an AI agent skill from the GitHub repository joelhooks/joelclaw. Operate Joel's MinIO legacy/rollback services and S3-compatible object storage checks. Use for MinIO, ASUSTOR MinIO CE, custom Docker/Compose MinIO, Convex MinIO rollback, and MinIO-vs-Garage questions. For canonical local Convex object storage, use Garage/local-convex.

How to use this skill

Skill file

MinIO

For private addresses, accounts, ports, and host roles, see .brain/resources/operator-network-context.svx in the private dark-wizard repo and the tailnet-topology skill. Replace angle-bracket placeholders with the configured values before running commands.

Operate Joel's MinIO legacy/rollback services. This is not generic MinIO advice. The canonical local Convex object store is now Garage on <nas> at http://<tailnet-ip>:<service-port>. The custom Docker/Compose MinIO service remains a working rollback/reference path; ASUSTOR MinIO CE is only a smoke-test/reference instance unless Joel explicitly says otherwise.

When To Use

Use this skill when Joel mentions:

If the task is about the full local Convex runtime or canonical Convex object storage, also read the local-convex skill and prefer Garage unless Joel explicitly asks for MinIO rollback. If the task is about general ASUSTOR storage, NFS, SMB, RAID, or NAS health, also read the <nas> skill.

Current Topology

Host:

Canonical Garage for local Convex:

Custom MinIO rollback/reference:

ASUSTOR MinIO CE reference instance:

Do not expose MinIO or Garage publicly. Keep API and console access LAN/tailnet only.

Canonical Sources

Read these before mutating the setup:

If sources disagree, prefer the brain project note, then verify live state with redaction-safe health checks. Do not print raw env files to resolve disagreement.

Safety And Secret Handling

Never print, paste, summarize, commit, or log:

It is okay to read and report the redacted env file. It is okay to say whether required keys exist. It is not okay to reveal their values.

When a command needs secrets, prefer running it on <nas> where the env file already lives. If secrets must move to another host, use that project's existing secret-management path. Do not invent an ad hoc note, paste, or scratch file.

For ad hoc MinIO client checks on <nas>, prefer the dockerized minio/mc pattern from the installer. Do not assume mc is installed directly on ADM. Do not leave new credential-bearing aliases in a persistent MinIO client config unless Joel explicitly asks for that.

Before sharing command output, scan it for:

Redact first, then report.

NAS Access Rules

Use one SSH session to <nas> at a time. NAS SSH is sensitive to bursts and can reset handshakes after rapid parallel probes.

Default read-only SSH shape:

ssh -o BatchMode=yes -o ConnectTimeout=8 <ssh-user>@<nas> 'uptime; pwd'

Operational rules:

Health Checks

For canonical local Convex storage, check Garage first:

nc -vz -w 5 <tailnet-ip> <object-api-port>
curl -sS -m 5 -o /tmp/garage-root.out -w '%{http_code}\n' http://<tailnet-ip>:<service-port>/

Garage returns 403 AccessDenied for unsigned root requests; that still proves the S3 API is reachable.

For custom MinIO rollback/reference, prefer network and HTTP checks that do not require credentials:

tailscale ping --timeout=5s --c 2 <nas>
nc -vz -w 5 <tailnet-ip> <s3-api-port>
nc -vz -w 5 <tailnet-ip> <object-console-port>
curl -fsS -m 5 http://<tailnet-ip>:<service-port>/minio/health/live
curl -fsS -m 5 http://<tailnet-ip>:<service-port>/minio/health/ready

For the CE reference instance only:

nc -vz -w 5 <tailnet-ip> <reference-s3-port>
nc -vz -w 5 <tailnet-ip> <reference-console-port>
curl -fsS -m 5 http://<tailnet-ip>:<service-port>/minio/health/ready

If the API is healthy but the console is unreachable, keep the distinction clear. Convex depends on the API path, not the browser console.

Service And Docker Checks

Use one SSH session and keep output narrow:

ssh <ssh-user>@<nas> 'sudo docker ps --format "table {{.Names}}\t{{.Image}}\t{{.Status}}\t{{.Ports}}" | grep -Ei "minio|<s3-api-port>|<object-console-port>" || true'
ssh <ssh-user>@<nas> 'cd <nas-hdd-export>/s3/minio-compose && sudo docker compose ps'
ssh <ssh-user>@<nas> 'test -f <nas-export>/s3/minio-compose/compose.yaml && echo compose-present'
ssh <ssh-user>@<nas> 'test -d <nas-hdd-export>/s3/minio/data && echo data-dir-present'

Do not run docker compose logs without a reason. If logs are needed, bound them and redact:

ssh <ssh-user>@<nas> 'cd <nas-hdd-export>/s3/minio-compose && sudo docker compose logs --tail=120 minio'

Do not re-run the installer casually. Re-run only to reconcile the service after intentional edits or a failed install:

ssh -t <ssh-user>@<nas> 'sudo sh <nas-export>/s3/install-three-body-convex-minio.sh'

Bucket Operations

Canonical Convex buckets on custom MinIO:

Bucket rules:

When listing buckets, avoid printing credentials. Prefer the dockerized mc helper from the installer:

ssh <ssh-user>@<nas> 'cd <nas-hdd-export>/s3/minio-compose && set -eu; . ./.env; . ./convex-s3.env; docker run --rm --network "container:joelclaw-minio" -e "MC_HOST_convex=http://${AWS_ACCESS_KEY_ID}:${AWS_SECRET_ACCESS_KEY}@127.0.0.1:9000" "${MC_IMAGE}" ls convex'

If mc output includes only bucket names, it is safe to report. If a command prints env values, stop and redact.

MinIO Rollback Env Shape

The current canonical Convex endpoint is Garage at http://<tailnet-ip>:<service-port>. Only use this MinIO env shape when explicitly rolling Convex back to custom MinIO:

AWS_REGION=usw2
S3_ENDPOINT_URL=http://<tailnet-ip>:<service-port>
AWS_S3_FORCE_PATH_STYLE=true
AWS_ACCESS_KEY_ID=<from <nas-hdd-export>/s3/minio-compose/convex-s3.env>
AWS_SECRET_ACCESS_KEY=<from <nas-hdd-export>/s3/minio-compose/convex-s3.env>
S3_STORAGE_EXPORTS_BUCKET=joelclaw-local-usw2-convex-exports
S3_STORAGE_SNAPSHOT_IMPORTS_BUCKET=joelclaw-local-usw2-convex-snapshot-imports
S3_STORAGE_MODULES_BUCKET=joelclaw-local-usw2-convex-modules
S3_STORAGE_FILES_BUCKET=joelclaw-local-usw2-convex-files
S3_STORAGE_SEARCH_BUCKET=joelclaw-local-usw2-convex-search

Validation rules:

Redaction-safe env check:

ssh <ssh-user>@<nas> 'awk -F= "/^(AWS_REGION|S3_ENDPOINT_URL|AWS_S3_FORCE_PATH_STYLE|S3_STORAGE_)/ {print}" <nas-hdd-export>/s3/minio-compose/convex-s3.env'

Presence-only secret check:

ssh <ssh-user>@<nas> 'awk -F= "/^(AWS_ACCESS_KEY_ID|AWS_SECRET_ACCESS_KEY)=/ {print $1\"=<present>\"}" <nas-hdd-export>/s3/minio-compose/convex-s3.env'

Smoke Tests

Start with unauthenticated readiness:

curl -fsS -m 5 http://<tailnet-ip>:<service-port>/minio/health/ready

Then prove the Convex credentials can write, read, and delete through the custom MinIO endpoint. Run on the NAS so secrets stay local, using the dockerized mc helper:

ssh <ssh-user>@<nas> 'cd <nas-hdd-export>/s3/minio-compose && set -eu; . ./.env; . ./convex-s3.env; tmp="smoke-$(date +%s).txt"; mkdir -p smoke; trap "rm -f \"smoke/$tmp\"" EXIT; printf "minio smoke %s\n" "$(date -u +%FT%TZ)" > "smoke/$tmp"; docker run --rm --network "container:joelclaw-minio" -v "$PWD/smoke:/smoke:rw" -e "MC_HOST_convex=http://${AWS_ACCESS_KEY_ID}:${AWS_SECRET_ACCESS_KEY}@127.0.0.1:9000" "${MC_IMAGE}" cp "/smoke/$tmp" "convex/${S3_STORAGE_FILES_BUCKET}/$tmp" >/dev/null; docker run --rm --network "container:joelclaw-minio" -e "MC_HOST_convex=http://${AWS_ACCESS_KEY_ID}:${AWS_SECRET_ACCESS_KEY}@127.0.0.1:9000" "${MC_IMAGE}" cat "convex/${S3_STORAGE_FILES_BUCKET}/$tmp" >/dev/null; docker run --rm --network "container:joelclaw-minio" -e "MC_HOST_convex=http://${AWS_ACCESS_KEY_ID}:${AWS_SECRET_ACCESS_KEY}@127.0.0.1:9000" "${MC_IMAGE}" rm "convex/${S3_STORAGE_FILES_BUCKET}/$tmp" >/dev/null; echo "custom-minio-convex-smoke-ok"'

Report only success/failure, bucket name, endpoint, and any redacted error shape. Never report credentials.

If the smoke test fails:

  1. Check readiness on <s3-api-port>.
  2. Check the compose service state.
  3. Check whether the data directory exists and has space.
  4. Check the redacted env shape.
  5. Check bucket existence.
  6. Only then inspect bounded logs.

CE Cleanup Guidance

ASUSTOR MinIO CE is not the canonical path. Treat it as temporary scaffolding.

Before removing or disabling CE:

Do not delete /share/MinIOCE/data unless Joel explicitly asks for data deletion. Prefer ADM/package-level disable or uninstall first, then summarize remaining data paths.

CE checks should stay clearly labeled as reference checks. Do not use CE success to claim the canonical Garage path is healthy.

Operating Sequence

For MinIO debugging:

  1. Read the brain project note and this skill.
  2. Use one SSH session at a time.
  3. Run public readiness checks against <tailnet-ip>:<service-port>.
  4. Inspect compose and data path state on <nas>.
  5. Validate redacted Convex env shape.
  6. Run the Convex credential smoke test on the NAS.
  7. If changing anything, make the smallest change and verify again.
  8. Capture durable discoveries back to the project note if Joel asked for documentation or the fact changed.

Gotchas

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.