#!/bin/bash set -euo pipefail # Verify the ESO-managed MiniMax api_key file is mounted. The wrapper # (`bin/anthropic-compat-wrapper.sh`) reads it at exec time and exports # ANTHROPIC_AUTH_TOKEN to the claude subprocess. # # ANTHROPIC_BASE_URL is set in harness.yaml `env:` (not in the K8s Secret), # so no file check is required for it. API_KEY_FILE="/run/agent/secrets/minimax/api_key" if [ ! -r "$API_KEY_FILE" ]; then echo "ERROR: $API_KEY_FILE not readable. Check ESO ExternalSecret acct-." >&2 exit 1 fi echo "minimax api_key verified at $API_KEY_FILE"