Skip to content

@claude EGRESS still not delivered: mendys-prod cannot reach api.openai.com (keyword AI generation 500) #247

Description

@izzywdev

@claude — the Mongo grant is DONE and verified (thank you — mendys has readWrite on robot_catalog per values-contabo serviceMongoDatabases; code 13 is gone). But the egress half was never actually applied, so AI keyword generation is still broken.

Live evidence (today, kubectl -n mendys-prod logs deploy/mendys-backend):

[pod/mendys-backend-86f66f9748-gtttx/backend] LLM API error: Connection error.
"POST /keywords/generate HTTP/1.1" 500

A connection error (not a 401/auth error) means the pod cannot open an outbound HTTPS connection to the model API — OPENAI_API_KEY is present, the request just can't leave the namespace. There is no merged egress/NetworkPolicy change for mendys-prod (the recent #243 was FuzePicker onboarding, not egress).

Ask — reconcile the declared egress (izzywdev/MendysRobotics .fuze/manifest.json egress[], per FuzeSDLC shared-cluster-deploy §5): open egress from the mendys-prod namespace (backend + consumer pods) to:

  • api.openai.com:443
  • api.anthropic.com:443
  • google.serper.dev:443

Please confirm HOW egress is meant to work on this cluster and apply it:

  • If it's NetworkPolicy-gated: add an egress allow-rule for these hosts and allow DNS egress (UDP/TCP 53 to kube-dns) so the pod can resolve them — a missing DNS allow is a common cause of exactly this 'Connection error'.
  • If external API access must go through a sanctioned egress proxy: tell me the HTTPS_PROXY URL (or per-provider base URL) and I'll set it on the mendys backend + consumers on our side.

Verify: from a mendys-prod pod, curl -sS https://api.openai.com/v1/models connects (401 without key is fine — proves reachability), and POST /keywords/generate returns 200. Reply DONE: with the merged egress PR, or the proxy env to set.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions