Someone who only hosts for the IPFS swarm had no way to stop but a
systemctl line on the server. ctrl+x disables the node and its hourly
update; ctrl+d, after asking, also deletes them, everything they
downloaded and their user. interzone-mirror's own node is docker's,
so neither is offered there.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Media alone missed most of it: on a 12 GB database the biggest room's
history was 2.3 GB beside 20 MB of files. Each table with rooms in it is
now split among them by their rows there, which adds up to the tables'
size on disk with their indexes and takes seconds, where measuring every
row took minutes. Size, on the card and as the default sort, is history
plus media; without the database it falls back to state events.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Admins asked which rooms fill the disk. Synapse's admin API lists a
room's media but not their sizes, so the admin script asks the database,
read only, in one query: every room's creation time, and the files its
messages link to with their size on disk (remote ones as cached). An
encrypted room's files are hidden from the server, and the card says so.
o sorts by Synapse's size, members, newest or media, keeping the cursor
on its room; the list shows the total. If the query fails, the list
loads as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The support well-known was only counted ("lists 2 contacts"); someone
testing a server they can't reach wants the contacts themselves. Each
now gets a row with its role, Matrix ID and email, and the support page
its own.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Testing a server from Iran mostly asks: is it filtered, where is it, does
it answer, and is it safe to point people at. So Test now resolves each
name (flagging the filter's 10.10.34.x), places each address with the geo
data, tries IPv4 and IPv6, times the client API, reads each certificate
and whether TLS 1.0/1.1 still work, and checks HSTS. It also asks the
server whether sign-ups are open, counts its public rooms, names its
Matrix features, and warns when its software is older than the playbook
installs. ctrl+o copies the results for a support chat (and saves them),
ctrl+r tests again every 30 s while someone fixes things.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The node reads its peers and each one's bitswap ledger; links between
peers are a guess and the legend says so.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An IPFS deploy there uses the mirror's node and gateway, Host refuses, and
the Server step drops the share question: two daemons would fight over 4001.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It's read through docker, without sudo, and pins only the root, so every
part under a pinned root counts as kept.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Four switches instead of everything/images only; the statistics follow
the parts picked, and say when the timer checks next.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One script asks systemd and kubo for state, peers, traffic, bitswap,
disk and the followed publish's parts; part sizes come from the root's
own block so the total is known before anything arrives.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ActionHost joins the swarm as a seeder and installs a timer running the
new ipfs-follow command, which resolves the newest publish, checks its
signature and pins it (everything, or only the images), then lets the
previous one go. It refuses a publish older than one already hosted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Its publish and entry node get their own section whatever the network
situation, so the swarm can be checked before choosing it. Preflight
uses the same probe.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Unbundle copied the IPFS daemon next to the playbook, which for a second
server isn't where kuboBinary looks.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With the IPFS source, the run first installs kubo on the server, joins
the private swarm, finds the newest signed publish (by IPNS, or over
HTTPS if the swarm is slow) and serves its OCI layout as a local
registry. The playbook, roles, packages and images then all come
through the server's gateway, an SSH forward reaching it from here.
Seeding is a choice the setup asks: seeders keep the daemon running and
listen on 4001, others stop it after the run. The publish's playbook
commit is pinned, so the roles match the images it carries.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Ansible runs every value through Jinja, so an admin or sudo password
with "{{" or "{%" failed the deploy, and one with "{#…#}" was quietly
shortened, creating the admin with a password other than the one
saved. Missing() now names them before the deploy starts.
- mas-cli read a new password starting with "-" as an option. The
password goes as --password=… and the user name after "--".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The dashboard, mirror, review, users, rooms, tokens and update checks
copied the config with *s.cfg, which still shares the Components,
Values and Overrides maps. They read those maps (VarsYAML, DNSRecords)
while the UI writes them: leaving Settings or saving a Fine-tune value
during a check could abort the app with "concurrent map iteration and
map write". config.Clone copies the maps and slices too, and the deploy
runner and history snapshot use it as well.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Every playbook ran with ANSIBLE_HOST_KEY_CHECKING=False, so anyone in
the middle could pose as the server and be handed the sudo password
and every secret in vars.yml. Ansible's ssh now uses
StrictHostKeyChecking=accept-new, like interzone's own ssh calls: a
new server is trusted on first sight, a changed key stops the run.
- The ssh connection-sharing folder in /tmp is only used when it's this
user's own and closed to others; someone else could have made it
first and planted a socket.
- Registering a user passed the password in --extra-vars, readable with
ps. It goes through a 0600 vars file, like the other admin actions.
- The restore source and backup destination are passed as JSON, so a
path with a space no longer breaks them.
- The update preview's git fetch puts "--" before the URL, as every
other git call does.
- A domain's backup list no longer includes dumps of another domain
that starts with the same name and a dash (a.org vs a.org-b.net).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
copyData waited for the sender first, which closes the pipe the
receiver is still reading: with a slow receiver the last part of the
archive was lost after the old server's services were stopped, leaving
a partial /matrix that also blocked a retry. And if the receiver died
(a full disk), the sender blocked forever. The receiver is now waited
for first; if it failed, the sender is stopped and both servers' last
words are shown. The new inventory is written with WriteSecret.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
exec scanned the command's output with a 1 MB line limit. Ansible's
"fatal: ... => {json}" dumps can be longer; the scanner then stopped,
nothing read the pipe again, the command blocked writing to it, and
even ctrl+c only got as far as "aborting…". Long lines now come in
pieces, whatever is left is drained, and Wait gives up on leftover
children after 10 seconds.
serverNeeds indexed the first word of the os-release ID, so a server
(or local machine) without /etc/os-release crashed the whole app when
its mirrors were checked. It now says it doesn't know the OS, as for
any other unknown one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
extract checked each entry's path as a string, but not the links earlier
entries had already made: "l1 -> .", then "l1/l2 -> ..", then "l2/evil"
each pass on their own and together wrote evil next to the folder. A
crafted bundle, passed hand to hand during a blackout, could have
written anywhere the user can, ~/.bashrc included. Entries are now
written through an os.Root, which won't follow a link out.
A bundle also no longer takes along the .interzone-vars-*.json files an
admin action leaves in the inventory if it's killed; they hold the
admin's password.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Saving:
- config.json, presets.json, the imported copies and the inventory's
vars.yml and hosts are written by config.WriteSecret: to a temp file
that's synced and renamed into place, so a crash or full disk leaves
the old file instead of half of the new one, and always 0600. Writing
in place kept the mode of a file that was already 0644, as a hand-made
inventory or a restored backup often is. Links are followed, so a
linked inventory stays linked.
- A config.json that isn't valid JSON is moved aside to
config.json.broken-<time> before the wizard starts afresh. Before,
the fresh answers' new secrets overwrote it on the next save, and a
redeploy locked Synapse out of Postgres.
- Importing over a server whose answers can't be read now stops instead
of replacing them without a .before-import copy.
- The imported vars file is kept as imported/<name>/vars.yml, which is
where ImportedVars reads it, whatever it was called.
The base domain:
- It has to be a hostname. It becomes directory names in the
inventory, so 'https://example.org' made nested directories, and an
imported matrix_domain of '../../tmp/x' wrote outside the playbook.
The Server step drops a pasted https:// and trailing slash; Missing()
and the importer refuse anything else.
vars.yml:
- A one-line Fine-tune value that is a block list or mapping ("- a",
"a: b") is written under the key rather than after it, which wasn't
YAML.
- A pasted "|" block in a YAML field is indented like an override's.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>