# Deploy Result — API Keys Feature **Date:** 2026-06-17 **Commit deployed:** `bf1e690` **Status:** ✅ Both deployments successful ---- ## Deploys performed ### 1 — hermes-mcp (backend) ```bash cd ~/hermes-mcp docker build -t localhost:32000/hermes-mcp:bf1e690 . docker push localhost:32000/hermes-mcp:bf1e690 # updated hermes-k8s.yaml image → localhost:32000/hermes-mcp:bf1e690 (not committed) microk8s kubectl apply -f hermes-k8s.yaml microk8s kubectl rollout status deployment/hermes-mcp -n fetcherpay ``` **Result:** Rollout completed successfully. ### 2 — squaremcp-app (frontend) ```bash cd ~/hermes-mcp docker build -f product/app/Dockerfile -t localhost:32000/squaremcp-app:bf1e690 . docker push localhost:32000/squaremcp-app:bf1e690 # updated product/app/app-k8s.yaml image → localhost:32000/squaremcp-app:bf1e690 (not committed) microk8s kubectl apply -f product/app/app-k8s.yaml microk8s kubectl rollout status deployment/squaremcp-app -n fetcherpay ``` **Result:** Rollout completed successfully. ---- ## Verification ### Backend API `POST /api/auth/login` response now includes `api_key`: ```json { "id": "d35c7c6a-b47c-4975-afef-656170772705", "email": "test-deploy-c6ab014@example.com", "plan": "free", "role": "user", "api_key": "941431eed80f48998e2076fcecd85164" } ``` `GET /api/auth/me` also returns `api_key` ✅ ### Frontend UI (Playwright) 1. Logged in at `https://app.squaremcp.com` as test user. 2. Clicked **API Keys** in top nav. 3. API key `941431eed80f48998e2076fcecd85164` displayed in code block ✅ 4. **Copy** button present ✅ ### Pod status ``` NAME READY STATUS RESTARTS AGE hermes-mcp-... 1/1 Running ... squaremcp-app-... 1/1 Running ... redis-... 1/1 Running ... ``` Redis was already Running before deploy; no force-delete needed. ---- ## Notes - `microk8s ctr image import -` hung repeatedly (same containerd issue as earlier deploys), so images were imported via `docker push localhost:32000/...` instead. The registry path works and produces the same deployed result. - `hermes-k8s.yaml` and `product/app/app-k8s.yaml` image tags were updated locally but **not committed**. - The handoff suggested testing with `Authorization: Bearer `; the current auth middleware validates customer API keys via `x-api-key` header or `?key=` query param, while `Authorization: Bearer` is reserved for OAuth tokens. `GET /api/auth/me` requires session cookie, so API-key auth returns `Not authenticated` there — this is expected. ---- ## Related docs - Handoff: `SquareMCP/AI-Context/2026-06-17-claude-handoff-api-keys-feature.md`