Skip to main content
The Self-Managed Portal is in early preview. We recommend using the self managed UI for development only, and welcome any feedback.Features and configuration options may change in future releases.
SDK v5 and the Ditto Portal call these a Database and a Database ID.
The Self-Managed Portal provides a web interface for managing your Ditto databases in self-managed deployments, similar to the Ditto Cloud Portal. It enables you to view query data, configure SDK authentication, DataBridges, the Mongo Connector, and more. This guide assumes you have followed the Getting Started guide and have a Big Peer deployed with at least one database.

Enabling the Portal

In this early iteration of the Self-Managed Portal, the client interacts directly with the Operator API and Big Peer API. As such, there are a few steps required to allow the Portal to access these APIs.
1

Enable the Portal in the Operator

Upgrade the Ditto Operator Helm release to enable the portal:
Replace example with the name of your Big Peer.
The operatorApiUrl and bigPeerBaseUrl values are configured for local port-forwarding, which we’ll set up in a later step.
2

Configure CORS on your Big Peer

The Portal UI runs in your browser and makes requests to the Big Peer HTTP API. To allow these cross-origin requests, configure CORS on your Big Peer:
Replace example with the name of your Big Peer.
3

Set up port forwarding

The Portal requires access to three services. Set up port forwarding for each:
The Big Peer API port-forward goes through the nginx ingress controller to ensure CORS headers are applied. Direct port-forwarding to the Big Peer API pods would bypass nginx and result in CORS errors.
4

Access the Portal

Open http://localhost:8080 in your browser. The Portal login page should appear.

Using the Portal

Authenticating with the Operator API

For token sign-in, set operator.api.authMode to k8s-token in your Helm values. The Portal then uses a Kubernetes service account token to authenticate with the Operator API. To use managed Better Auth instead, follow the next section. Generate a token:
Copy the token and paste it into the Portal when prompted. This token is short-lived and will need to be regenerated periodically.

Managed Better Auth and Single Sign-On

To use managed Better Auth, add the following to your Big Peer. Replace appId with the UUID of an existing BigPeerApp in the same namespace, and use your Portal and identity provider origins:
publicUrl sets the browser-facing origin for SSO redirects. trustedOrigins lists the identity provider origins Better Auth accepts, including origins used for OIDC discovery. Save these Helm values as portal-auth.yaml and add -f portal-auth.yaml to the upgrade command in Enabling the Portal:
This switches Portal sign-in to Better Auth and shows the Access Management controls. The UI setting does not grant or restrict permissions; configure roles through Better Auth separately. The chart proxies SSO and account administration requests through /api/auth on the Portal’s origin.
Upgrade the Operator before or together with a Big Peer image that includes Better Auth 1.7.2 or later. Older Operators use an audience that these Better Auth versions reject at startup. Users with older tokens must sign in again. After applying the changes, check kubectl -n ditto rollout status deployment/ditto-example-better-auth and complete an SSO sign-in from the Portal. Redirects should return to the origin set in publicUrl.

New Installation

To enable the portal as part of a new Operator installation:

Configuration Options