Skip to content

Releases

v0.3.4

Choose a tag to compare

@github-actions github-actions released this 30 Sep 06:50
5db2a56

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

  1. Back up your SQLite database. Lil runs a schema migration on first start.
  2. Register an OIDC client with the redirect URI https://<your host>/auth/oidc.
  3. Replace [admin] with [auth] in your config. See config.sample.toml and the Authentication section of the README.
  4. 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.mode must be oidc or dev. Lil has no unauthenticated mode and refuses to start if [auth] is incomplete.
  • Access is an explicit list. auth.oidc.allowed_emails is required and strict. allowed_domains is 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_secret is optional, so PKCE-only public clients work. For Google, domain checks use the signed hd claim.
  • Claims from userinfo. Some providers leave email, email_verified and name out 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_by and updated_at, and the dashboard shows them.
  • Activity log. /api/v1/audit and 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 the Host header.
  • 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 Bearer headers 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/v3 v3.21.0
  • golang.org/x/oauth2 v0.37.0
  • github.com/alexedwards/scs/v2 v2.9.0
  • github.com/go-jose/go-jose/v4 v4.1.4 (already a go-oidc dependency; the tests use it directly)

v0.3.3

Choose a tag to compare

@github-actions github-actions released this 30 Sep 06:41
0fb696c

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

Choose a tag to compare

@github-actions github-actions released this 30 Sep 05:57
cc5198c

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

Choose a tag to compare

@github-actions github-actions released this 30 Sep 05:45
6390e51

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

Choose a tag to compare

@github-actions github-actions released this 29 Sep 11:46
dd0fea3

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.mode must be oidc or dev. Lil has no unauthenticated mode and refuses to start if [auth] is incomplete.
  • auth.oidc.allowed_emails is required and strict. Only listed people can sign in. allowed_domains is an optional extra check that must also pass. There is no self sign-up.
  • Scripts need API tokens. Change curl -u user:pass to Authorization: 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_secret is optional, so PKCE-only public clients work. For Google, domain checks use the signed hd claim.
  • 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, and updated_at on 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 the Host header.
  • 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

  1. Back up your SQLite database. This release runs a schema migration on start.
  2. Register an OIDC client with redirect URI https://<your host>/auth/oidc.
  3. Replace [admin] with [auth]. See config.sample.toml and the Authentication section of the README.
  4. 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/v3 v3.21.0
  • golang.org/x/oauth2 v0.37.0
  • github.com/alexedwards/scs/v2 v2.9.0
  • github.com/go-jose/go-jose/v4 v4.1.4 (already a go-oidc dependency; tests now use it directly)

v0.2.3-alpha.5

Choose a tag to compare

@github-actions github-actions released this 09 Sep 10:35
31fcb2c

Changelog

  • 31fcb2c docs: rewrite project guide
  • 3d2483e feat(analytics): add structured redirect logs
  • 60f2c99 test: use neutral platform fixtures

v0.2.3-alpha.4

Choose a tag to compare

@github-actions github-actions released this 09 Sep 09:56
8da2637

Changelog

  • 8da2637 fix(analytics): redact Matomo request secrets

v0.2.3-alpha.3

Choose a tag to compare

@github-actions github-actions released this 09 Sep 09:49
4487b68

Changelog

  • 4487b68 feat: revive platform-aware URL redirects

v0.2.3-alpha.2

Choose a tag to compare

@github-actions github-actions released this 11 Dec 06:03

Changelog

  • 2b107be chore: run embedded sql migrations

v0.2.3-alpha.1

Choose a tag to compare

@github-actions github-actions released this 11 Dec 05:51

Changelog

  • 0220613 feat: add edit support
  • 05993da Merge pull request #4 from mr-karan/matomo
  • 2c6a84e feat: add matomo analytics support
⌂ 换网址