diff --git a/apps/agent-zero/agent-zero.yaml b/apps/agent-zero/agent-zero.yaml index 824ccec..4302290 100644 --- a/apps/agent-zero/agent-zero.yaml +++ b/apps/agent-zero/agent-zero.yaml @@ -108,6 +108,22 @@ metadata: spec: itemPath: "vaults/IAmWorkin/items/FC LLM Bridge API Keys" +--- +# Print.Web API key for Agent Zero's print_web.py Python tool. +# Syncs from 1Password item "Print.Web API Keys" (password field = API key). +# The print_web.py tool reads PRINT_WEB_API_KEY env var for all HTTP requests +# to the thermal print service (GET /api/mcp/tools, POST /api/print/*, etc.). +# Note: Print.Web uses the legacy REST MCP shape (/api/mcp/tools/*), not the +# streamable-http MCP protocol. The print_web Python tool bridges this gap +# and is already present in bluejay-tools ConfigMaps. +apiVersion: onepassword.com/v1 +kind: OnePasswordItem +metadata: + name: print-web-api-keys + namespace: agent-zero +spec: + itemPath: "vaults/IAmWorkin/items/Print.Web API Keys" + --- apiVersion: apps/v1 kind: Deployment @@ -383,9 +399,19 @@ spec: name: chat-mcp-api-key key: api-key optional: true - # Print.Web — Thermal printer service on edge2 + # Print.Web — Thermal printer service on edge2. + # PRINT_WEB_URL: internal HTTP (bypasses Traefik TLS — print_web.py + # runs in-cluster and can reach edge2 directly on the PROD VLAN). + # PRINT_WEB_API_KEY: from 1Password "Print.Web API Keys" password field, + # synced by the print-web-api-keys OnePasswordItem CRD above. + # The print_web.py Python tool reads both env vars for all HTTP calls. - name: PRINT_WEB_URL value: "http://10.0.57.16:5200" + - name: PRINT_WEB_API_KEY + valueFrom: + secretKeyRef: + name: print-web-api-keys + key: password # Kubernetes - name: KUBERNETES_SERVICE_HOST value: "kubernetes.default.svc"