Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
All notable changes to Setu. Release notes are cut from the section
matching the tag.

## Unreleased
## 0.1.10 — 2026-12-06

### Added

Expand Down Expand Up @@ -111,6 +111,28 @@ matching the tag.
check, at most 10 hops, and an archive over 2 GiB is refused by its
length or while it streams, so a broken server cannot fill
`/var/lib/setu/downloads`. The sha256 check was already in place.
- **Site roles can no longer connect to `template1` (S-L2, low).** The
install's `REVOKE CONNECT ... FROM PUBLIC` script closed only the
`postgres` database; it now closes `template1` too, so a site role
reaches its own database and no other. `setu agent install` runs it on
a new server; `install-system` does not, so on an existing server run
it once: `sudo -u postgres psql -c 'REVOKE CONNECT ON DATABASE
template1 FROM PUBLIC'`.
- **Site units run in a tighter sandbox (S-M1, medium).**
`setu-site@.service` adds `PrivateDevices`, `ProtectKernelModules`,
`ProtectKernelLogs`, `ProtectClock`, `ProtectHostname`,
`ProtectProc=invisible` (a site no longer reads other sites'
`/proc/<pid>/cmdline`), `RestrictNamespaces`, `RestrictRealtime`,
`LockPersonality`, `RemoveIPC`, empty capability sets, only
`AF_INET`/`AF_INET6`/`AF_UNIX` sockets, native system calls only
(`SystemCallArchitectures=native`) and a `@system-service` syscall
filter without `@privileged` and `@resources` (a refused call fails
with `EPERM` instead of killing the process). `MemoryDenyWriteExecute`
(JIT runtimes) and `ProcSubset=pid` (runtimes size themselves from
`/proc/meminfo`) are left out on purpose. `setu-agent.service` adds
`ProtectHome`, `PrivateTmp`, `ProtectKernelTunables` and
`ProtectControlGroups`. `setu agent install-system` writes the new
units; a site takes the sandbox on its next start.
- **A site can no longer connect to another site's port (S-M2,
medium).** The firewall only dropped site ports on other interfaces,
so a site reached its neighbours on 127.0.0.1 past Caddy's basic auth
Expand Down Expand Up @@ -198,6 +220,13 @@ matching the tag.
lock, the prune and the cleanup use that handle, so a symlink at
`backups` or `backups/setu` is a recorded failure, not a path into
another directory.
- **Removing a site no longer fails on a deep directory tree, and never
leaves files under a freed uid (S-L15, low).** `site-remove` walked the
site tree with one open directory per level, so a tree deeper than the
file-descriptor limit failed with `EMFILE`; it now keeps at most 64
open and removes the tree before the site user, so a failed removal
leaves a site that still owns its files and can be retried. A backup
refuses a tree more than 256 levels deep and names the directory.

### Fixed

Expand Down
18 changes: 9 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ members = [
]

[workspace.package]
version = "0.1.9"
version = "0.1.10"
edition = "2021"
license = "AGPL-3.0-only"
# Never published to crates.io (single binary + private repo); also
Expand Down
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "setu-ui",
"private": true,
"version": "0.1.9",
"version": "0.1.10",
"type": "module",
"scripts": {
"gen:api": "tsx scripts/gen-api.ts",
Expand Down
Loading