Commit Graph
91 Commits
Author SHA1 Message Date
vvvomitandClaude Opus 5.5 77f8335e6b Rooms: names can't garble the screen, and no screen leaves rows behind
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>
2026-10-29 16:38:37 +03:30
vvvomitandClaude Opus 5.5 57ea4625c8 Plain mode: icons go, so a screen reader doesn't read them out
-plain promises ASCII, but the menu's and actions' icons (▦ ◷ ⚑ ...)
and the new ▲/▼ more lines were left as they were. Decorative icons
become spaces; ▲ ▼ ◂ ⊘ become ^ v < x.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 16:08:04 +03:30
vvvomitandClaude Opus 5.5 1d8ebaea91 Inventory: a sudo password with ' in it reaches Ansible intact
hosts was written with YAML quoting ('' for a quote), but Ansible splits
inventory lines like a shell, so it read it'' as its and becoming root
failed. Values are now shell-quoted, the SSH host, user, port and key
too, and the importer reads lines back the same way Ansible does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 15:57:33 +03:30
vvvomitandClaude Opus 5.5 06dbed58b9 ssh and git: a user, host or URL starting with - isn't taken as an option
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>
2026-10-29 15:55:18 +03:30
vvvomitandClaude Opus 5.5 704cd39bb1 CLI: every command's -h says how to use it; a missing file says so plainly
check, dns, status, images, changes and self-update printed Go's bare
'Usage of X:', and import/unbundle/restore with a wrong path printed the
raw 'stat ...: no such file or directory'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 15:53:57 +03:30
vvvomitandClaude Opus 5.5 75a8724be0 Tiny windows: forms no longer crash, and wide falls back to compact
A form given a negative height panicked (Backups, Alerts, Move, Server
in a small window), and a forced wide layout overflowed below 60x17.
TestTinyWindows opens every screen at small sizes in all layouts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 15:53:22 +03:30
vvvomitandClaude Opus 5.5 f0f838f106 Small fixes from a full pass
- 'interzone rollback N' with no history ended mid-sentence.
- Restore and Roll back offered enter with nothing to pick.
- The typed confirmations (Uninstall, deleting a room) showed what to
  type as a hint, which plain mode can't tell from typed text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 15:41:03 +03:30
vvvomitandClaude Opus 5.5 124424484a Sidebar: scrolls to where you are instead of pushing the header off
With several menu sections open in a short window the sidebar grew
taller than the screen, which pushed the whole layout up a line and
hid the header. It now shows the part around the current entry, with
more-above and more-below marks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 15:41:03 +03:30
vvvomitandClaude Opus 5.5 00216f72f7 Dashboard: the status play parses again; every play is now syntax-checked
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>
2026-10-29 15:41:03 +03:30
vvvomitandClaude Opus 5.5 2cdca76950 Shorter messages: ~ for the home folder, and errors say what to do first
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>
2026-10-29 15:07:40 +03:30
vvvomitandClaude Opus 5.5 0b99d31d91 Review: checks show up as each stage ends, with a timer, and c stops them
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>
2026-10-29 15:06:15 +03:30
vvvomitandClaude Opus 5.5 0bef529132 Confirmations: one look, and typing for what can't be undone
Each confirm panel wrote its keys its own way ("enter delete", "enter
again to restore", "x again to forget"), and start fresh took only R.
They now share one line, y and enter confirm everywhere, and deleting a
room, the one action besides Uninstall that can't be undone, asks for
the word delete to be typed instead of a second key press.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 15:02:53 +03:30
vvvomitandClaude Opus 5.5 fee89602fd One name per place: the menu and Manage's actions say the same
"Updates" opened "What an update brings" from "See what an update
brings", "Tokens" was "Sign-up tokens", "Rollback" was "Roll back"
and Maintenance's "Disk" was "Disk space". Each now has one name, and
ctrl+k lists each place once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 15:01:10 +03:30
vvvomitandClaude Opus 5.5 ac89cb058e ctrl+k goes to any screen or Manage action by name
Thirty-odd places spread over a sidebar, a Manage list and Maintenance
tabs are hard to find by browsing. Type a few letters of one and enter
goes there, the way the menu would: a running deploy or a server not
installed yet stops it with the same message, and an action that
changes the server waits for a second enter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 14:59:12 +03:30
vvvomitandClaude Opus 5.5 3cace1ae84 Every Manage action has a key, and ? lists all keys
Alerts, Rooms, Disk, Vacuum, Postgres, Compress, the database shell,
self-update and uninstall had no shortcut, and the wide layout had no
way to see keys the footer cut off. ? now opens the key sheet in any
layout (Manage's actions included), and the footer keeps "? all keys"
while the screen's last hints give way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 14:56:28 +03:30
vvvomitandClaude Opus 5.5 f4bf4d9fb6 Review: enter asks before deploying, and the page scrolls as one
One enter started a deploy on a screen where enter opens things
everywhere else. Now it shows what the deploy will do (install or
update, where, how long, what changes, which checks failed) and only y
starts it.

The preview had its own scroll box that vanished once the checks grew,
while ↑↓ kept scrolling it unseen. The page (summary, checks, ports and
the preview) now scrolls as one, and x and z scroll to the preview.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 14:50:26 +03:30
vvvomitandClaude Opus 5.5 5565945803 Choices show which is picked with ◉/○, not only by colour
In plain mode, for screen readers, or in a terminal without colours,
every option looked the same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 14:48:20 +03:30
vvvomitandClaude Opus 5.5 cd5ddf6f81 Review: no crash after scrolling a hidden preview; z makes room for DNS
With the checks, ports and estimate Review got tall enough that the
vars.yml preview doesn't fit a 45-row window and is hidden. ↑↓ still
scrolled it, at a negative height, past its end, and the next taller
window panicked drawing it. Its height and offset are now kept in range.
z put the DNS records into that hidden preview, so it seemed to do
nothing; now the left column is cut short to show them.

choiceField panics when labels and choices differ in number, so an
option that can't be picked (as Matrix room was) fails every test that
opens its screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 06:18:51 +03:30
vvvomitandClaude Opus 5.5 b7a32cf44e Alerts: Matrix room can actually be chosen
The format field got the Matrix room label but not its choice, so the
screen offered only text and JSON and the Matrix fields never showed.
The script and its tests were fine; nothing tested the screen picking
it, which the new test does from the keyboard.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 06:08:30 +03:30
vvvomitandClaude Opus 5.5 94d5ac8d8c Test: any Matrix servers' well-known files and endpoints
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>
2026-10-29 05:53:18 +03:30
vvvomitandClaude Opus 5.5 a193f84ec9 Start fresh: R on Servers, or --reset, moves interzone's folders aside
--reset only showed empty answers for the active server; its history,
locks, the other servers and the playbook copies stayed, so it was never
a clean start. Now both move the config and data folders to
*.old-<time> and open the wizard. Nothing is deleted: the folders hold
every server's secrets and downloaded backups, so they can be put back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 05:43:32 +03:30
vvvomitandClaude Opus 5.5 adde5b48ac Alerts can post into a Matrix room as formatted messages
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>
2026-10-29 05:38:17 +03:30
vvvomitandClaude Opus 5.5 1412810103 Lock the setup choices a running server can't survive changing
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>
2026-10-29 05:31:43 +03:30
vvvomitandClaude Opus 5.5 e0a4625168 Plain mode for screen readers and logs: -plain or INTERZONE_PLAIN=1
Screen readers read every box-drawing character and re-read the screen
on each spinner frame, and recorded sessions fill with colour codes.
Plain mode drops colour, swaps box, bar, sparkline and marker
characters for ASCII ones of the same width in the final frame, so
layouts don't move, and keeps the spinner still.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 05:18:36 +03:30
vvvomitandClaude Opus 5.5 5560782fe8 Add users: many at once from a CSV file
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>
2026-10-29 05:16:13 +03:30
vvvomitandClaude Opus 5.5 6783a3b148 Dashboard: 30 days of load, memory and disk, and when the disk fills
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>
2026-10-29 05:13:17 +03:30
vvvomitandClaude Opus 5.5 2428a68acf Alerts also watch the mirrors and the playbook's changelog
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>
2026-10-29 05:09:46 +03:30
vvvomitandClaude Opus 5.5 37d30a6ecc Rooms: list Synapse's rooms, block, delete, or delete old history
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>
2026-10-29 05:04:40 +03:30
vvvomitandClaude Opus 5.5 269a348515 Review estimates the memory and disk the setup needs, and checks the server
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>
2026-10-29 04:59:51 +03:30
vvvomitandClaude Opus 5.5 9a75789ca1 DNS records as zone-file lines: Review › z and interzone dns
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>
2026-10-29 04:58:43 +03:30
vvvomitandClaude Opus 5.5 817dc34ce8 Check the server as apps see it: client well-known and Element X readiness
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>
2026-10-29 04:56:19 +03:30
vvvomitandClaude Opus 5.5 2b981f8dff Updates › d: dry-run the update in check mode, in a copy of the playbook
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>
2026-10-29 04:54:44 +03:30
vvvomitandClaude Opus 5.5 0181775300 Server step: federate only with listed servers, or never with some
Private and small servers often want to talk to a few others, not the
whole federation; the playbook has the settings, but only as variables.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 04:52:24 +03:30
vvvomitandClaude Opus 5.5 fe3cceff5c interzone check: name the component first in the port list
Coturn's ports overflowed the column.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 04:45:52 +03:30
vvvomitandClaude Opus 5.5 5f5910bd83 Updates shows the playbook's new changelog entries, yours first
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>
2026-10-29 04:44:04 +03:30
vvvomitandClaude Opus 5.5 4d902b7b95 Alerts: the server checks itself and tells ntfy or a webhook when that changes
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>
2026-10-29 04:41:18 +03:30
vvvomitandClaude Opus 5.5 7a127ada16 Maintenance › Disk: what uses the disk, Docker prune, remote media retention
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>
2026-10-29 04:37:27 +03:30
vvvomitandClaude Opus 5.5 ee4febfe7e Check the ports and federation from outside, with the ports the settings give
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>
2026-10-29 04:33:26 +03:30
vvvomitandClaude Opus 5.5 87d8f39301 Review lists the ports a firewall must let in for the enabled components
Docker opens them on the server, but a provider's firewall or a router in
front of it doesn't, and the playbook's docs spread them over each
component's page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 04:22:31 +03:30
vvvomitandClaude Opus 5.5 c6930b12df Maintenance from the playbook's docs: services, vacuum, upgrade, tags, uninstall
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>
2026-10-27 22:19:25 +03:30
vvvomitandClaude Opus 5.5 c7c384402f Blackout mode picks mirrors that carry what the server needs
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>
2026-10-27 22:07:20 +03:30
vvvomitandClaude Opus 5.5 5b9bfb5450 Rename settings the playbook has renamed, on load and on deploy
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>
2026-10-27 19:50:01 +03:30
vvvomitandClaude Opus 5.5 f6d678e17d Plain-text extra vars fill their half of Settings
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 16:59:19 +03:30
vvvomitandClaude Opus 5.5 d0b55a3f6e Extra vars sorted by playbook role; plain-text toggle
Advanced now sorts the extra vars by the playbook role that defines
each one (read from the roles' defaults, as Fine-tune does), so
Traefik, Docker, LiveKit and the rest get boxes too, named after
interzone's component where there is one. Name prefixes are the
fallback without a playbook. Only roles that hold vars get a box, plus
Other for new ones. ctrl+o, or the button above the boxes, switches to
one box of plain text and back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 16:57:30 +03:30
vvvomitandClaude Opus 5.5 f393fcd14e Settings in two halves; extra vars boxed by component
Advanced moves to the right half of Settings, beside the details;
tab runs off one side onto the other, and narrow screens show one side
at a time with tabs. The extra vars are split into a box per component
(homeserver first, Other last) by the longest matching variable
prefix, comments going with the key under them, and joined back on
leave. The wheel scrolls through boxes too, now that the last one no
longer moves on to Review.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 16:47:06 +03:30
vvvomitandClaude Opus 5.5 f9b5c91292 Settings is its own step; scrolling the last box stays put
Fill in the details was a second page inside Components. It is now a
step of its own between Components and Review, so it shows in the
sidebar and esc goes back to Components.

Down on the last line of the last box (Advanced's extra vars) counted
as finishing the form and moved on to Review. The wheel sends down,
so scrolling to the bottom jumped steps. It now stays on the box;
enter, tab and ctrl+n still move on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 16:39:01 +03:30
vvvomitandClaude Opus 5.5 fdc1f32bf7 Pick each component's address; extra vars no longer clash
Components with their own subdomain get a field under Addresses on
the settings page, showing the default; any hostname can go there and
the DNS check follows it. Imports fill it from vars.yml.

A key in the hand-written extra vars that interzone also writes (the
MAS sign-up switches on servers imported before interzone handled
them) was written twice. That made vars.yml unreadable to the DNS
check, which then asked for element.~ and the like and reported
them as not resolving. Hand-written keys now win and appear once,
which is also what Ansible did with the duplicate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 16:23:08 +03:30
vvvomitandClaude Opus 5.5 37f0ab37d4 Use slices for membership checks; gofmt backups.go
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 02:14:09 +03:30
vvvomitandClaude Opus 5.5 60f6dcda69 importer: use maps, slices and reflect directly
Drop mergeKeys and sameValue in favour of maps.Clone/Copy and
reflect.DeepEqual; drop duplicate keys with slices.DeleteFunc.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 02:13:26 +03:30
vvvomitandClaude Opus 5.5 d43e68ddc1 Share Ansible failure parsing; drop an unused regexp
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>
2026-10-27 02:11:47 +03:30