Repository navigation
Releases
v0.3.4
Lil now supports many users. Each person signs in through your OIDC identity provider, and Lil records who created, edited, or deleted every link. This is the recommended release for upgrading from 0.2.x. It contains 0.3.0 and every fix since.
Upgrading from 0.2.x
- Back up your SQLite database. Lil runs a schema migration on first start.
- Register an OIDC client with the redirect URI
https://<your host>/auth/oidc. - Replace
[admin]with[auth]in your config. Seeconfig.sample.tomland the Authentication section of the README. - Deploy, sign in, and create API tokens for your scripts.
Links created before the upgrade have no recorded creator.
Breaking changes
- Basic Auth is removed. Lil ignores the
[admin]username and password. [auth]is required.auth.modemust beoidcordev. Lil has no unauthenticated mode and refuses to start if[auth]is incomplete.- Access is an explicit list.
auth.oidc.allowed_emailsis required and strict.allowed_domainsis an optional extra check that must also pass. There is no self sign-up. - Scripts need API tokens. Send
Authorization: Bearer lil_...instead of Basic credentials. This includes Prometheus scraping of/api/v1/metrics.
Features
- OIDC sign-in with PKCE (S256) and nonce.
client_secretis optional, so PKCE-only public clients work. For Google, domain checks use the signedhdclaim. - Claims from userinfo. Some providers leave
email,email_verifiedandnameout of the ID token. Lil then reads them from the userinfo endpoint and accepts them only when the subject matches the ID token. - Per-user API tokens. Create and revoke them on the Tokens page or through
/api/v1/tokens. Lil shows each token once. - Attribution. Every link records
created_by,updated_byandupdated_at, and the dashboard shows them. - Activity log.
/api/v1/auditand the Activity page show every change, with before and after snapshots. Entries survive link deletion. - Users page. Disabling a user ends their sessions and revokes their tokens at once. Enabling them again restores neither.
- Optional analytics. A config without
[analytics]starts with analytics off.
Security
- On every request, Lil checks the allowlist, the issuer, and whether the user is disabled, not only at sign-in.
- Browser writes are protected with Go's
http.CrossOriginProtection. Your proxy must preserve theHostheader. - After login, Lil redirects only to clean paths under
/admin/. - Callback failures log a fixed reason. Lil never logs provider error bodies, codes, or tokens.
Fixed since 0.3.0
- Sign-in with userinfo-only providers no longer fails with "email not verified" (0.3.2).
- Redirect loop after upgrading from Basic Auth (0.3.3). Browsers keep sending cached Basic credentials to a site that once asked for them. Lil treated that header as an API token attempt, so the valid session was ignored. Only
Bearerheaders now select token authentication. - Temporary diagnostics removed (0.3.4). The claim-shape debug logging from 0.3.1 is gone. Duplicate and misleading tests were removed.
Dependencies
github.com/coreos/go-oidc/v3v3.21.0golang.org/x/oauth2v0.37.0github.com/alexedwards/scs/v2v2.9.0github.com/go-jose/go-jose/v4v4.1.4 (already a go-oidc dependency; the tests use it directly)
v0.3.3
Fix a sign-in redirect loop for browsers that still cache Basic Auth credentials from before v0.3.0. Such a stale Authorization: Basic header hid the valid session. Only Bearer headers now select API token authentication.
v0.3.2
Fix sign-in with OIDC providers that return email, email_verified and name only from the userinfo endpoint. They previously failed with "email not verified". Lil now asks userinfo when the ID token lacks these claims and accepts the answer only when its subject matches the ID token.
v0.3.1
Debug-level sign-in logging: the OIDC callback logs which claims the ID token and userinfo response carry, the email_verified value and the email domain. It never logs claim values, tokens or full emails. Use it when sign-in fails with "email not verified".
v0.3.0
Lil now supports many users. Each person signs in with your identity provider, and Lil records who created, edited, or deleted every link.
Breaking changes
- Basic Auth is removed. The
[admin]username and password no longer work. Lil ignores the[admin]section. [auth]is required.auth.modemust beoidcordev. Lil has no unauthenticated mode and refuses to start if[auth]is incomplete.auth.oidc.allowed_emailsis required and strict. Only listed people can sign in.allowed_domainsis an optional extra check that must also pass. There is no self sign-up.- Scripts need API tokens. Change
curl -u user:passtoAuthorization: Bearer lil_.... That includes Prometheus scraping of/api/v1/metrics.
New
- OIDC sign-in with PKCE (S256), tested with Google and Zitadel-style providers.
client_secretis optional, so PKCE-only public clients work. For Google, domain checks use the signedhdclaim. - Per-user API tokens. Create and revoke them on the Tokens page or through
/api/v1/tokens. Lil shows each token once. - Attribution:
created_by,updated_by, andupdated_aton every link, shown on the dashboard. - An append-only activity log (
/api/v1/audit, Activity page) with before and after snapshots. Entries survive link deletion. - A Users page. Disabling a user ends their sessions and revokes their tokens at once. Enabling them again restores neither.
[analytics]is optional. A config without it starts with analytics off.
Security
- The allowlist, issuer, and disabled state are checked on every request, not only at sign-in.
- Browser writes are protected with Go's
http.CrossOriginProtection. The proxy must preserve theHostheader. - The post-login redirect only accepts clean paths under
/admin/. - Callback failures log a fixed reason. Lil never logs provider error bodies, codes, or tokens.
Upgrade
- Back up your SQLite database. This release runs a schema migration on start.
- Register an OIDC client with redirect URI
https://<your host>/auth/oidc. - Replace
[admin]with[auth]. Seeconfig.sample.tomland the Authentication section of the README. - Deploy, sign in, and create API tokens for your scripts.
Links created before the upgrade have no recorded creator.
Dependencies
github.com/coreos/go-oidc/v3v3.21.0golang.org/x/oauth2v0.37.0github.com/alexedwards/scs/v2v2.9.0github.com/go-jose/go-jose/v4v4.1.4 (already a go-oidc dependency; tests now use it directly)
v0.2.3-alpha.5
v0.2.3-alpha.4
Changelog
- 8da2637 fix(analytics): redact Matomo request secrets
v0.2.3-alpha.3
Changelog
- 4487b68 feat: revive platform-aware URL redirects
v0.2.3-alpha.2
Changelog
- 2b107be chore: run embedded sql migrations