Skip to content
Latest (currently 2026.10.2) has the newest features, bug fixes, and CVE patches of Solo Enterprise for agentgateway.

For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.

Expose the UI via HTTPS

Page as Markdown

Expose the UI with an HTTPS listener on your gateway proxy.

Set up an HTTPS domain for the management UI for Solo Enterprise for agentgateway.

Before you begin

  1. Get a domain name and certificates from a trusted domain name provider.
  2. Consider installing tools such as Cert Manager and external DNS, or cloud provider services, to manage the domain name registry and certificates for you.
  3. Install Solo Enterprise for agentgateway.
  4. Set up the UI.

Step 1: Set up a secure Gateway

Create a Gateway that listens for secure HTTPS traffic on your domain. For more details, steps to try out a self-signed certificate with OpenSSL, or other Gateway API options like ListenerSets, refer to the Gateway API documentation.

  1. Save the hostname that you want to use for the UI as an environment variable. This hostname matches the domain that you got from your domain name provider and that your TLS certificate is for, such as *.myapp.com.

    export UI_HOST=agentgateway.myapp.com
  2. Create a secret that stores the TLS certificate for your domain, such as *.myapp.com. Update the name of the <filepath> with the actual path to your certificate and key. You might also use a tool such as Cert Manager to manage the certificate and key for you.

    kubectl create secret tls https \
      -n agentgateway-system \
      --cert=<filepath/tls.crt> \
      --key=<filepath/tls.key> \
      --dry-run=client -o yaml | kubectl apply -f -
  3. Create a Gateway with an HTTPS listener for the domain. Replace <*.myapp.com> with the domain name you got from your domain name provider and that your TLS certificate is for, such as *.myapp.com.

    kubectl apply -f- <<EOF
    apiVersion: gateway.networking.k8s.io/v1
    kind: Gateway
    metadata:
      name: https
      namespace: agentgateway-system
    spec:
      gatewayClassName: enterprise-agentgateway
      listeners:
      - protocol: HTTPS
        port: 443
        hostname: "${UI_HOST}"
        name: https
        tls:
          mode: Terminate
          certificateRefs:
            - name: https
              kind: Secret
        allowedRoutes:
          namespaces:
            from: All
    EOF
    SettingDescription
    spec.gatewayClassNameThe name of the Kubernetes GatewayClass that you want to use to configure the Gateway. When you set up Solo Enterprise for agentgateway, a default GatewayClass is set up for you.
    spec.listenersConfigure the listeners for this Gateway. In this example, you configure an HTTPS Gateway that listens for incoming traffic for the domain on port 443. The Gateway can serve HTTP routes from any namespace.
    spec.listeners.hostnameThe hostname that you want the Gateway to listen on. Replace <*.myapp.com> with the domain name you got from your domain name provider and that your TLS certificate is for, such as *.myapp.com.
    spec.listeners.tls.modeThe TLS mode that you want to use for incoming requests. In this example, HTTPS requests are terminated at the Gateway and the unencrypted request is forwarded to the service in the cluster.
    spec.listeners.tls.certificateRefsThe Kubernetes secret that holds the TLS certificate and key for the Gateway. The Gateway uses these credentials to establish the TLS connection with a client, and to decrypt incoming HTTPS requests.
  4. Check the status of the Gateway to make sure that your configuration is accepted.

    kubectl get gateway https -n agentgateway-system -o yaml

    Example output:

    ...
    status:
      conditions:
      - lastTransitionTime: "2025-09-16T19:23:23Z"
        message: ""
        observedGeneration: 1
        reason: Accepted
        status: "True"
        type: Accepted
      - lastTransitionTime: "2025-09-16T19:23:23Z"
        message: Gateway is programmed
        observedGeneration: 1
        reason: Programmed
        status: "True"
        type: Programmed
  5. Verify that your cloud provider for the cluster assigned an external IP address to the Gateway service.

    kubectl get service https -n agentgateway-system

    Example output:

    NAME    TYPE           CLUSTER-IP    EXTERNAL-IP   PORT(S)         AGE
    https   LoadBalancer   10.xx.xx.xx   172.xx.x.xx    443:30674/TCP   3m12s
  6. In your DNS provider, create an A record that points the domain name to the external IP address of the Gateway service. You might use a tool such as external DNS to manage the DNS records for you.

Step 2: Route to the UI

Now that your DNS, certificates, and HTTPS Gateway are setup, route to the UI through the Gateway.

  1. Create an HTTPRoute resource that routes incoming traffic on your domain to the UI backend service on port 80. The backend service proxies traffic requests on any path other than /api to the UI frontend service.

    kubectl apply -f- <<EOF
    apiVersion: gateway.networking.k8s.io/v1
    kind: HTTPRoute
    metadata:
      name: enterprise-agentgateway-ui
      namespace: agentgateway-system
    spec:
      parentRefs:
        - name: https
          namespace: agentgateway-system
      hostnames:
        - ${UI_HOST}
      rules:
        - backendRefs:
            - name: enterprise-agentgateway-ui
              namespace: agentgateway-system
              port: 80
          matches:
          - path:
              type: PathPrefix
              value: /
    EOF
  2. Verify that the HTTPRoute is applied successfully.

    kubectl get httproutes -n agentgateway-system -o yaml

    Example output: In the status conditions section, check that the statuses for the Accepted and ResolvedRefs types are True.

    ...
    status:
      parents:
      - conditions:
        - lastTransitionTime: "2025-09-16T19:27:28Z"
          message: Route is accepted
          observedGeneration: 1
          reason: Accepted
          status: "True"
          type: Accepted
        - lastTransitionTime: "2025-09-16T19:27:28Z"
          message: Route has valid refs
          observedGeneration: 1
          reason: ResolvedRefs
          status: "True"
          type: ResolvedRefs
        controllerName: kgateway.dev/kgateway
        parentRef:
          group: gateway.networking.k8s.io
          kind: Gateway
          name: https
          namespace: agentgateway-system
  3. Verify that the Gateway HTTPS listener now has a route attached.

    kubectl get gateway -n agentgateway-system https -o yaml

    Example output:

    ...
    listeners:
    - attachedRoutes: 1

Note

This topology needs no cross-origin resource sharing (CORS) policy, because the UI frontend and the UI backend are both served from ${UI_HOST}. Add a CORS policy only if you give the backend a hostname of its own.

Step 3: Set up the IdP

Set up an OpenID Connect (OIDC) identity provider (IdP) to use to authenticate users for the UI.

This section provides a generic OIDC configuration for integrating any OIDC-compliant IdP.

IdP requirements

Make sure that your IdP supports the following:

  • OpenID Connect protocol
  • Authorization code grant
  • Proof Key for Code Exchange (PKCE) for public frontend client
  • Client credentials grant
  • Refresh tokens
  • Custom claims or group mappings in tokens

The management UI requires OIDC clients to be configured for the backend and frontend components of the UI.

  • The backend handles server-side token validation and API authentication.
  • The frontend handles user authentication flows in the browser.

Users interact with both components through the external endpoint that you set up for the UI. As such, the client configurations for both components share the same redirect URIs (/callback and /logout).

Backend client configuration

Configure a confidential client for the UI backend with the following settings:

Client settings:

  • Client type: Confidential
  • Supported grants: Authorization code grant, client credentials grant
  • Refresh tokens: Enabled
  • Redirection URIs: https://<your-solo-enterprise-ui-domain>/callback
  • Post-logout redirection URIs: https://<your-solo-enterprise-ui-domain>/logout

Environment variables:

  • BACKEND_CLIENT_ID: The client ID of the backend client.
  • BACKEND_CLIENT_SECRET: The client secret of the backend client. By default, the chart stores the value of the ui.backend.oidc.secret Helm setting in a Kubernetes secret named enterprise-agentgateway-ui-oidc-secret. To use your own Kubernetes secret instead, save its name as a ${BACKEND_CLIENT_SECRET_REF} variable and set it in the ui.backend.oidc.secretRef field. In the secret, store the client secret as the value of the clientSecret key.
  • BACKEND_ISSUER: The issuer of the backend client. This value is often the same as the issuer of the frontend client, such as the address of your IdP instance.

Example Kubernetes secret for the backend client secret:

kubectl apply -f - <<EOF                                        
apiVersion: v1
kind: Secret
metadata:
  name: solo-enterprise-backend-secret
  namespace: agentgateway-system
type: Opaque
stringData:
  clientSecret: ${BACKEND_CLIENT_SECRET}
EOF

Frontend client configuration

Configure a public client for the UI frontend with the following settings:

Client settings:

  • Client type: Public
  • Supported grants: Authorization code grant with PKCE
  • PKCE code challenge method: S256 (required)
  • Refresh tokens: Enabled
  • Redirection URIs: https://<your-solo-enterprise-ui-domain>/callback
  • Post-logout redirection URIs: https://<your-solo-enterprise-ui-domain>/logout

Environment variables:

  • FRONTEND_CLIENT_ID: The client ID of the frontend client. The frontend client must have Proof Key for Code Exchange (PKCE) enabled, such as in Single-Page Application (SPA) types of IdP applications.

From the frontend client ID, the UI determines the authorization, token, and logout endpoints automatically.

Group claims configuration

Configure your IdP to include group membership information in the access token as a custom claim. This claim is used to map users to roles for role-based access control (RBAC).

  1. Create groups in your IdP, such as the following default groups:

    • admins: Full administrative access
    • writers: Read and write access
    • readers: Read-only access
  2. Configure the access token to include a Groups claim (or your preferred claim name) that contains the user’s group memberships.

  3. Ensure the groups claim is included in the access token for all required scopes (typically openid, email, and profile).

Step 4: Update the UI settings

Make sure that the UI is configured with the settings to use your domain and IdP.

  1. Get your current Helm values file for the enterprise-agentgateway release, which includes the UI.

    helm get values enterprise-agentgateway -n agentgateway-system -o yaml > values.yaml
    open values.yaml
  2. Update the values with the details of your IdP and the UI backend. If your RBAC group names from the IdP are different than the default admins, readers, and writers, update the roleMappings section accordingly. The UI service is a ClusterIP service by default, so the gateway is already the only way in.

    ui:
      enabled: true
      oidc:
        issuer: ${BACKEND_ISSUER}
        # The name of the public-access OIDC client that you created for the UI frontend.
        clientId: ${FRONTEND_CLIENT_ID}
      backend:
        # The name and secret of the OIDC client that you created for token validation in the UI backend.
        oidc:
          clientId: ${BACKEND_CLIENT_ID}
          secret: ${BACKEND_CLIENT_SECRET}
      rbac:
        roleMapping:
          roleMapper: claims.Groups.transformList(i, v, v in rolesMap, rolesMap[v])
          roleMappings:
            admins: global.Admin
            readers: global.Reader
            writers: global.Writer
  3. Upgrade your enterprise-agentgateway release with the updated values.

    helm upgrade -i enterprise-agentgateway oci://us-docker.pkg.dev/solo-public/enterprise-agentgateway/charts/enterprise-agentgateway \
      --namespace agentgateway-system \
      --version v2026.10.2 \
      --values values.yaml
  4. Make sure that the UI pod is running. With your own IdP, the pod runs only the ui-backend container.

    kubectl get po -n agentgateway-system -l app=enterprise-agentgateway-ui

    Example output:

    enterprise-agentgateway-ui-844c4f4497-qbsv2   1/1     Running   0          6m50s

Step 5: Launch the UI

Now you are ready to launch the UI on your secure domain.

In a browser, open the domain that you exposed the UI on, such as https://agentgateway.myapp.com.

For next steps, see the Explore the UI guide.

Cleanup

You can optionally remove the resources that you set up as part of this guide.
  1. Remove the routing resources.

    kubectl delete httproute enterprise-agentgateway-ui -n agentgateway-system
    kubectl delete gateway https -n agentgateway-system
    kubectl delete secret https -n agentgateway-system
  2. Upgrade your Solo Enterprise for agentgateway installation with the Helm values file to change the UI settings to the values that you want to use going forward, such as localhost for the UI backend host.

  3. In your IdP, update the redirect URLs for the UI backend and frontend to use the domain that you plan to use going forward, such as the LoadBalancer address or localhost.

Troubleshooting

Review the following common issues and resolutions steps.

UI is not resolvable

The frontend or backend is not resolvable. When you curl the address, such as curl https://${UI_HOST}, you get a Could not resolve host error.

Why it’s happening:

  • The UI pod is not running.
  • The DNS for the domain is not configured with the external IP address of the Gateway service.

How to fix it:

  • Check the status of the UI pod.
  • Check the DNS for the domain.
  • Make sure that the HTTPRoute routes to the UI service in the namespace where you installed the UI.

CORS Failed errors

In the browser console and network logs, you see CORS Failed errors.

Why it’s happening:

The UI frontend and the UI backend are on different origins. When you follow this guide, both are served from ${UI_HOST} and the browser sends no preflight request, so a CORS error means that the backend was given a hostname of its own.

How to fix it:

  • Leave ui.frontend.uiBackendHost empty so that the frontend calls the backend at the same origin.
  • If you deliberately serve the backend on a separate hostname, apply a CORS policy to the Gateway that allows the frontend origin, and allow the Authorization, X-Grpc-Web, and Content-Type headers that the gRPC-Web client sends.

Permission denied errors

In the browser console and network logs, you see errors similar to the following:

Error: []: not allowed to call /rpc.agentgateway.solo.io.KubernetesObjectAPI/GetKubernetesObject

Code: PERMISSION_DENIED

Why it’s happening:

  • The user that logged in to the frontend UI does not have at least a reader role for Solo Enterprise for agentgateway.
  • The user’s group membership claims in the access token are not properly mapped to the Solo Enterprise for agentgateway RBAC roles.

How to fix it:

  • Check the group membership claims in the user’s access token. Sometimes the group claims are missing in the access token because the claims are not configured properly in the IdP.
  • Make sure that the RBAC configuration in your Helm installation values for the UI has the appropriate role mappings of Solo Enterprise for agentgateway RBAC roles to the group names that are returned by the IdP. Claim names are case-sensitive.
  • If you see errors in the UI backend logs similar to "error evaluating role mapping cel expr","error":"no such key: Groups" or "error":"no such key: groups", your IdP might return group claims with a different case than expected. Update the CEL expression in the RBAC ConfigMap to handle case variations:
    "roleMapper": "has(claims.Groups) ? claims.Groups.transformList(i, v, v in rolesMap, rolesMap[v]) : (has(claims.groups) ? claims.groups.transformList(i, v, v in rolesMap, rolesMap[v]) : [])"
  • Try clearing your browser cache and cookies, or test in a private/incognito browser window. In some cases, you might need to close the browser completely and reopen it to clear the cached authentication state.

Okta authorization errors

When using Okta as your IdP, you see errors during the OAuth authorization flow, such as:

400 Bad Request
Error: invalid_request
The 'redirect_uri' parameter must be a Login redirect URI in the client app settings

Or you see in the Okta System Logs:

OAuth2 authorization request
FAILURE: no_matching_policy

Why it’s happening:

You might see this error because of one of the following configuration issues in Okta:

  • The redirect URI in the Okta client configuration does not match the domain where your UI is hosted.
  • The Okta authorization server does not have an access policy or rule that allows your client to request tokens.
  • CORS trusted origins are not configured for your UI domain in Okta.

How to fix it:

  • Verify that the redirect URIs in both your frontend and backend Okta clients match your UI domain, such as https://${UI_HOST}/callback and https://${UI_HOST}/logout.
  • Configure CORS trusted origins in Okta: Go to Security > API > Trusted Origins and add your UI domain with both CORS and Redirect enabled.
  • Verify that your authorization server has an access policy: Go to Security > API > Authorization Servers, select your server (such as default), and check the Access Policies tab. Make sure a policy exists that includes your clients and allows the required scopes (openid, profile, and email).