Skip to content

v1.11.0

Choose a tag to compare

@euoia euoia released this 30 Oct 08:07
· 35 commits to main since this release

Upgrade notes

  • Remotes: a remote that is a local path or a file:// URL needs git.allowLocalRemote: true. Git runs such a repository's own hooks on the host, so it is off by default.
  • Refused repositories: publishing is refused when any file in the repository goes through a git filter (Git LFS or another), when the repository holds a submodule, or when its remote pushes somewhere other than it fetches (pushurl, pushInsteadOf).
  • Push credentials: they come only from ssh (the admin user's ssh config and agent, or GIT_SSH_COMMAND), or for HTTPS from GIT_ASKPASS or the remote URL. Git credential helpers (osxkeychain, gh) are no longer used, and git never prompts.
  • Trusted proxies: in production, X-Forwarded-For/X-Forwarded-Proto are trusted only from a loopback proxy by default. Behind a proxy on another host or container, set TRUST_PROXY (see docs/configuration.md, "Trusted proxies"). A login through an untrusted proxy, or over plain HTTP in production, now says why it cannot sign in instead of looping.
  • rsync:
    • A remote rsync.path may only contain letters, digits and . _ ~ / + @ , = -, and must not start with - or =.
    • Destinations that --delete would destroy (/, a home directory, the project, the build output) are refused unless allowDestructivePath: true.
  • Removed: the /api/build/* routes, the build.staging setting and /api/git/pull.
  • npm test now runs the fast unit suite.

Bug fixes

  • CmsVideo sites:
    • The publish check now builds sites that use CmsVideo, or any package .astro component with a <style> or <script> (#89). Previously these failed when the checkout and the temp directory share no top-level directory, as on Linux hosts. pnpm layouts are covered.
    • CmsVideo ships each rendered video once (#90).
    • CmsVideo accepts a ?query or #t= on a local path, and follows a symlinked images folder.
  • Publishing:
    • Uncommitted changes elsewhere in the repository no longer block a publish (#83). A real clash is refused with a clear message.
    • Publishing commits only paths inside the site (#84).
    • A commit removed upstream, by force-push or rewind, is never pushed back.
    • A push that cannot be confirmed live is reported as sent, not published (#54). Dry runs and failed builds or deploys say exactly how far the changes got.
  • Editor:
    • A cleared number is saved as absent, never "", in the main form and the item modal (#61).
    • A blank inside a block is dropped only where the site's own zod refuses it (#70). Top-level blanks are pinned as before (#69).
    • New blocks and cards no longer save values nobody chose: a 0, a "", or a literal.
    • Number and boolean literals are saved with their own type, and unions of literals are typed selects.
    • An <x>Image field with a declared <x>Alt shows one alt box (#88), and alt text stored under the old key moves to the declared field.
    • Lists inside list items get the right indexes and labels (#56). No element id repeats.
    • A textarea value starting with a blank line keeps it.
  • Glob collections: listed exactly as Astro's loader lists them: ! negations and dotfiles (#19).
  • Doctor:
    • It builds inside the site, which fixes Astro 6 sites with src/assets images (#73).
    • Its failure text points at its own output, and Ctrl-C stops its build cleanly.

Features

  • Text areas are sized to their content. .meta({ multiline: false | true }) chooses an input or a textarea (#87).
  • Failed logins have their own limit, per address and per IPv6 /56. Each failure logs one line, [<time>] auth.failed ip=<address>, for fail2ban. A login starts a new session (#40).
  • The doctor warns when publicDir is not ./public for a site that uses CmsImage or CmsVideo (#86).
  • On phones and tablets the dashboard header is two rows with nothing clipped, notices open under it, and the markdown toolbar no longer overlaps its expand button.

Security

  • simple-git 4, with an allowlist of the GIT_* variables git may see (#64).

  • Every git command runs with repository-planted code switched off (#67):

    • hooks, fsmonitor, filters, merge drivers;
    • signature programs, alternate-ref commands, core.sshCommand, credential helpers, askpass;
    • submodule recursion, and ext:: transports.

    Worktrees are checked out with their own view of the config. #93 tracks the structural fix: site code should not be able to write .git at all.

  • rsync: the user, host and port are validated, so ssh option injection is closed, and remote paths that a remote shell would expand are refused (#10).

  • Production builds have a time limit, leave no processes running, and receive no admin secrets.

  • Content paths: .. is refused as a path segment. A collection name such as faq..old now works.

Tests

  • npm test runs 89 fast test files. The live-server api.test.js (#2) and the stale Playwright e2e setup (#77) are gone.
  • Browser tests find Chromium on Linux too.
  • New tests cover each fix above, each seen failing first.