Authentication

OpenVibely includes built-in login middleware controlled by environment variables.

Enablement Rules

CaseBehavior
AUTH_ENABLED=trueAuth enabled explicitly
AUTH_ENABLED=falseAuth disabled explicitly
AUTH_ENABLED unset and username/password setAuth inferred enabled
AUTH_ENABLED unset and username/password missingAuth disabled

When auth resolves enabled, startup requires AUTH_USERNAME, AUTH_PASSWORD, and AUTH_SESSION_SECRET. Missing required values cause startup failure.

Session Settings

VariablePurpose
AUTH_SESSION_SECRETSigns the ov_session cookie
AUTH_SESSION_TTLGo duration string; invalid or non-positive values fall back to 24h

UI Behavior

The sidebar calls /auth/me to show the authenticated user menu when auth is active. Logout posts to /logout.

Production Guidance