Berdl minio

From kbaseincubator/BERIL-research-observatory · View interactive version

Berdl minio is an AI agent skill from the GitHub repository kbaseincubator/BERIL-research-observatory. Retrieve and use BERDL MinIO credentials and transfer result artifacts between BERDL object storage and the local machine. Use when exported query results need to be listed, downloaded, shared, or when only KBASE_AUTH_TOKEN is available and MinIO keys must be acquired.

How to use this skill

Skill file

BERDL MinIO Skill

Overview

Use this skill to work with BERDL MinIO from local tools.

It handles credential sourcing, MinIO client setup, and object transfer operations.

Step 0: Environment Check

Run before anything else:

python scripts/berdl_env.py --check

If --check reports off-cluster and not ready, follow the printed next steps. The MinIO endpoint (minio.berdl.kbase.us) is only reachable through the proxy chain off-cluster, so this check is mandatory.

Preconditions

  1. KBASE_AUTH_TOKEN set in environment or .env.
  2. mc (MinIO client) installed. Check with command -v mc. Install with:

curl -sSL https://dl.min.io/client/mc/release/darwin-arm64/mc -o /usr/local/bin/mc && chmod +x /usr/local/bin/mc

  1. Proxy running (when off-cluster): MinIO is not directly reachable from external networks. See the berdl-query skill's references/proxy-setup.md for setup instructions.

Credential Strategy

Use credentials in this order:

  1. Existing S3_ACCESS_KEY and S3_SECRET_KEY in environment or .env. These were once called MINIO_ACCESS_KEY / MINIO_SECRET_KEY; that spelling is gone from current pods and the tooling no longer reads it.
  2. Derive credentials from BERDL remote environment using berdl-remote (authenticated by KBASE_AUTH_TOKEN).

Workflow

  1. Resolve credentials:
  1. Configure mc alias:
  1. Move files with mc.

Important: Every mc command needs https_proxy set when off-cluster, not just the alias setup. Either export it in your shell or prefix each command:

```bash

export https_proxy=http://127.0.0.1:8123

export no_proxy=localhost,127.0.0.1

mc ls berdl-minio/cdm-lake/users-general-warehouse/<user>/exports/

mc cp --recursive berdl-minio/cdm-lake/.../run_20260217 ./exports/run_20260217

mc cp --recursive ./local_data berdl-minio/cdm-lake/.../uploads/local_data

```

Scripts

Only the scripts listed below exist. Do not invent script names — if you need behavior that's not covered, ask the user.

References

Safety Rules

  1. Never print full secrets in final user-facing summaries unless explicitly requested.
  2. Do not commit credentials into repository files.
  3. Prefer short-lived retrieval and local shell export for active sessions.
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.