Skip to content

WandB Using Auth0 and Gateway API #539

@kassett

Description

@kassett

I am attempting to deploy WandB but I'm having a lot of trouble. Our stack includes using Auth0 as our IDP and Gateway API (EnvoyProxy) as our Ingress controller. When I try to deploy the helm chart using Terraform, I just end up navigating to a blank screen and there are no errors in the logs. Could someone please lend a helping hand:

resource "helm_release" "wandb" {
  name       = "wandb"
  repository = "https://wandb.github.io/helm-charts"
  chart      = "wandb"
  namespace  = "wandb"

  values = [
    yamlencode({
      license         = "<LICENSE_KEY>"
      enableAdminApi = false
      bucket          = "s3://<BUCKET_NAME>"
      bucketRegion = data.aws_s3_bucket.wandb_stage.region

      serviceAccount = {
        annotations = {
          "eks.amazonaws.com/role-arn" = aws_iam_role.wandb_stage.arn
        }
      }

      host = local.wandb_hostnames[0]

      extraEnv = [
        {
          name = "GORILLA_CORS_ORIGINS"
          value = "https://${local.wandb_hostnames[0]}, null"
        },
        {
          name  = "X_FORWARDED_PROTO"
          value = "https"
        }
      ]

      sso = {
        enabled = false
        autoProvision = true
        issuer = "https://<COMPANY>.auth0.com"
        method = "pkce"
        clientId = module.wandb.client_id
        clientSecret = module.wandb.client_secret
      }
    })
  ]
}

resource "kubectl_manifest" "wandb" {
  yaml_body = <<EOF
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
  name: wandb-stage
  namespace: wandb
spec:
  hostnames:
  - ${local.wandb_hostnames[0]}
  parentRefs:
  - group: gateway.networking.k8s.io
    kind: Gateway
    name: external-gateway
    namespace: gateway
  rules:
  - backendRefs:
    - group: ""
      kind: Service
      name: wandb
      port: 8080
      weight: 1
EOF
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions