The linstor-gui gatekeeper runs oauth2-proxy with the same single, 15-minute CSRF cookie the dashboard had. Once the session ends, for example after a logout from the dashboard, every linstor-gui tab that is reloaded starts its own sign-in and overwrites the cookie of the others, so finishing the login in any tab but the last one fails with a 403 and "CSRF token mismatch, potential attack"; a login page left open for more than 15 minutes fails the same way with "CSRF cookie ... was not found", although Keycloak still accepts it. Give each sign-in its own CSRF cookie, cap how many can pile up in the request headers, and keep them for 1h instead of 15 minutes, which outlives Keycloak's 30-minute login lifespan. The lifetime stays finite and well inside --cookie-expire (168h): an older CSRF cookie fails signature validation and the per-request limit skips it instead of deleting it, so a longer-lived cookie would accumulate. Tested by running oauth2-proxy v7.12.0 with the chart-rendered gatekeeper arguments against a live Keycloak: with two tabs signing in after the session ended, the current arguments fail the first tab with the CSRF mismatch and the new ones sign both in. Assisted-by: LLM Signed-off-by: Alexey Artamonov <aleksei.artamonov@aenix.io>
linstor-gui
Cozystack system package for LINBIT/linstor-gui — a web UI for managing LINSTOR nodes, resources, volumes and snapshots.
Installed alongside the linstor package in the cozy-linstor namespace. The UI
proxies the LINSTOR controller REST API at https://linstor-controller.cozy-linstor.svc:3371
using mTLS with the linstor-client-tls secret created by the linstor package.
Exposing the UI
Option 1 — Keycloak-protected Ingress (recommended)
The chart ships an oauth2-proxy based gatekeeper plus a KeycloakClient CRD
so the UI can be published on linstor-gui.<root-host> behind the cluster
Keycloak realm. Access is restricted to members of the
cozystack-cluster-admin Keycloak group — the same group that grants
cluster-admin RBAC on the host cluster. Authenticating against the cozy
realm alone is not sufficient; users outside that group receive a 403 from
oauth2-proxy before any request reaches the UI or the LINSTOR controller.
To turn it on, add linstor-gui to publishing.exposedServices in the core
cozystack values (same list that controls dashboard). OIDC must be
enabled (authentication.oidc.enabled: true) — if it is not, the Ingress and
gatekeeper Deployment are deliberately not rendered, because the LINSTOR
REST API surface must not be exposed unauthenticated.
Once enabled, the UI is reachable at https://linstor-gui.<root-host> and
authentication is delegated to Keycloak via the linstor-gui client
(auto-provisioned through the KeycloakClient CRD; the client secret is
persisted in the linstor-gui-client Secret in cozy-linstor).
Option 2 — Port-forward
If you have not set up Keycloak or want ad-hoc access, use the ClusterIP
Service:
kubectl -n cozy-linstor port-forward svc/linstor-gui 3373:80
then open http://localhost:3373.
Parameters
Image
| Name | Description | Value |
|---|---|---|
image.repository |
LINSTOR GUI container image repository | ghcr.io/cozystack/cozystack/linstor-gui |
image.tag |
LINSTOR GUI container image tag (digest recommended) | 2.3.0 |
Deployment
| Name | Description | Value |
|---|---|---|
replicas |
Number of linstor-gui replicas | 1 |
LINSTOR controller connection
| Name | Description | Value |
|---|---|---|
linstor.backend |
Storage backend the platform runs, linstor or blockstor. Under blockstor the endpoint and client Secret are read from the LinstorCluster the linstor package renders, the render fails until that object names an external controller, and the two values below apply only under linstor. |
linstor |
linstor.endpoint |
In-cluster URL of the LINSTOR controller REST API (HTTPS, mTLS) | https://linstor-controller.cozy-linstor.svc:3371 |
linstor.clientSecret |
Kubernetes Secret with tls.crt, tls.key, ca.crt used as the mTLS client certificate against the LINSTOR controller. Created by the linstor package. |
linstor-client-tls |