Repository navigation
v1.11.0
Upgrade notes
- Remotes: a remote that is a local path or a
file://URL needsgit.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, orGIT_SSH_COMMAND), or for HTTPS fromGIT_ASKPASSor 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-Protoare trusted only from a loopback proxy by default. Behind a proxy on another host or container, setTRUST_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.pathmay only contain letters, digits and. _ ~ / + @ , = -, and must not start with-or=. - Destinations that
--deletewould destroy (/, a home directory, the project, the build output) are refused unlessallowDestructivePath: true.
- A remote
- Removed: the
/api/build/*routes, thebuild.stagingsetting and/api/git/pull. npm testnow runs the fast unit suite.
Bug fixes
- CmsVideo sites:
- The publish check now builds sites that use CmsVideo, or any package
.astrocomponent 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
?queryor#t=on a local path, and follows a symlinked images folder.
- The publish check now builds sites that use CmsVideo, or any package
- 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>Imagefield with a declared<x>Altshows 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.
- A cleared number is saved as absent, never
- 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/assetsimages (#73). - Its failure text points at its own output, and Ctrl-C stops its build cleanly.
- It builds inside the site, which fixes Astro 6 sites with
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
publicDiris not./publicfor 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
.gitat 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 asfaq..oldnow works.