Files
conversation-history/SquareMCP/deployments/2026-06-17-session-form-bug-fix-three-deploys.md
T

4.3 KiB

Deploy Result — Session/Form Bug Fix + Communications Docs

Date: 2026-06-17
Commit deployed: c6ab014 (squaremcp-app + hermes-mcp), 453831a (squaremcp-docs)
Status: ✅ All three deployments successful


Deploys performed

A — squaremcp-app (urgent credential-leak fix)

What changed: product/app/app.js form now uses method="post" action="javascript:void(0)" and scopes errorEl to the live form.

cd ~/hermes-mcp
docker build -f product/app/Dockerfile -t localhost:32000/squaremcp-app:c6ab014 .
docker push localhost:32000/squaremcp-app:c6ab014
# updated product/app/app-k8s.yaml image → localhost:32000/squaremcp-app:c6ab014
microk8s kubectl apply -f product/app/app-k8s.yaml
microk8s kubectl rollout status deployment/squaremcp-app -n fetcherpay

Result: Rollout completed successfully.

Verification:

  • https://app.squaremcp.com/app.js contains method="post" action="javascript:void(0)" ✅
  • https://app.squaremcp.com/app.js contains form.querySelector('#connect-error') ✅
  • Playwright E2E: logged in as test user, opened Facebook Connect form, submitted dummy accessToken/pageId, URL remained https://app.squaremcp.com/ with no credentials in query string ✅

What changed: src/index.ts POST /api/auth/login now sets sameSite: 'lax' + domain: '.squaremcp.com'.

cd ~/hermes-mcp
docker build -t localhost:32000/hermes-mcp:c6ab014 .
docker push localhost:32000/hermes-mcp:c6ab014
# updated hermes-k8s.yaml image → localhost:32000/hermes-mcp:c6ab014 (not committed — contains secrets)
microk8s kubectl apply -f hermes-k8s.yaml
microk8s kubectl rollout status deployment/hermes-mcp -n fetcherpay

Result: Rollout completed successfully. https://hermes.squaremcp.com/health returns 200.

Verification:

  • Registered test user test-deploy-c6ab014@example.com via /api/auth/signup.
  • Logged in via /api/auth/login and inspected Set-Cookie header:
    session=...; Max-Age=604800; Domain=.squaremcp.com; Path=/; HttpOnly; Secure; SameSite=Lax
    
    ✅ Domain: .squaremcp.com
    ✅ SameSite: Lax

C — squaremcp-docs (Communications docs page)

What changed: docs/communications.html added; nav updated across all docs pages.

cd ~/hermes-mcp
docker build -f docs/Dockerfile -t localhost:32000/squaremcp-docs:453831a .
docker push localhost:32000/squaremcp-docs:453831a
# docs/docs-k8s.yaml already referenced localhost:32000/squaremcp-docs:453831a
microk8s kubectl apply -f docs/docs-k8s.yaml
microk8s kubectl rollout status deployment/squaremcp-docs -n fetcherpay

Result: Rollout completed successfully.

Verification:

  • https://docs.squaremcp.com/communications.html returns 200 ✅
  • "Communications" link appears in nav on every docs page:
    • index.html ✅
    • communications.html ✅
    • platforms.html ✅
    • getting-started.html ✅
    • agent-tutorial.html ✅
    • living-brief.html ✅

Notes / issues encountered

  • Build context: The Dockerfiles in product/app/Dockerfile and docs/Dockerfile use repo-root-relative COPY paths (e.g., product/app/app.js), so builds must be run from ~/hermes-mcp with -f <path>/Dockerfile .. Building from the subdirectory fails with missing files.
  • Registry: localhost:32000 registry was accessible, so docker push + imagePullPolicy: IfNotPresent worked. The containerd-import workaround was not needed.
  • Containerd ctr hangs: microk8s ctr image import and microk8s ctr images list both hung indefinitely. This did not block the deploy because the registry path worked. May be worth investigating separately.
  • Hermes-k8s.yaml: Image tag was updated locally but not committed per handoff instructions (file contains Communications OAuth secret).
  • Test user: Created test-deploy-c6ab014@example.com for verification. Can be deleted if desired.

Post-deploy health

  • https://app.squaremcp.com → 200
  • https://hermes.squaremcp.com/health → 200
  • https://docs.squaremcp.com/communications.html → 200
  • Blackbox Exporter site health: 1.000 (18/18)

  • Handoff: SquareMCP/AI-Context/2026-06-17-claude-handoff-session-form-bug-fix.md
  • Previous Communications docs handoff: SquareMCP/AI-Context/2026-06-16-claude-handoff-communications-docs-and-picker.md