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>
The wiki's guide shots came from TestShot with no command to make
them, and the wiki now has a gallery of every screen: shots.sh wiki
renders both into a wiki checkout, render.py fits an image into an
exact WxH, and the gallery's empty screens get sample data.
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>
Both are drawn from the layout tests' sample data by shots.sh users,
like users.png, so they need no server; the map's shot adds nodes
across Iran to the host-map sample.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Its label was always dropped: the gulf is narrow, and at its middle the
coast or a town's name was in the way. A sea's name now takes the nearest
free spot.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every 4 seconds a ring spreads from the node, bright at first and
fading as it grows, with two fainter echoes behind; peers light up as
it reaches them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It used about 5-7% of a core: each frame tested every cell for being in
Iran, blended colours from scratch and had lipgloss render each run.
The land is now drawn once per size and theme, blends are remembered,
runs are wrapped in each style's codes, and the map's rows are joined to
the details' directly. 3.5 ms a frame to 0.27 ms; under 1% of a core.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The address's town can still be wrong, and the user knows better. The
choice is kept in host-place in the config directory.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DB-IP puts 58% of Iran's IPv4 at a few points in Tehran when it doesn't
know the town, so a node in Bushehr on Khalij Fars showed in Tehran. A
network whose placed ranges mostly sit in one other province now has its
unplaced ones there too; national networks stay as they were.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
That node needs no setting up, so the form only got in the way. The map
fills the screen with provinces, cities, a radar sweep, comets along the
links and ripples where peers come and go; beside it the node's numbers,
each peer's place, network, latency and traffic, and who came and went.
s shows the form for hosting elsewhere; esc returns. Tests no longer ask
this machine whether it runs the mirror.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DB-IP Lite's ASN data, kept only for Iran's ranges, names each peer's
network (TCI, MCI, Irancell...); Natural Earth's 1:10m provinces draw
inside the border.
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>
DB-IP Lite (CC BY 4.0) for Iranian towns and other countries, Natural
Earth for the borders; scripts/geo/build.py makes both.
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>
Slack, Messenger, Instagram, Bluesky, both LinkedIn bridges, Google
Chat, Google Voice, iMessage, LINE, GroupMe, both Steam bridges,
WeChat, Rageshake and Cactus Comments: a server on interzone's mirror
or swarm couldn't pull them, so offering them only set up failures.
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>
A pin that gets no new block for 20 minutes gives up, so a publish the
swarm can't serve whole no longer holds the node until the next hour
never comes. A fresh daemon has no peers yet, so the name lookup is
retried for a few minutes instead of failing the first run.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Read every 5s while the screen is open, and a second after the form's
server changes, so a server that already hosts shows its numbers.
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>
It runs on its own target, apart from the active server's answers, so
anyone can open interzone and help the swarm.
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>
It hides the git and registry fields the swarm replaces, asks whether to
seed with no answer preselected, and shows an IPFS badge.
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>
interzone-mirror publishes one signed index.json per run, naming the
IPFS directories that hold the packages, images, git repos and binaries.
Verify checks the signature and the shape of every value that later ends
up in a URL or a command. The swarm key ships here on purpose: it keeps
the public IPFS network from seeing who holds what, not a secret.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The first piece of fetching everything over IPFS: on the server, Docker
pulls the playbook's images from it, and it reads them through the local
IPFS gateway. Manifests are checked against the layout's digests.
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>
A deploy whose saved answers can't be read, or answers that can't be
saved, made enter on the rollback prompt do nothing at all. The reason
now shows on the status bar.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Only some background results were routed to their own screen when
another one was showing; the rest were dropped by whatever screen was
up. Leaving Mirrors, Review, the Server step's source test, Fine-tune's
defaults or Updates mid-check left it spinning for good. Leaving
Users after "new password" lost the password, shown only once, after
the server had already changed it, and kept every user action blocked.
An import finished in the background never switched to the server.
mirrorsMsg, checksPartMsg, checksMsg, userOpMsg, defaultsMsg,
changesMsg, importReadMsg, importSavedMsg and servicesMsg now name
their screen like the others.
- pgup went back from every screen, so the deploy log, the logs view
and Fine-tune's lists never got to scroll with it. Past the wizard it
now goes to the screen, as pgdown does; ctrl+p still goes back.
- Components bound ctrl+k to "up", but ctrl+k opens Go-to everywhere
first. The binding is gone, and the cursor can't go to -1 when a
search matches nothing.
- Forgetting a server showed no error when it failed: enter() cleared
it straight after.
- "The database shell ended: exit status 1" was shown in green.
- Unused gradientLines and cPanel removed.
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>
Like the CLI, it now saves the answers it replaces next to the server's
own file instead of in one shared config.before-rollback.json, and if
that copy can't be written it leaves the answers alone rather than
overwriting the only copy.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Go's flag package stops at the first argument, so 'restore dump.sql
--yes' still asked (and failed silently under cron), 'rollback 3
--quiet' wasn't quiet and 'import PATH --dry-run' printed the usage.
Every command now parses with a helper that keeps reading options after
the arguments; "--" still ends them. restore and rollback reject extra
arguments, 'servers rm' without a name prints the usage, and Usage
mentions 'servers rm'.
Rollback also exits 1 when the self-check after it finds problems, the
way apply does, and keeps the answers it replaces in
<server>.json.before-rollback: config.before-rollback.json was shared by
every server, so rolling back one overwrote another's copy.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ProfilePath maps "" to config.json, and RemoveProfile only refused
"default" and the active server, so 'interzone servers rm' (or
'servers rm ../config') deleted the first server's answers and printed
"✓ Forgot". RemoveProfile and SetActive now refuse anything that isn't a
valid server name, and 'servers use' checks the name the same way.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
For slow links, and for shots.sh: a screen that moves by itself made its
press think every key had landed at once, and screenshots shouldn't depend
on the moment they're taken.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Frames tick every 100 ms only while the screen showing moves, and never in
plain mode; frame 0 is the still picture the layout tests draw. The deploy
bar also takes the theme's colours now instead of the default theme's.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>