Skip to content

Web UI and TUI

Vandelay offers two interactive front ends for migration projects, besides the vandelay migrate commands: a web UI served by vandelay serve, and a terminal UI started with vandelay tui. Both walk through the same steps and operation screens, edit the same plan and host the project’s runner themselves, as described in Runner. This page lists their options, how to sign in and unlock a project, and the keys of the TUI.

vandelay serve serves the migration web UI. It is part of every Linux and macOS build; the Windows build does not include it.

vandelay serve takes either --root or --project, and accepts the following options:

OptionMeaning
--root DIRServe every project under DIR, with a projects page from which projects are created and opened.
--project DIRServe this one project.
--bind ADDR:PORTAddress to listen on.
--tlsServe HTTPS. Without --tls-cert, a self-signed certificate is generated and its SHA-256 fingerprint printed.
--tls-cert PEM, --tls-key PEMCertificate chain and private key; --tls-cert implies --tls.
--password-file FILEFile holding a sign-in password, accepted besides the one-time token.
--public-url URLURL that browsers use to reach the server, when it differs from the bind address.

The web UI listens on a loopback address unless told otherwise, and plain HTTP is allowed only there. Binding any other address requires --tls, and binding the unspecified address (0.0.0.0 or ::) also requires --public-url, because the server then cannot know the host name that browsers will use. The following errors stop the server before it starts:

  • binding <addr> needs --tls: only a loopback address may serve plain HTTP
  • binding the unspecified address <addr> needs --public-url naming the host browsers use
  • --public-url <url> must be an http or https URL with a host and no path, query or credentials
  • --public-url <url> uses http while the server uses TLS, or https without --tls
  • cannot bind <addr>: <error>, with exit code 2; the other errors exit with code 1.

The public URL also defines the origin that the web UI accepts requests from, so a page loaded under another name is refused with This request was refused; reload the page and try again.

The following command serves every project under /srv/migration over HTTPS on all addresses, with a self-signed certificate and a reusable password:

Terminal window
vandelay serve --root /srv/migration \
--bind 0.0.0.0:8443 --tls \
--public-url https://vandelay.example.org:8443 \
--password-file /root/vandelay-web-password

On start, the server prints its address, a sign-in URL and a one-time token on standard error, and with a generated certificate also its fingerprint:

vandelay web UI listening on <addr>
sign in: <base-url>/login#token=<token>
one-time token: <token>
self-signed TLS certificate, SHA-256 fingerprint: <fingerprint>

Opening the sign-in URL signs in at once; the token travels in the URL fragment, which the browser never sends to the server, and the page removes it from the address bar afterwards. The token can also be pasted into the One-time token field of the “Sign in to vandelay” page. It is accepted once: the first successful sign-in retires it, a sign-in with the password included. A later sign-in therefore needs the password from --password-file, whose first line is the password, or a restart of the server, which prints a new token. A failed attempt answers The token or password is not valid, or the token was already used. after a short delay.

With a generated certificate, the browser warns that the certificate is not trusted. Comparing the fingerprint shown in the browser’s certificate details with the one the server printed confirms that the connection reaches this server. The certificate is valid for localhost, the bind address and the host of --public-url.

A session ends after an hour without activity and in any case twelve hours after sign-in, and the server keeps at most 64 sessions. An ended session shows Your session ended; sign in again. The Sign out button in the header ends the session at once.

With --root, the projects page lists each project with its scope, its next step and its runner, and the “New project” tile creates one. A project held by another Vandelay process, such as a TUI or a CLI runner, opens read-only with This project is in use by another vandelay process; it is shown read-only. A copied project directory cannot be opened next to its original, because both carry the same project id.

The header of a project shows the runner chip (“Runner: embedded” once the web UI runs the project), the link to pending runner requests, the theme toggle and Sign out. The page head of a form step holds the Plan tool, which downloads plan.toml, uploads a new one, reloads it from disk or discards changes made on disk.

The web UI accepts every field that the CLI accepts, including paths, env: and file: references, server file access and SSH destinations. Paths and references are resolved on the host that runs Vandelay, with the rights of the user that started vandelay serve. A signed-in session can therefore make Vandelay read any file or environment variable that user can read and send it to a server the session names, which is why the web UI is only for the administrator of that host.

A finished migration opens read-only on Verify and report, with the card badge “Finished”: The migration is finished, so this project is read-only: its settings can no longer be saved and detection does not run. Verify and report and the downloads stay available. No runner starts for it, so the page head shows no Unlock the secret store and the web UI never asks for its passphrase or creates a secret store for it. A request that would change the project, such as saving a step or uploading a plan, is refused with Migration finished: this project is read-only.

The project’s runner needs the secret store, so it starts only once the store is unlocked. On a project without a runner, the page head shows Unlock the secret store. For a new project, it asks for a Passphrase and Repeat the passphrase, and creates the store; afterwards it asks for the passphrase alone. A wrong passphrase is refused with secrets.vault: wrong passphrase or key file, or the file was modified; the step and the fields typed on it are kept. The store holds the temporary passwords that Vandelay sets on the accounts it creates.

A secret store created with a key file cannot be unlocked from the web UI. It is unlocked from the TUI or the CLI with --key-file FILE, or, for a runner that is already running, with vandelay migrate secrets unlock --key-file FILE.

Secrets set to ask are requested by the runner when it first needs them. The Pending requests link opens “Requests from the runner”, which lists each request with the secret’s name and where the answer is sent, for example Master password is sent to mail.old.example.org (source section of the plan). Entering the value and clicking Send answers it. The runner keeps the answer in memory until it stops, the server refuses it, or that section of the plan changes, and then asks again. A Microsoft or Google device sign-in appears there too, with the URL to open and the code to enter.

A request ends after a few seconds when nobody follows it, so a page of the web UI, the TUI or the CLI on the host must stay open while the runner asks. An answered or ended request shows This request is no longer pending: it was answered or it ended.

The “Downloads” block on the cutover screens and on “Verify and report” fetches the files described in Reports and exports: the report in JSON and HTML, the temporary passwords, the user list in CSV, JSON and LDIF, and the audit log. The temporary passwords are encrypted with a passphrase of at least 12 characters entered in the form, and the LDIF export asks for its base DN. A download that is not available yet shows the reason instead of a link.

vandelay tui runs the migration console in a terminal. It needs a terminal on standard input and output, and exits with error: the interactive console needs a terminal on stdin and stdout otherwise.

OptionMeaning
--root DIRList and create projects under DIR; the current directory when neither option is given.
--project DIROpen or create the migration project in DIR.
--key-file FILEUnlock the project’s secrets with the key in FILE instead of a passphrase.
--theme PALETTEColour palette: dark, light, ansi16 or mono.
--no-colorNo colours; also set by NO_COLOR or TERM=dumb.

Without --theme, the TUI uses the dark palette on terminals that report true colour in $COLORTERM, and the 16-colour palette otherwise. ^t cycles through dark, light, 16 colours and mono while it runs.

The header shows the project and its runner. Below it, the navigation row shows the wizard steps and the five operation screens, which the number keys open. Each panel shows Back and Next in its border, and the footer lists the main keys of the current context with one-word labels; ? or F1 opens the full list. A step’s guides are collapsed behind g, and its advanced fields behind a.

The TUI runs the project’s runner itself. When a project with work in progress is left, the “Stop the runner” dialog explains that work stops at the next safe point and resumes on the next start, and that scheduled deltas and catch-ups do not run while no runner runs; Y stops the work and leaves, and esc stays. A second q while the runner drains exits at once.

Vim keys and arrows both work everywhere. A capital Y confirms destructive actions, and esc closes the topmost layer or goes back. In the key tables, ^x means Ctrl+x and S- means Shift. While a text field is being edited, ^u, ^a and ^e clear it and move to its start and end, tab moves to the next unit of a size or duration, and ? is typed into the field, so help is on F1.

KeyAction
?, F1Help
^tNext theme
escBack
q, ^cQuit
KeyAction
↑ k, ↓ jMove through the projects
enterOpen the project
nNew project: enter the Project directory, tab switches between whole server and one account, enter creates, esc cancels
rReload the list

Finished projects are marked “finished” in the list. A finished project opens read-only on its Verify and report screen without asking for a passphrase, and an action or a save on it shows Migration finished: this project is read-only.

KeyAction
enterSave and go to the next step
escSave and go back
^sSave this step
tab, S-tabEdit the fields, starting with the first or the last
aShow or hide the advanced fields
gShow the step’s guide
cShow the CLI command
dFind the server from an address (Target and Source: detect)
tTest the connection (saves the step first)
^dDiscover the accounts on the source (saves the step first)
↑ k, ↓ j, pgup, pgdnScroll

While a field is being edited, tab or ↓ moves to the next field and S-tab or ↑ to the previous one; only tab and S-tab move on from the fields into the step’s tables, which ask for the unlock only when they get the focus. Typing a letter in a choice field jumps to the first choice that starts with it, and backspace or delete clears an optional choice; esc stops editing, and enter saves and goes to the next step. In a list field, such as the folder filters, enter starts a new line and backspace on an empty line removes it. Choice fields change with ←, → or space, and switches toggle with space.

KeyAction
↑ k, ↓ jPrevious or next row
pgup, pgdnPage up or down
home, G endFirst or last row
/Filter the rows (enter applies, esc keeps the previous filter)
sSort by the next column
spaceSelect or unselect the row
A, NSelect or unselect every matching row

The number keys open the operation screens from anywhere in a project: 1 pre-flight, 2 the run dashboard (2 again reloads it), 3 the proxy cutover, 4 the domain checklist and 5 verify and finish. On every operation screen, c shows the CLI command and o, where offered, opens the downloads. Actions that ask first open a confirmation dialog: actions on accounts are confirmed by typing the number of accounts they affect and pressing enter, and the others with Y.

ScreenKeyAction
Pre-flightPRun the pre-flight checks
OProvision the target
RCopy the selected accounts
URun the whole plan unattended
Run dashboardRRetry the failed selected accounts
DDelta pass on the selected accounts
SSwitch every account that can (asks first)
pPause, or resume when paused
xStop safely
LShow or hide the log pane
gOpen an account by address
^dDiscover the accounts on the source
Account detailescBack to the dashboard
DDelta pass on this account
SSwitch this account
RRun this account again from scratch (asks first)
K, UTake this account out of the migration (asks first), or back in
pPause, or resume when paused
LStop or resume following the log
vShow the archive preview instead of the log, or the log again
t, TNext or previous preview
], [Next or previous page of the previewed list
Proxy cutoverSSwitch every account that can (asks first)
CContinue every waiting account anyway (asks first)
TRetry every failed step (asks first)
EAccept every failed verify or alias loss (asks first)
gShow the proxy guide
Domain checklistDFinal delta pass on a domain
MConfirm a domain’s MX change (asks first)
Verify and finishVVerify the selected accounts
EAccept every failed verify or alias loss (asks first)
WComplete every account that can be (asks first)
FFinish the project (asks first)

The domain checklist keys ask for the domain in a prompt, where enter runs the action and esc cancels.

When the project’s secret store is locked, the “Unlock the project” dialog asks for the passphrase, or for a new passphrase and its repetition when the store does not exist yet; enter unlocks, tab moves to the next field and esc cancels. --key-file or $VANDELAY_SECRETS_PASSPHRASE unlocks it without the dialog.

A secret set to ask opens the “Runner request” dialog when the runner needs it; enter sends the value, and esc answers later. A request that was answered elsewhere, or whose run ended, closes the dialog and discards what was typed.