Skip to content

Releases

docs: changelog for v0.8.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 22:18

Added

  • Tailscale OAuth client secrets can now be used directly as auth keys. tsnet (tspages' embedded
    Tailscale runtime) natively resolves tskey-client- secrets by exchanging them for a
    short-lived API token and minting a per-registration auth key, so keys are consumed at
    registration time and never need persistence or rolling. tailscale.tags (or TSPAGES_TAGS)
    sets the tags advertised by every tspages server and applied to the minted keys, so one set of
    grants (e.g. dst: ["tag:pages"]) covers the control plane and every site; it defaults to
    ["tag:pages"], an explicitly empty value (tags = [] or an empty TSPAGES_TAGS) means no
    tags, and an unset one means the default. Since tsnet's OAuth handling defaults to ephemeral
    nodes and non-pre-authorized registration -- both wrong for tspages' long-lived servers -- a bare
    secret automatically gets ?ephemeral=false&preauthorized=true appended; explicit query
    parameters are preserved. Regular auth keys keep working unchanged.
  • The project logo now appears in the admin header next to the wordmark and serves as the site
    favicon and apple-touch-icon.

Changed

  • Configuration precedence is now environment variable > config file > default (12-factor
    convention). Previously, values set in tspages.toml shadowed the matching environment
    variables; unset variables fall back to the file, then to built-in defaults.
  • The config file is now optional: when tspages.toml does not exist, tspages starts from defaults
    and environment variables alone. Malformed TOML and non-not-exist read errors (such as
    permissions) still fail loudly.
  • The simple [defaults] settings (public, spa_routing, html_extensions, analytics,
    directory_listing, index_page, not_found_page, trailing_slash) can now be set via
    TSPAGES_DEFAULTS_* environment variables, so env-only deployments can configure them.
    Structured [defaults] values (headers, redirects, forms, webhooks) remain config-file only.

Fixed

  • Docker images now include the HTML templates in the frontend build stage, so Tailwind emits
    the template utility classes. Previously, the admin UI rendered unstyled (missing background,
    broken top menu) because every class used only in templates was tree-shaken from the compiled
    CSS. Local builds were unaffected.

v0.7.1: fix(docker): copy templates into frontend build stage (#1)

Choose a tag to compare

@github-actions github-actions released this 01 Dec 01:49
720598f
The frontend stage only copied web/, so Tailwind v4's source scan never
saw the .gohtml templates during image builds. The @source paths point
into internal/, which was absent in the stage, and automatic detection
had no templates to find either. Result: every utility class used only
in templates (body background, nav bar, tables, typography) was tree-
shaken out of the compiled CSS, and the published admin UI rendered
unstyled (missing background, broken top menu).

Copying internal/ into the stage gives the scanner the same sources a
local 'make build' has. Verified: rebuilt image contains bg-base-50,
h-13, grid-cols-[auto_1fr_auto], scheme-light, text-2xl, border-collapse,
etc., which are all absent from ghcr.io/radiergummi/tspages:latest.