Impersonation
With single sign-on that doesn’t pass people’s own tokens on, or behind a proxy, Lumovi’s service account may impersonate anyone. Whoever can exec into its pod, or read its service account’s token, can then act as anyone in the cluster. Treat Lumovi like any other component with cluster-wide power:- Keep it in a namespace of its own, one only cluster administrators can exec into, read Secrets in, or change workloads in.
- Use prefixes (
auth.usernamePrefixandauth.groupsPrefix), so no name or group from a provider or proxy is one of yours by accident. - Behind a proxy, let nothing else reach Lumovi. It trusts the proxy’s headers completely. Turn on
networkPolicywith the proxy’s pods infrom.
system:…), whatever a provider or proxy says. It leaves out groups that start with system:, and refuses users whose names (with their prefix) do.
When the API server trusts your provider, pass people’s tokens on instead: Lumovi then needs no permissions at all.
Sessions and cookies
- The browser holds only a random ID for its session, 32 bytes, in the
lumovi-sessioncookie. The token or the identity it stands for stays in Lumovi. - Sessions live in Lumovi’s memory. Restarting it signs everyone out, and nothing about them is written to disk. For the same reason the chart runs one replica.
- Sessions last 12 hours unless
auth.sessionHourssays otherwise, at most a week. People signing out end their session in every tab. - Single sign-on uses the authorization code flow with PKCE. The state, PKCE verifier and nonce stay in the
lumovi-sign-incookie for at most 10 minutes, signed with a key Lumovi makes when it starts. A sign-in that’s under way when Lumovi restarts has to be tried again. The ID token’s signature is checked against the provider’s keys: RSA and ECDSA signatures only, so unsigned tokens and shared-secret signatures are refused. Its issuer, audience, expiry and nonce are checked against what Lumovi expects, allowing a minute for clocks that disagree. - Only Lumovi’s own pages can sign in with a token, sign out, or connect. Browsers name the page’s origin on those requests and on the WebSocket. Lumovi takes them only when that origin’s host is the one in the request’s
Hostheader, or the origin isurl’s. A request that names no origin is refused. Behind a proxy that changes theHostheader, seturlto the address people open, or signing in and connecting fail.
SameSite=Lax and limited to the base path:
The first two are
HttpOnly, so scripts can’t read them, and Secure when url starts with https: or the proxy in front sends X-Forwarded-Proto: https. The page sets lumovi-theme itself, and it holds nothing else.
The page
Pages are served with a strict Content Security Policy (scripts only from Lumovi itself, no frames, no plugins), and with headers that keep them out of other sites’ frames (X-Frame-Options: DENY), stop content-type sniffing, and send no referrers.
Charts and private networks
People choose where charts come from when they install or upgrade a Helm release, and Lumovi fetches them from inside the cluster’s network, where it can reach services they can’t, and cloud metadata endpoints. So it fetches charts only from public addresses. A repository, registry or chart URL whose host is, or resolves to, a private address is refused:
If your charts live in your own network, such as a ChartMuseum or Harbor, allow private addresses with
helm.allowPrivateCharts: true. Anyone signed in can then make Lumovi reach services inside the cluster’s network.
Charts never come from files: there’s no computer of the user’s to read them from.
Read-only
readOnly: truekeeps everyone from changing anything through Lumovi, whatever their permissions.- Each person can also make Lumovi read-only for themselves, in their own browser.
The pod
The chart runs Lumovi with these defaults, which you can tighten further but shouldn’t need to loosen:Chart defaults
/tmp, an emptyDir: helm’s caches, and for each run of helm a kubeconfig that acts as the person who asked (readable only by Lumovi, and removed after). Each image is signed with a build provenance attestation; see Verify the image.
Hardening checklist
Pick token sign-in, or single sign-on with tokens passed on, when you can: Lumovi then needs no permissions.
Run Lumovi in its own namespace, which only cluster administrators can exec into or read Secrets in.
Set
auth.usernamePrefix and auth.groupsPrefix when Lumovi impersonates people.Behind a proxy, turn on
networkPolicy and name only the proxy in from.Serve it over HTTPS, and set
url to the https: address, so cookies are sent over HTTPS only.Leave
helm.allowPrivateCharts off unless your charts are in your own network.Consider
readOnly: true for a dashboard people should only look at.Reporting a vulnerability
Please report vulnerabilities privately, through GitHub security advisories, not in a public issue. See SECURITY.md.Privacy and security
The security model of the desktop app, and what Lumovi connects to.
Helm values
Every setting the chart has.