You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Krini reads its settings at runtime but never checks them as a whole. A missing APP_ORIGIN or CLOUD_REGISTRY_URL only shows when a page needs it, and an invalid LOGIN_PROVIDERS (not JSON, not an array, entries without id, issuer, clientId or clientSecret, duplicate ids) is silently dropped by getLoginProviders() (src/lib/oidc/providers.ts): the login page just shows fewer or no buttons, and the server log says nothing. This makes first deployments slow to debug (krini#77 documents the current behaviour in "Checking a deployment").
How?
At server start (e.g. Next.js instrumentation.ts), validate the settings of the configuration reference: required LOGIN_PROVIDERS (at least one valid provider), APP_ORIGIN (http(s) origin), CLOUD_REGISTRY_URL (URL), OIDC_REDIRECT_URI same origin as APP_ORIGIN, URLs of COMPUTE_ACCESS_REQUEST_URL.
Log each problem without secrets (name the provider id and the missing field, never clientSecret), and refuse to start on missing required settings, as cloud-registry-ui does.
Warn if no provider has computeGroups or adminGroups (nobody can run tasks or workflows).
Update docs/operator-guide/configuration.md and login.md ("doesn't check its settings").
Acceptance criteria
An invalid or incomplete LOGIN_PROVIDERS entry is logged with the reason.
Krini doesn't start without its required settings, and says which one is missing.
Two more points from the 0.1.0 pre-release review (finding L13) that fit this issue:
Without APP_ORIGIN, login still works (the callback falls back to the request URL), but logout always answers 500 (src/app/auth/api/logout/route.ts). With the start-up check, APP_ORIGIN should be required, so this mismatch can't happen.
appUrl() in the callback parses APP_ORIGIN itself instead of using getAppOrigin() (src/lib/oidc/providers.ts); the check at start and the routes should use one parser.
The other settings findings of the review (placeholder issuer and drift between the configuration.md example block and .env.example) are part of #115.
Activity
uniqueg commentedon Nov 19, 2026
Two more points from the 0.1.0 pre-release review (finding L13) that fit this issue:
APP_ORIGIN, login still works (the callback falls back to the request URL), but logout always answers 500 (src/app/auth/api/logout/route.ts). With the start-up check,APP_ORIGINshould be required, so this mismatch can't happen.appUrl()in the callback parsesAPP_ORIGINitself instead of usinggetAppOrigin()(src/lib/oidc/providers.ts); the check at start and the routes should use one parser.The other settings findings of the review (placeholder issuer and drift between the
configuration.mdexample block and.env.example) are part of #115.