Skip to main content
Version: 1.15.0

Setup & Login

Enterprise only

Not included in DVARA Open Source.

This page walks through getting the DVARA Flightdeck running, creating the initial owner account, and picking an authentication mode for production.

Starting the DVARA Flightdeck​

With Docker​

From 1.8.2 two single docker run commands are no longer enough. The Gateway has no database: it enrols with Flightdeck, reads its configuration from Flightdeck, and ships its records to Flightdeck, which needs PostgreSQL. Use the Compose stack below. The images are ghcr.io/dvarahq/dvara-gateway:1.15.0 and ghcr.io/dvarahq/dvara-flightdeck:1.15.0; see Deploy with Docker Compose for what each service needs.

With Docker Compose​

Follow the 1.15.0 quickstart. It pins the images, sets the Gateway cluster on both services and explains environment assignment. A previous Compose file without those cluster settings cannot enrol a shared-secret Gateway in 1.15.0.

With Kubernetes / Helm​

# values.yaml
flightdeck:
enabled: true
replicaCount: 1
image:
repository: ghcr.io/dvarahq/dvara-flightdeck
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 1
memory: 512Mi

Health probes are auto-configured by the chart — see Kubernetes / Helm for the full deployment guide.

First-run setup​

On first boot with the built-in auth mode, when there are no users at all, the DVARA Flightdeck sends an anonymous visitor from the login page to /setup so you can create the initial owner account. This one-time page closes once an owner (any platform-role user) exists. Workspace-role users do not close it: if workspace users already exist but no owner does, nobody is redirected, but the page is still open. Go to /setup directly.

  1. Open http://localhost:8090 — you'll be redirected to /setup
  2. Enter your first and last name, email, and a password (8 to 72 characters) twice
  3. Sign in at /login with your new credentials
The one-time DVARA Flightdeck setup screen, asking for first and last name, email, and a password of at least eight characters to create the first administrator accountThe one-time DVARA Flightdeck setup screen, asking for first and last name, email, and a password of at least eight characters to create the first administrator account
Figure 1. First-run setup screen
The DVARA Flightdeck sign-in screen with email and password fields, a Sign in button, and a Forgot password linkThe DVARA Flightdeck sign-in screen with email and password fields, a Sign in button, and a Forgot password link
Figure 2. Login screen

The owner has full platform access — workspaces, routes, policies, budgets, users, and all other configuration. Invite additional users later from the Users page.

From 1.14.0 Flightdeck's session cookie is named DVARA_FLIGHTDECK_SESSION. Before 1.14.0 it was JSESSIONID. Flightdeck reads only its own name and ignores a leftover JSESSIONID, so everyone is signed out once on the upgrade and signs in again.

The cookie has path /, HttpOnly and SameSite=Lax, and is Secure when the request came over HTTPS, as a proxy in front of Flightdeck reports it. Its own name keeps another console served on the same address from reading or overwriting it. See Serve every console from one address. To use another name, set DVARA_FLIGHTDECK_SESSION_COOKIE_NAME (server.servlet.session.cookie.name).

Authentication modes​

By default the DVARA Flightdeck uses built-in email/password authentication. For production, you have three choices:

ModeWhen to useConfig required
Built-in (default)Local dev, small teams, no existing IdPNone — works out of the box
OIDCExisting Keycloak, Okta, or Azure ADDVARA_FLIGHTDECK_SECURITY_OIDC_ISSUER_URI
SAML 2.0Enterprise SSO (ADFS, Okta SAML, Azure AD)DVARA_FLIGHTDECK_SECURITY_SAML_METADATA_URL

OIDC and SAML are mutually exclusive — configuring both causes startup to fail.

From 1.10.0 a variable that starts with DVARA_FLIGHTDECK_SAML_ or DVARA_FLIGHTDECK_OIDC_ but is not a name Flightdeck reads, such as a typo, logs one warning at startup: The environment variable <name> sets nothing, with two names that do work. The setting keeps its default, so check the log after setting up SSO. Before 1.10.0 such a variable did nothing in silence: SSO stayed off and the password sign-in showed, which looked like a working setup. The OIDC + SAML property reference lives in the configuration table below; per-IdP step-by-step guides are not included here.

These settings configure one identity provider for the whole self-managed installation.

With built-in authentication, a successful password reset ends every existing Flightdeck session for that user, revokes every active personal access token, and writes PASSWORD_RESET. The user signs in again with the new password and creates replacement tokens as needed.

Disabling authentication for local development​

For purely local tinkering, you can turn off admin authentication entirely by setting:

dvara-flightdeck:
environment:
DVARA_FLIGHTDECK_SECURITY_ENABLED: "false"

Never use this in production. The data plane still requires API keys regardless of this setting.

Enabling OIDC​

When dvara.flightdeck.security.oidc.issuer-uri is set, the DVARA Flightdeck redirects anonymous users to the external IdP for browser-based OAuth2 login. Automation tools obtain JWTs via the client credentials grant and pass them as Authorization: Bearer <token>.

dvara-flightdeck:
environment:
DVARA_FLIGHTDECK_SECURITY_ENABLED: "true"
DVARA_FLIGHTDECK_SECURITY_OIDC_ISSUER_URI: https://keycloak.example.com/realms/dvara
DVARA_FLIGHTDECK_SECURITY_OIDC_AUDIENCE: dvara-admin
DVARA_FLIGHTDECK_SECURITY_OIDC_ROLE_CLAIM: realm_access.roles
PropertyEnv VarPurpose
dvara.flightdeck.security.enabledDVARA_FLIGHTDECK_SECURITY_ENABLEDEnable authentication (default: true)
dvara.flightdeck.security.oidc.issuer-uriDVARA_FLIGHTDECK_SECURITY_OIDC_ISSUER_URIOIDC discovery endpoint of your IdP
dvara.flightdeck.security.oidc.audienceDVARA_FLIGHTDECK_SECURITY_OIDC_AUDIENCEExpected JWT audience claim
dvara.flightdeck.security.oidc.role-claimDVARA_FLIGHTDECK_SECURITY_OIDC_ROLE_CLAIMJWT claim containing user roles (default: roles)

RBAC roles​

When security is on, RBAC is enabled by default (dvara.flightdeck.security.rbac.enabled=true). Six built-in roles split into three platform and three workspace scopes:

RoleScopeTypical user
ownerPlatform — full access to everythingPlatform lead, CTO
policy-adminPlatform — policies, routes, guardrails, MCP servers, approval queueSecurity engineer
billing-adminPlatform — pricing, costs, budgets, chargeback, complianceFinance, FinOps
adminWorkspace — full access within own workspace + user managementTeam lead
developerWorkspace — create API keys, view usage, read policiesApplication developer
viewerWorkspace — read-only access within own workspaceAuditor, observer

Roles are assigned in the Users page and mapped from JWT claims at login. The catch-all rule requires owner for any admin path not explicitly granted to another role, so new endpoints are locked down by default.

Setting dvara.flightdeck.security.rbac.enabled=false relaxes only the OIDC bearer route under /v1/admin/**: there, any valid JWT is accepted. The Flightdeck pages always enforce roles, whatever this switch says.

Workspace scoping​

Most list pages (policies, MCP servers, users, costs, budgets, sessions) include a Workspace dropdown filter. When RBAC is active, users can only see and modify resources that their assigned role permits. The filter is a query parameter in the page address: ?workspace_id= on most pages, and ?workspaceId= on the Costs and Budgets pages.

Policies list filtered by workspace via the workspace dropdownPolicies list filtered by workspace via the workspace dropdown
Figure 3. Policies list filtered by workspace via the workspace dropdown

Configure the cluster and runtime connection​

Use the configuration reference for supported settings and defaults. Register a Gateway cluster with DVARA_FLIGHTDECK_CLUSTER_NAME, then assign its environment to the workspaces it serves. See clusters and environments.

The old DVARA_FLIGHTDECK_GATEWAY_URL is retired. Each Gateway reports its own DVARA_DATA_PLANE_PUBLIC_URL. Cluster health comes from runtime reports, while the dashboard summarizes received call records. Keep the separate actuator and metrics keys for authenticated operator probes and Prometheus scraping; these are not a substitute for cluster enrolment.