Authentication configuration reference
Exact roles, identity-resolution facts, and config keys for Flare's
authentication system. For what each method actually does, see
../explanation/authentication-model.md.
For setup steps, see
../how-to/admin/configure-authentication.md.
Roles
| Role | Can do |
|---|---|
Viewer |
Read logs, traces, metrics, saved views, dashboards, ingestion/pipeline/indexing status; create/revoke their own personal access tokens. |
Member |
Everything Viewer can, plus create/edit/delete/test-fire alert rules, and create/edit/delete dashboards. |
Admin |
Everything Member can, plus manage users, ingest API keys, and revoke any user's personal access tokens. |
Fixed three-value enum, not a custom/configurable permission system — see
Flare.Identity.Users.UserRole.
Identity resolution per method
| Method | Users.AuthProvider |
External identity source | Role source | Restart required on settings change? |
|---|---|---|---|---|
| Local | Local |
username | set directly on the account | No |
| Microsoft Entra ID | Entra |
token oid claim |
Entra App Roles (roles claim) |
Yes |
| Active Directory | ActiveDirectory |
UniqueIdAttribute (default objectGUID) |
3 configurable group DNs (memberOf) |
No |
| OpenID Connect | Oidc |
token sub claim |
configurable claim name (default roles) |
Yes |
| Reverse proxy | ReverseProxy |
configured header's value | optional groups header, 3 configurable group names | No |
A disabled account (any provider) is refused a session — Entra/OIDC bounce
to /login?error=account-disabled; LDAP/reverse-proxy return the same
generic 401 a wrong password gets.
Configuration reference
| Key | Default | What it does |
|---|---|---|
Identity:Provider |
Sqlite |
Which database stores users, sessions, API keys and auth settings: Sqlite (embedded file, the default) or Postgres (an external server, so several processes on different hosts can share it). See ADR-0111. |
Identity:ConnectionString |
unset | Npgsql connection string, e.g. Host=postgres;Database=flare_identity;Username=flare;Password=.... Required when Identity:Provider is Postgres; ignored otherwise. |
Identity:DbPath |
flare-identity.db |
Path to the shared SQLite file. Set to a volume-backed absolute path in any real deployment — docker-compose.yml and Flare.AppHost already do this for you. |
Identity:Admin:Username / Identity:Admin:Password |
unset | Create this Admin account at startup when no user exists yet, for headless installs. See ADR-0117. |
Identity:Admin:PasswordFile |
unset | Read the password from this file (Docker/Kubernetes secret) instead of Identity:Admin:Password. |
Identity:Admin:Reconcile |
false |
Also reset the named account to the configured password, Admin role and enabled on every start. A password changed in the UI reverts on restart. |
Auth:CookieName |
flare_session |
Session cookie name. |
Auth:SessionLifetime |
14.00:00:00 (14 days) |
Fixed session expiry, set at login. |
Auth:SessionIdleTimeout |
unset (off) | Sign a session out after this long without a request, e.g. 00:30:00. Accurate to about a minute. See ADR-0206. |
Auth:PasswordPolicy:MinLength |
8 |
Minimum length for any local password (bootstrap, invite/reset, change, Identity:Admin:*). Existing passwords are never re-checked at login. |
Auth:PasswordPolicy:RequireUppercase / RequireLowercase / RequireDigit / RequireSymbol |
false |
Require at least one character of that class. |
Auth:CookieSecure |
true |
Set false only for local plain-HTTP dev. |
Auth:CookieSameSite |
Lax |
None (with CookieSecure=true) if your dashboard and API are ever split across genuinely different domains, not just different ports on localhost. |
Auth:MaxFailedLoginAttempts |
5 |
Consecutive failed local-login attempts for the same (username, client IP) pair before it's locked out. Only local username/password login is throttled this way - see the authentication model. |
Auth:LoginLockoutDuration |
00:15:00 (15 minutes) |
How long a locked-out (username, client IP) pair stays locked out. |
Auth:LoginFailureWindow |
00:15:00 (15 minutes) |
A failed attempt older than this doesn't count toward MaxFailedLoginAttempts - resets the streak instead of letting occasional mistyped passwords accumulate over time. |
Auth:PatRateLimitPermitLimit |
120 |
Requests a single personal access token may make per PatRateLimitWindow before Flare.Api starts returning 429s for it. Cookie/session (dashboard) traffic is never subject to this. |
Auth:PatRateLimitWindow |
00:01:00 (1 minute) |
Fixed window PatRateLimitPermitLimit is measured over. |
Audit:RetentionDays |
365 |
Days to keep audit log events before an hourly job deletes them. 0 keeps them forever. |
Audit:RecordReads |
false |
Also record who queried telemetry (logs, traces, metrics, errors) in the audit log. |
Audit:ReadDedupeSeconds |
60 |
Record the same user repeating the same read once per this many seconds. 0 records every request. |
Audit:Forwarding:Webhook:Url |
empty | POST every new audit event as a JSON array to this URL. Empty disables the sink. |
Audit:Forwarding:Webhook:Secret |
empty | When set, requests carry X-Flare-Signature: sha256=<HMAC-SHA256 of the body>. |
Audit:Forwarding:Syslog:Host |
empty | Send every new audit event as an RFC 5424 syslog message to this host. Empty disables the sink. |
Audit:Forwarding:Syslog:Port / :Protocol |
514 / tcp |
Syslog port, and tcp (octet-counted framing) or udp. |
Audit:Forwarding:IntervalSeconds / :BatchSize |
10 / 100 |
How often each sink polls for new events, and events per delivery. |
Auth:IngestKeyRequired |
false |
Whether Flare.Ingest rejects OTLP requests with no valid API key. |
Auth:StaticIngestApiKey |
unset | A fixed ingest key set via config instead of the dashboard — see ingest API keys. |
Cors:AllowedOrigins:0, :1, … |
none | Origin(s) allowed to call Flare.Api with credentials (i.e. the dashboard's own origin). Required — Flare.Api no longer defaults to AllowAnyOrigin(). Also doubles as the Entra/OIDC login returnUrl allow-list. Each value is reduced to its origin (scheme://host[:port]), so a trailing slash or path such as https://example.com/flare/ is ignored. A value that is not an absolute http(s) URL, or *, stops Flare.Api at startup with an error naming the entry. |
Auth:Entra:DefaultRole |
Viewer |
Role assigned on first login when the token carries no recognized roles claim entry. The one Entra-related setting that's still config-bound — Enabled/TenantId/ClientId/ClientSecret live in the database instead, set via the /auth page (Admin-only, GET/PUT /api/settings/entra). |
Everything else has no configuration-file equivalent at all — set
exclusively through /auth:
- The global "Require sign-in" switch,
LocalEnabled - Every Active Directory setting (
Host/Port/BaseDn/BindDn/BindPassword/group DNs/DefaultRole/etc.) —GET/PUT /api/settings/ldap - Every OpenID Connect setting (
Authority/ClientId/ClientSecret/Scopes/RoleClaimName/DefaultRole) —GET/PUT /api/settings/oidc - Every reverse-proxy setting (
HeaderName/TrustedProxyCidrs/GroupsHeaderName/group names/DefaultRole) —GET/PUT /api/settings/proxyauth
See ADR-0004 for why this is database-backed rather than config-file-backed.
Last updated: