A room or user name with a tab, a newline, an escape or some emoji was
drawn wider than measured, so the terminal wrapped and scrolled, and
going on to Users kept Rooms' header and keys on screen. Names from
Synapse and log lines are made printable, cutting to fit counts screen
cells (CJK and emoji take two), the coloured title keeps an emoji whole,
and changing screens repaints the terminal.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An answers file passed with --config (or an imported one) could set the
SSH user to -oProxyCommand=... and run it on this machine. '--' before
the destination and the repository stops ssh and git reading them as
options.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Since v0.5.26 the status play's shell block, which grew the stats
script, tripped Ansible's free-form argument splitter, so the Dashboard
and 'interzone status' failed on every server with only "^ column 7"
to show for it. The script now goes in as cmd:, a test runs
ansible-playbook --syntax-check on every play interzone writes, and an
Ansible error shows its [ERROR] line rather than the last line of its
output.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paths under the home folder are written ~/…, the start-fresh line no
longer runs off the screen with two full paths, and the errors met most
(no install yet, a service stopped) open with what to do about them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The checks can take 40 seconds behind one spinner that said only
"checking the server and DNS…". Now each stage's results appear as it
finishes, the line says which stage runs and for how long, and c stops
them, keeping what's found and saying they stopped early.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A new menu section takes one or more server names (or user IDs, or
URLs) and tests each from this computer as servers and apps would:
delegation (port, well-known, SRV, then 8448), signing keys and
software over federation, the client well-known and its CORS header,
the client API, login flows, the support file and Element X's needs.
The federation and client checks Review ran for this server now take
any domain, so both share them; Review also gains SRV delegation, key
expiry, the software, and login flows.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Matrix room is where a Matrix admin already looks. The alerts account
joins the room by its address or ID and posts m.text (so it notifies)
with an HTML body: the headline coloured red, green or purple by what it
says, problems and changelog entries as a list, and a footer naming the
server and time. The token travels in the 0600 vars file and env file
like the URL does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Changing the domain, the homeserver, or MAS on Synapse after install
ruins the server: IDs end in the domain, no homeserver reads another's
database, and MAS holds (or would need migrated) every account. The
config now records what the server was installed or imported as
(backfilled from the deploy history for older installs). The Server,
Homeserver and Components steps mark those choices locked and say why,
presets keep them, and writing vars.yml refuses answers that differ.
Uninstalling clears the record.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Onboarding a group meant registering people one by one. Add users can
now read a CSV (username, optional password, optional admin), generate
missing passwords, save them all owner-only beside it, and create the
accounts in one run through the playbook's matrix_user_creator, which
every homeserver and MAS supports and which leaves existing accounts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The dashboard only knew the moment it was open, so slow trouble (a disk
filling with media) went unseen. The status query now installs a tiny
interzone-stats timer when missing, which notes a sample every 10
minutes and keeps 30 days; every few minutes the dashboard reads them
at 30-minute steps, draws sparklines and estimates when the disk is
full from the last week's growth.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A mirror going down only showed when the next update failed, and new
changelog entries only when someone opened Updates. The alert timer now
checks every mirror the server uses (any answer below 500 counts as up)
and, once a day, sends the changelog entries newer than the ones
interzone seeded from the local checkout, the server's own first.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Spam and abandoned rooms had to be handled with curl against the admin
API. The Rooms screen lists every room biggest first, through the same
in-container admin script as Users, and blocks, deletes (block + purge)
or purges history older than N days, keeping local events.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A 2 GB server passes the old fixed checks and then swaps itself to death
running Jitsi; the estimate grows with what's turned on.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Typing every hostname into a DNS provider by hand is where setups go
wrong; most providers import zone-file lines.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A wrong /.well-known/matrix/client or a missing CORS header breaks apps
quietly, and Element X needs sliding sync, OAuth 2.0 logins and a call
server where older apps didn't.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Shows what an update would change on the server before it does. The new
playbook goes in a copy beside yours, borrowing its git objects, so a dry
run never leaves your checkout half-updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The changelog is where the playbook says what breaks and what to do; the
commit list doesn't. Entries that name your homeserver or link an enabled
component's doc page are marked and shown with their first paragraph.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Health only helps when someone is looking. A timer on the server, like
scheduled backups, checks for failed services, the homeserver not
answering, a certificate about to expire and a full disk, and sends once
when something breaks and once when it's fixed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A full disk is how small Matrix servers usually die, mostly from media
cached from other servers. Choice rows now wrap onto as many lines as
they need instead of going one per line, so the seventh tab fits.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The port list now reads the playbook's port variables (vars.yml, extra
vars, its defaults), so a moved port shows as moved. Review and
interzone check connect to each TCP port, telling a firewall that drops
it from a server with nothing listening, and once installed check
federation as a federation tester would, which also works in a blackout.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
just.md, playbook-tags.md, maintenance-postgres.md, maintenance-synapse.md
and uninstalling.md describe runs interzone had no way to start. A new
Maintenance screen (Manage's menu) has one tab each:
- Services: start, stop or reinstall everything or one service group
(start-all, stop-group, install-X,start-group); reinstalling everything
is setup-all, which removes turned-off components that install-all
leaves behind.
- Vacuum with any of the five presets, Upgrade Postgres (the old data dir
kept), Compress Synapse's state with its threshold.
- Tags: any tags with key=value extra vars, as just run-tags.
- Uninstall: the playbook's remove-all, after typing the domain.
Manage lists each under its group and opens the tab, and its Database
shell runs psql on the server in this terminal. Runs go through the new
ActionTags (tags checked against a safe character set, vars as JSON) and
ActionUninstall.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Choosing blackout on the Server step now points every source at the
in-country defaults (playbook and roles on Forgejo, images from zot,
packages and PyPI from infamous), not only the empty mirror fields.
A blackout deploy then checks them before using them and swaps in the
first known mirror that has everything: PyPI before installing Ansible,
the registry against every image the enabled services use (the one
missing fewest when none has all), the OS and Docker package mirrors
against the server's distro and release. Each switch is logged and sent
back as a Sources event, which the UI saves; vars.yml is rewritten when
it names the mirror. The run works on a copy of the config, as migrations
already did, so the UI never reads it mid-change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The playbook fails a deploy whose vars.yml still uses an old name, e.g.
matrix_livekit_jwt_service_container_additional_arguments. interzone now
reads the playbook's own old → new lists from its roles' tasks and moves
values, Fine-tune overrides and extra vars to the current names: when a
config is loaded (so the saved one is fixed) and when vars.yml is written
after the playbook update (for renames the update just brought).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Deploy screen had its own copy of FailureMessage's JSON "msg"
parsing. Using the shared one also drops MDAD's "Full error:" dump from
the failure shown under the error, as the self-check already did.
users.go names its "seen in the last 30 days" check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Logout and BackupLabel had no callers; the admin script's logout op
only served Logout.
- contains, keys and sortedKeys become slices.Contains and
slices.Sorted(maps.Keys(...)).
- One ExpandHome, in config, instead of a copy in deploy.
- meter reuses usageStyle; tests reuse runes and strconv.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conduit, Continuwuity and Tuwunel serve federation through the client
API router on 443: matrix_federation_public_port is 443 and their
separate federation router is off, so Traefik no longer opens 8448 and
the server check stops asking for it.
Tuwunel gets oidc_native_auth, its built-in OAuth login and sign-up page
(it needs the client well-known, so only with HTTPS). Continuwuity's
built-in OAuth is already on by default; Conduit has none.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Manage › Sign-up tokens (t) lists every MAS registration token with its
uses, last use and expiry, makes new ones limited by uses or days, and
revokes or restores them. mas-cli only issues tokens, so the list and
revoking go through MAS's table in the bundled Postgres, with the token
passed as a psql variable.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With Exim off the server sends no email, and MAS asks for one on
sign-up by default. The Public community preset, which promised open
sign-up but never turned it on, now opens MAS password sign-up with a
required token and no email. Other presets keep it closed.
The token is generated once and kept in the config. MAS keeps tokens
in its database, so each install makes it with mas-cli; MAS refusing it
as a duplicate means it's already there (checked against MAS 1.27.1).
It's shown after the install and on Manage, where Open/Close
registration now works for Synapse with MAS too. An imported setup
keeps sign-up open, with a new token.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The images tab asked only about the images of the enabled services. It
now lists every image the playbook can deploy, under "Needed by <domain>"
and "Not used by your setup", failures first in each. The tile and the
sidebar count the needed ones; unused images that are missing show in
the tile's note. The deploy pre-check still checks only the needed ones.
The cache moves to mirrors-2, as older results have no needed flag.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Users:
- A change shows on its row as soon as the server has made it, and the
list is refreshed behind it without locking the screen. Before, a
deactivation waited for the change and then for a full reload.
- The admin script asks for each person's rooms, sessions and email a
few at a time instead of one by one (60 people at 20 ms a request:
3.9 s → 0.7 s).
- With MAS, the admin list from mas-cli is fetched alongside the user
list instead of after it. Plays get a file name of their own, as two
of a kind can now run at once.
Dashboard:
- Refreshes itself every 5 seconds while it's open (30 after a failure),
and checks the certificates every 5 minutes or on r.
Both:
- A screen's answer now reaches it even if another screen is showing
when it arrives. Leaving the Dashboard mid-refresh used to leave it
waiting forever, so it never refreshed again until interzone restarted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Users screen gets a strip of totals (people, active in 30 days,
admins, new, rooms, media, bridged accounts) and a list with an
activity dot and how long ago each person was seen. The selected person
opens into a card: last seen, joined, sessions, rooms, media, email,
picture, flags (admin, deactivated, locked, shadow-banned) and their
actions as chips. On a wide terminal the card sits beside the list.
The admin script now counts rooms and devices for each person (up to
300), reads per-user media statistics and the server's room total, and
matches accounts against the appservice registrations in
homeserver.yaml, so bridge puppets and bots fold into a group per bridge.
New keys: / search, f filter (admins, active, inactive, deactivated),
o sort (last seen, name, joined, media), s sign out everywhere (MAS:
kill-sessions; otherwise every device but interzone's own is removed).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Mirrors: a new menu section next to Setup, Manage and Servers that
checks the playbook and every pinned role at its version on the roles
mirror, the registry and package mirrors in use plus the known ones,
and every container image the enabled services need.
- Dashboard: tiles for CPU, memory, disk and containers; OS, kernel,
Docker and swap; the heaviest containers; health checks, restarts and
network traffic. Cards sit side by side when wide and stack in the
compact layout.
- Menu sections fold independently and the open ones are remembered.
- Themes (interzone, Catppuccin, Nord, Gruvbox, Dracula, Solarized,
mono) switched with ctrl+y or -theme; ctrl+l cycles the layout.
- New Synapse servers and the Synapse presets come with MAS; untick it
on Components to opt out. Installed servers are left alone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Dashboard's certificates, interzone status, the DNS rows on Review
and in interzone check, and the move instructions say what each hostname
serves, e.g. "Element Web chat.example.net". The names come from the
components whose hostname it is; a host only Traefik knows about is
named after its containers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The certificate list was guessed from each component's usual subdomain of
the base domain, so components moved to other domains were missed or
listed under names nothing serves. The status play now reads the Host
rules from the Traefik labels of the matrix-* containers, which is
exactly what the playbook configured from vars.yml; before anything runs
behind Traefik, the usual hostnames are still guessed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With the Matrix Authentication Service, Synapse turns its password login
off, so signing in for user admin failed with "Unrecognized request".
interzone now gets a Synapse admin session from mas-cli on the server
(issue-compatibility-token; no password needed), reads admin rights from
MAS, and creates users, resets passwords, changes admin rights and
deactivates or reactivates accounts with mas-cli. Calls that carry a
password are no_log.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- View logs follows journalctl -f until esc instead of fetching 300 lines.
- Dashboard, Users and the logs' service list show what they loaded last
time (cached per server) and refresh in the background.
- Every Manage action has a one-letter shortcut; actions that change the
server right away need the letter twice.
- Review shows what changes in vars.yml since the last successful deploy;
x switches to the whole file.
- The header shows whether matrix.<domain> answers over HTTPS and how many
days its certificate has left, checked every minute from this machine.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Network and Certificates are sections of the Server form, and the
component settings are the second page of Components: the wizard is
Server, Homeserver, Components, Review.
- An installed server opens on Manage; esc there leads to Welcome.
Switching to an installed server lands there too.
- After update, check, restart, image check or scheduled backups
succeed from Manage, it returns there by itself after 4 seconds with a
toast; any key stays on the result.
- Rollback, restore, forgetting a server and user changes are confirmed
by pressing the same key or clicking the same row again; moving away
cancels.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The compact layout drops the sidebar and borders, opens the menu from
the header, wraps the key hints and narrows lists, forms, checks and the
deploy progress. It is picked automatically for narrow or portrait
terminals; the menu's layout switch and -layout override it.
A click anywhere on a list row now opens it. Manage actions that change
the server at once still take a second click.
ssh and Ansible share one persistent connection per server (10 minute
ControlPersist), so back-to-back actions skip the handshake.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Image pre-check: list the images the enabled services use and check
each in its registry for the server's CPU, before every install and
on demand (Manage, `interzone images`).
- Update preview: new playbook commits and changed component versions.
- Rollback: record each successful install's commit and answers; roll
back with a database backup first, pinning the playbook until the next
update.
- Self-update from the newest Forgejo release, verified with SHA256SUMS.
- Restore a database dump; scheduled backups via a systemd timer on the
server, and downloading them.
- User admin for Synapse through the admin API inside its container.
- Server dashboard: load, memory, disks, certificates, containers.
- Move to another server by streaming /matrix and reinstalling.
- Several servers, each with its own answers and playbook copy.
- Fine-tune: browse and override any homeserver role default.
- CLI: changes, images, status, restore, rollback, servers, self-update,
apply --latest.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
https://infamous.g0th.ir (an interzone-mirror) is now first for OS
packages, Docker (/docker) and PyPI (/pypi/simple). It carries Debian,
Ubuntu incl. ARM, Raspbian and Arch; RHEL-family and Fedora servers
pick one of the public mirrors, which stay listed as alternatives.
TestCatalog now requires some known Docker mirror per distro instead of
the default covering all. The container test gains self-hosted cases
(INTERZONE_SELFHOSTED_MIRROR) that install the playbook's packages from
the mirror on Debian, Ubuntu and Arch.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The OS package step now handles APT (Debian, Ubuntu incl. ports,
Raspbian), dnf (AlmaLinux, Rocky, CentOS Stream, Fedora, EPEL) and
pacman (Arch), rewriting only repositories the mirror carries and
warning about the rest. On RHEL-family servers it writes docker-ce.repo
pointing at the Docker mirror, installs EPEL from the mirror, and lets
dnf skip unreachable repositories.
The mirror catalog records which distros each mirror carries; checks
probe per-distro indexes, and the pre-deploy check matches the server's
distro against the chosen mirrors. CDN.ir becomes the default Docker
mirror (all distros) and Hostbaran the default OS mirror; Runflare's
Linux mirror is dropped (402 Insufficient credit).
Tests: offline probe/regex/needs tests, live catalog test
(INTERZONE_MIRROR_TESTS=1) and a container test running the play on
nine distro images (INTERZONE_CONTAINER_TESTS=1).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Catalog of APT, Docker CE and PyPI mirrors in Iran, a content-aware
probe (fresh security Release files, Docker Release, ansible-core in
the PyPI index), 'interzone mirrors' to test them all, and a network
test gated by INTERZONE_MIRROR_TESTS=1.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Review now checks the server before deploying (SSH, root access, OS,
CPU, Python, memory, disk, ports 80/443/8448) and resolves every DNS
record against the server's addresses. Enter asks twice when a check
failed.
- Deploys end with the playbook's self-check; results list the services
that answered and what failed. Certificate validation is turned off for
self-signed setups.
- Welcome offers a Manage menu once a server is installed: update,
self-check, restart, add a user, close/open registration, back up
Postgres to this computer, and view any service's logs.
- `interzone bundle` packs the playbook with its roles, Ansible's Python
packages and the binary for machines without internet; `unbundle`
installs it, and deploys fall back to the bundled copy.
- `interzone apply` and `interzone check` run without the TUI.
- Invalid YAML in the extra vars and YAML fields is caught on Review.
- Screens are roomier: padded body, spaced form fields and sections,
two-line component rows, wider cards and separators.
- The Server step no longer turns the domain matrix.org into org.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Interactive wizard (Bubble Tea, Bubbles, Lip Gloss) that picks a homeserver,
opts into any MDAD component, writes the inventory and runs the playbook.
Supports in-country git, container registry, Docker, APT and PyPI mirrors
for installing during an internet blackout.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>