UI Access

Tiphys's frontend is served from a ClusterIP Service on port 8080. Three paths cover every deployment:

  1. Port-forward — local dev, first-install smoke testing.
  2. Ingress — standard production path with your existing ingress controller (ALB / nginx / Traefik).
  3. Ingress + SSO — production with SSO enforcement: an ALB that signs people in, or ingress-nginx with oauth2-proxy.

Whichever path you use, somebody has to sign in; see Sign-in for the options.

Sign-in

auth.mode decides who can use Tiphys. The default, builtin, works the moment the pod is up, over a port-forward or an ingress.

ModeWho signs people inAudit showsUse when
builtin (default)Tiphys itself: one admin accountadminSmall teams, trials, any install without SSO
proxyYour authenticating ingress (oauth2-proxy, ALB + Cognito)Each person's SSO identityProduction with SSO and per-person accountability
devNobody; a synthetic userdev@localhostLocal kind clusters only
disabledNobodyanonymousAir-gapped networks that enforce identity elsewhere

Built-in sign-in

On first start Tiphys creates the admin account with a one-time password and writes it next to its database on the state volume (/var/lib/tiphys/initial-admin-password, readable only inside the pod). Print it with:

kubectl -n tiphys exec tiphys-0 -c backend -- cat /var/lib/tiphys/initial-admin-password

Reading it takes exec rights in the tiphys namespace, so your cluster's own access control is what protects it. The first sign-in has to set a new password (at least 12 characters), which deletes the file. After that, Account (click your name in the header) changes the password or signs you out.

  • Forgot the password: kubectl -n tiphys exec tiphys-0 -c backend -- python -m ops_agent.reset_admin prints a new one-time password and signs everyone out.

  • Choose the password yourself (GitOps, or persistence.mode=configmap, which has no state volume): put it in a Secret and point the chart at it. The password then always comes from the Secret and can't be changed in the UI; rotate the Secret and restart the pod instead.

    kubectl -n tiphys create secret generic tiphys-admin --from-literal=password='<at least 12 characters>'
    VERSION=$(helm get metadata tiphys -n tiphys | awk '/^VERSION:/ {print $2}')
    helm upgrade tiphys oci://ghcr.io/intelligant-ai/charts/tiphys -n tiphys \
      --version "$VERSION" --reuse-values --set auth.builtin.existingSecret=tiphys-admin
    
  • How long a sign-in lasts: auth.builtin.sessionTtlHours (default 168, one week). The session cookie is HttpOnly and SameSite=Strict, and Secure whenever the request arrived over HTTPS (including TLS ended at your ingress).

  • Signing out after inactivity: a sign-in nobody uses for auth.builtin.sessionIdleMinutes (default 15) ends. A minute before, the browser asks whether you're still there; staying signed in starts the clock again. Reading or typing counts as use; the app's own background refreshes don't. Set it to 0 to turn this off.

  • Five wrong passwords in a row lock the account for 30 seconds, doubling with each further miss up to 15 minutes.

SSO through your ingress

Set auth.mode=proxy and put Tiphys behind an ingress that signs people in and passes who they are. auth.proxy.headers says how, and Tiphys reads only that one set of headers:

auth.proxy.headersWhat Tiphys readsUse with
forwarded (default)X-Forwarded-User, X-Forwarded-Email, X-Forwarded-Groupsoauth2-proxy as the reverse proxy, and most SSO proxies
auth-requestX-Auth-Request-User, -Email, -Groups, -Preferred-Usernameingress-nginx with oauth2-proxy (auth-url)
albThe load balancer's signed x-amzn-oidc-data, checked against AWS's public key and auth.proxy.albArnAn AWS ALB that signs people in (Cognito or any OIDC provider)

Every audit event and approval then names the person (members of audit.adminGroups see everyone's events; everyone else, their own). A request that arrives without the identity, including a plain port-forward, is refused, and the UI explains why instead of loading.

Pick the set your ingress writes on every request. A proxy passes along headers it doesn't set itself, so reading any other set would let a client name someone else. Make sure people can reach Tiphys only through the ingress, not around it.

Trust the headers only from your proxy

With forwarded or auth-request headers, Tiphys believes whoever sends them. On their own, nothing stops another pod in the cluster from reaching the Tiphys pod directly and sending X-Forwarded-User with a group from audit.adminGroups. Anyone signed in can approve a change, so that pod could approve writes. Close that with a shared secret, a network policy, or both. (With alb, the load balancer signs each token and Tiphys checks the signature, so a forged one gets nowhere.)

A shared secret. Your proxy sets a header to a secret value on every request, and Tiphys trusts the identity headers only when it's there. nginx in the Tiphys pod drops the identity headers (X-Forwarded-User, -Email, -Groups and the X-Auth-Request- ones) from any request without it, and the backend answers 401.

  1. Create the Secret. The value needs at least 16 characters of letters, digits and . _ + / = -; a hex string is simplest.

    kubectl -n tiphys create secret generic tiphys-proxy-secret \
      --from-literal=secret="$(openssl rand -hex 32)"
    
  2. Point the chart at it:

    auth:
      mode: proxy
      proxy:
        sharedSecretHeader:
          name: X-Tiphys-Proxy-Secret
          existingSecret: tiphys-proxy-secret
          existingSecretKey: secret
    
  3. Have your proxy set that header to the value. With ingress-nginx (snippet annotations have to be allowed on the controller):

    nginx.ingress.kubernetes.io/configuration-snippet: |
      proxy_set_header X-Tiphys-Proxy-Secret "<the value>";
    

    oauth2-proxy can add a fixed request header with its injectRequestHeaders setting. Whoever can read the proxy's settings can read the value, so keep them as private as the Secret.

A proxy that can't add a request header can't use this; use the network policy instead. The chart refuses it with auth.proxy.headers: alb, since a load balancer can't add the header.

A network policy. networkPolicy.enabled: true admits only pods in your ingress controller's namespace to the frontend port and nothing to the backend port, so every request goes through nginx:

networkPolicy:
  enabled: true
  ingressNamespace: ingress-nginx   # where your ingress controller runs
  ingressPodLabels:                 # optional: only the controller's pods
    app.kubernetes.io/name: ingress-nginx

It needs a network plugin that enforces NetworkPolicy, and it's off by default. kubectl port-forward and the kubelet's health checks don't pass through it on most network plugins. A load balancer that sends traffic straight to pod IPs from outside the cluster isn't in any namespace, so this policy would shut it out; use the shared secret, or your own policy, there.

Without the shared secret, the backend logs proxy_identity_untrusted at start (except with alb headers), whether or not a network policy is in place (it can't see one).

The tour on your first sign-in

The first time someone signs in, Tiphys shows them around: a short tour that points at the chat, the cluster, the modules, approvals, reports, the audit trail and Help, one step at a time. Skip tour or Done ends it, and either way it's remembered for that person, so it doesn't come back in another browser or on another device. Take the tour at the top of Help (or /tour in the chat) shows it again any time.

  • Per person: the built-in sign-in's account, the proxy's X-Forwarded-User, or the dev identity. With auth.mode: disabled there's nobody to remember it for, so each browser remembers it on its own.
  • Where it's kept: beside the rest of Tiphys's state, in the SQLite file (tour_seen) or, with persistence.mode: configmap, the tiphys-tour ConfigMap. The browser keeps a copy as well, so a save that fails never makes the tour repeat.
  • It waits while a reply is streaming or an approval is waiting, and leaves out what someone's role or install doesn't have.

Port-forward (default)

kubectl port-forward -n tiphys svc/tiphys 8080:8080

Open http://localhost:8080 and sign in (see Sign-in). Works on every K8s distribution, no additional dependencies. The forward stops when the pod restarts. To have it reconnect on its own, run it in a loop:

while :; do kubectl port-forward -n tiphys svc/tiphys 8080:8080; sleep 2; done

Use for first-install smoke, individual-operator debugging, or any environment where exposing Tiphys via ingress is overkill.

Ingress (production)

Tiphys works with any ingress controller that supports standard networking.k8s.io/v1 Ingress. Example with ingress-nginx:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: tiphys
  namespace: tiphys
  annotations:
    nginx.ingress.kubernetes.io/proxy-body-size: "1m"
    # SSE endpoints need long timeouts for streaming chat.
    nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
    nginx.ingress.kubernetes.io/proxy-send-timeout: "3600"
spec:
  ingressClassName: nginx
  rules:
    - host: tiphys.example.com
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: tiphys
                port:
                  number: 8080
  tls:
    - hosts: [tiphys.example.com]
      secretName: tiphys-example-tls

For AWS ALB via the AWS Load Balancer Controller:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: tiphys
  namespace: tiphys
  annotations:
    kubernetes.io/ingress.class: alb
    alb.ingress.kubernetes.io/scheme: internal    # or internet-facing
    alb.ingress.kubernetes.io/target-type: ip
    alb.ingress.kubernetes.io/listen-ports: '[{"HTTPS":443}]'
    alb.ingress.kubernetes.io/ssl-redirect: "443"
    alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:us-east-1:...
spec:
  rules:
    - host: tiphys.example.com
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: tiphys
                port:
                  number: 8080

Important — SSE streaming: the /api/query endpoint streams chat responses via Server-Sent Events. Long-lived connections can hit default idle timeouts. Set:

  • nginx: proxy-read-timeout: 3600 + proxy-send-timeout: 3600
  • ALB: alb.ingress.kubernetes.io/load-balancer-attributes: idle_timeout.timeout_seconds=3600
  • Cloudflare / other CDNs: disable caching on /api/*, set origin timeout ≥ 3600s.

Chats feel fine at 60s timeout for short answers; complex diagnostic flows with many tool calls can exceed that.

Putting Tiphys behind SSO is the standard deployment: production installs shouldn't be reachable without it. Two recipes follow. Either way, set auth.mode=proxy so Tiphys records each person's SSO identity. If you leave the default builtin, the ingress still works, but people sign in twice (SSO, then Tiphys's admin) and the audit log shows admin for everyone.

An ALB that signs people in

The AWS Load Balancer Controller can have the ALB sign people in, through Amazon Cognito or any OIDC provider. The ALB then sends each request's identity in x-amzn-oidc-data, a token it signs. Tiphys checks the signature against the public key AWS publishes for the ALB's region, and that the token was signed by your load balancer, and refuses anything else.

  1. Create the Ingress with Cognito (for another OIDC provider, use auth-type: oidc and auth-idp-oidc instead):

    apiVersion: networking.k8s.io/v1
    kind: Ingress
    metadata:
      name: tiphys
      namespace: tiphys
      annotations:
        kubernetes.io/ingress.class: alb
        alb.ingress.kubernetes.io/scheme: internal
        alb.ingress.kubernetes.io/target-type: ip
        alb.ingress.kubernetes.io/listen-ports: '[{"HTTPS":443}]'
        alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:us-east-1:...
        alb.ingress.kubernetes.io/load-balancer-attributes: idle_timeout.timeout_seconds=3600
        alb.ingress.kubernetes.io/auth-type: cognito
        # email adds the address to the token; without it the audit trail
        # shows only the provider's subject id.
        alb.ingress.kubernetes.io/auth-scope: openid email
        alb.ingress.kubernetes.io/auth-session-timeout: "28800"
        alb.ingress.kubernetes.io/auth-idp-cognito: |
          {
            "UserPoolArn": "arn:aws:cognito-idp:us-east-1:...:userpool/...",
            "UserPoolClientId": "...",
            "UserPoolDomain": "tiphys-auth"
          }
        alb.ingress.kubernetes.io/auth-on-unauthenticated-request: authenticate
    spec:
      rules:
        - host: tiphys.example.com
          http:
            paths:
              - path: /
                pathType: Prefix
                backend:
                  service:
                    name: tiphys
                    port:
                      number: 8080
    
  2. Find the load balancer's ARN once the controller has made it:

    host=$(kubectl -n tiphys get ingress tiphys -o jsonpath='{.status.loadBalancer.ingress[0].hostname}')
    aws elbv2 describe-load-balancers \
      --query "LoadBalancers[?DNSName=='${host}'].LoadBalancerArn" --output text
    
  3. Tell Tiphys to trust that load balancer:

    auth:
      mode: proxy
      proxy:
        headers: alb
        albArn: arn:aws:elasticloadbalancing:us-east-1:123456789012:loadbalancer/app/k8s-tiphys-tiphys-0a1b2c3d4e/0123456789abcdef
    

What to know:

  • Who the person is: the token carries what the provider's user-info endpoint returns. Tiphys uses sub as the stable id, email for the address, and name, preferred_username or username for the name.
  • Groups: read from a groups claim (a list or a comma-separated string), or cognito:groups. Cognito's user info doesn't include groups, so with Cognito audit.adminGroups matches nobody; an OIDC provider that returns groups in its user info (Okta, Microsoft Entra ID with a groups claim) fills it in.
  • Outbound access: the pod fetches each signing key once from https://public-keys.auth.elb.<region>.amazonaws.com/<key id> (in GovCloud, https://s3-<region>.amazonaws.com/aws-elb-public-keys-prod-<region>/<key id>) and keeps it in memory. Allow HTTPS to it if a NetworkPolicy limits egress.
  • A new load balancer has a new ARN. If the Ingress is recreated, or its group changes, update auth.proxy.albArn; until then Tiphys refuses every request, which fails closed.
  • x-amzn-oidc-identity and x-amzn-oidc-accesstoken are ignored, and so are X-Forwarded-* headers, which an ALB passes along from the client.
  • The chart refuses auth.proxy.headers=alb without an albArn, and the backend won't start with one that isn't an Application Load Balancer's.

ingress-nginx and oauth2-proxy

ingress-nginx asks oauth2-proxy whether each request is signed in (auth-url) and sends people to oauth2-proxy to sign in when it isn't (auth-signin). oauth2-proxy answers with the person in X-Auth-Request-* headers, and auth-response-headers copies them onto the request to Tiphys, replacing any a client sent.

  1. Run oauth2-proxy with your OIDC provider. The flags that matter: --set-xauthrequest=true (answer with the X-Auth-Request-* headers), --reverse-proxy=true, and --upstream=static://202 (it only answers the checks). With the oauth2-proxy Helm chart:

    # values for the oauth2-proxy chart (https://oauth2-proxy.github.io/manifests)
    config:
      clientID: tiphys
      clientSecret: "..."          # or existingSecret
      cookieSecret: "..."          # openssl rand -base64 32 | head -c 32
    extraArgs:
      provider: oidc
      oidc-issuer-url: https://login.example.com
      redirect-url: https://tiphys.example.com/oauth2/callback
      email-domain: "*"
      scope: openid email profile   # add your provider's groups scope, if it has one
      set-xauthrequest: true
      reverse-proxy: true
      upstream: static://202
      skip-provider-button: true
    ingress:
      enabled: true
      className: nginx
      hosts: [tiphys.example.com]
      path: /oauth2
      pathType: Prefix
      tls:
        - hosts: [tiphys.example.com]
          secretName: tiphys-example-tls
    
    helm repo add oauth2-proxy https://oauth2-proxy.github.io/manifests
    helm install oauth2-proxy oauth2-proxy/oauth2-proxy -n tiphys -f oauth2-proxy-values.yaml
    
  2. Point Tiphys's Ingress at it:

    apiVersion: networking.k8s.io/v1
    kind: Ingress
    metadata:
      name: tiphys
      namespace: tiphys
      annotations:
        nginx.ingress.kubernetes.io/auth-url: "http://oauth2-proxy.tiphys.svc.cluster.local/oauth2/auth"
        nginx.ingress.kubernetes.io/auth-signin: "https://$host/oauth2/start?rd=$escaped_request_uri"
        nginx.ingress.kubernetes.io/auth-response-headers: "X-Auth-Request-User,X-Auth-Request-Email,X-Auth-Request-Groups,X-Auth-Request-Preferred-Username"
        nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
        nginx.ingress.kubernetes.io/proxy-send-timeout: "3600"
    spec:
      ingressClassName: nginx
      rules:
        - host: tiphys.example.com
          http:
            paths:
              - path: /
                pathType: Prefix
                backend:
                  service:
                    name: tiphys
                    port:
                      number: 8080
      tls:
        - hosts: [tiphys.example.com]
          secretName: tiphys-example-tls
    
  3. Tell Tiphys to read those headers:

    auth:
      mode: proxy
      proxy:
        headers: auth-request
    

What to know:

  • Tiphys uses X-Auth-Request-User as the id, X-Auth-Request-Email as the address, X-Auth-Request-Preferred-Username as the name, and X-Auth-Request-Groups (comma-separated) for audit.adminGroups. Groups arrive only when the provider puts them in the token and the scope asks for them.
  • With headers: auth-request, X-Forwarded-User is ignored: ingress-nginx passes it along from the client, so it could name anyone.
  • If oauth2-proxy runs as the reverse proxy in front of Tiphys instead (no auth-url), it sets X-Forwarded-User and X-Forwarded-Email with --pass-user-headers; keep the default headers: forwarded.

Multi-cluster considerations

Tiphys is namespace-scoped to tiphys in each cluster where it runs. Multi-cluster environments install one Tiphys pod per cluster: On-Prem Tiphys covers the cluster it runs in, with no cross-cluster federation. Operators who want one pane of glass across N clusters use N separate ingress hostnames (tiphys-prod.example.com, tiphys-staging.example.com) — each Tiphys instance has full visibility into its own cluster + whatever AWS resources its IRSA role grants access to.

Local-development ingress

For local kind development, the bundled setup script configures extraPortMappings so port 8080 / 8443 on the host reach the ingress-nginx controller inside kind. Combined with the test-cluster setup, the Tiphys UI is reachable at http://tiphys.localtest.me:8080 without a port-forward (localtest.me always resolves to 127.0.0.1).

What the frontend needs from the backend

The React SPA makes all API calls relative — there's no hardcoded backend URL. The nginx.conf inside the frontend container reverse-proxies /api to http://localhost:8081 (the backend container in the same pod). Any ingress that terminates at the Service port forwards both / (SPA) and /api/* (backend) through the same path.

No CORS config needed.