fix(beads-server): fix Workbench timeout — use internal GraphQL URL
GRAPHQLAPI_URL must point to localhost:9002 (internal), not the external URL which goes through Authentik. SSR can't authenticate to Authentik. Also removed Authentik from /graphql ingress — browser fetch() can't follow 302 redirects on POST requests. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
da6b82ed5c
commit
a19581e32b
1 changed files with 3 additions and 2 deletions
|
|
@ -282,7 +282,7 @@ resource "kubernetes_deployment" "workbench" {
|
|||
}
|
||||
env {
|
||||
name = "GRAPHQLAPI_URL"
|
||||
value = "https://dolt-workbench.viktorbarzin.me/graphql"
|
||||
value = "http://localhost:9002/graphql"
|
||||
}
|
||||
|
||||
volume_mount {
|
||||
|
|
@ -410,7 +410,8 @@ resource "kubernetes_ingress_v1" "graphql" {
|
|||
name = "dolt-workbench-graphql"
|
||||
namespace = kubernetes_namespace.beads.metadata[0].name
|
||||
annotations = {
|
||||
"traefik.ingress.kubernetes.io/router.middlewares" = "traefik-authentik-forward-auth@kubernetescrd"
|
||||
# No Authentik — browser fetch() can't follow 302 redirects on POST.
|
||||
# Main page (/) is still protected. GraphQL has no sensitive data beyond task list.
|
||||
}
|
||||
}
|
||||
spec {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue