Zum Inhalt springen

First-run setup and the admin console

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Everything a Server Owner does happens on the admin surface: a separate container with its own console and its own command line, veyq-admin (ADR 0065). It is reachable only from the host by default, so you can set up an instance before it has DNS or a certificate, and nobody who finds its domain can claim it first.

The application answers Server-Owner operations (setup, tenants, the instance’s settings) only on an internal listener, port 8090, and only to a peer that is not on the public internet; the public port answers them with 404 (uc.admin.admin-channel). The admin container is the one thing pointed at that listener. Reach the container itself:

The admin container is published on 127.0.0.1:${ADMIN_PORT} (8081 by default) of the host only. From your laptop:

Terminal window
ssh -L 8081:127.0.0.1:8081 you@the-host

Then open http://localhost:8081.

Exposing it on a domain of its own (ADMIN_DOMAIN / admin.domain) is possible and optional. It gives the console its own hostname and certificate, and it puts the admin listener on the internet with it. So set it only after the Server Owner exists, point its DNS at the instance first, and choose a name you publish nowhere: the app never links to the admin surface and carries no hint that it exists. Nothing enforces the order; it is yours.

If you put a proxy of your own in front of the application, route only its public port, 8080. Nothing but the admin container may ever be pointed at 8090 (Hardening).

On a fresh instance the console opens on Set up this instance (uc.admin.setup-server).

  1. Enter an Email and a Password of at least 10 characters. When you leave the password field, the first 5 characters of a hash of it go from your browser to Have I Been Pwned; a hit asks you to choose another or tick Use it anyway. If the check cannot run, setup goes ahead.
  2. Continue. Your browser generates every key of the account — the server only ever sees ciphertext. Nothing has been sent yet.
  3. Save your Emergency Kit. Download Emergency Kit (PDF), tick I have saved my Emergency Kit somewhere safe., then Continue. The kit holds your email and your Secret Key (and a QR code of both); it does not hold your password.
  4. What you may have to state. The console says, as information, which values an operator may owe — the household exemption ends once a link is shared publicly, a club or a company probably owes a name, a postal address and the controller’s contact, it covers every space — and that this is your own assessment, not veyq’s. There is nothing to choose or tick; every value stays optional, set later under Server → Operator (What you may owe). Then Continue.
  5. Which applications does this server offer? The console lists the applications this release carries — Memories, Depot and Expenses — each with what it is for, every one ticked. Untick what your server should not offer; at least one stays ticked. What you untick is switched off for the whole instance, the same switch as under Server → Capabilities, where you switch it on again whenever you like (Capabilities). No space exists yet, so nothing is erased and nobody is told: a space simply does not offer it. Then Create the account and sign in. Only now is the account created, and from this moment the instance is set up: the setup screen does not open again. The same step makes the instance’s first moderation key, sealed to your new account: you are its first moderator, and reports can be made from the first day (Moderation).
  6. Sign in with your email and password.

Media are stored in an S3-compatible object store, and the store is a setting of the console, not of the environment (ADR 0089). A tenant cannot be created until a store is set and has passed its check.

Where the deployment brings its Garage (on Compose unless your override leaves it out, on Kubernetes with garage.enabled), there is nothing to do. With no store saved, the server sets the bundled store itself once it has set Garage up after its start, and runs the check below on it; it tries the check again for about ten minutes while the upload, the read-back or the browser access still fail — the steps a domain, a certificate or a proxy that is still coming up can fail. Server → Object store then opens on the bundled store in use with its check passed. If the check still fails, the page names the step: fix it and run Check store, or restart the application, which checks the bundled store again. A store you saved yourself is never replaced, and a restored setting wins.

To use a store of your own instead, or to return to the bundled one, open Server → Object store:

  1. Choose the Store:
    • Use the bundled store — the Garage the recipe brings (offered when the deployment provides it). There is nothing to enter.
    • S3-compatible store — one you run or rent: Endpoint, Public endpoint (only if browsers reach the store at another address than the server does), Bucket (it must exist already: veyq never creates a bucket on a store you brought), Region, Access key ID, Secret key.
    • Garage — a Garage of your own: the same fields plus Garage admin endpoint and Garage admin token; veyq creates the bucket and sets the store up.
  2. Save. The setting is saved but not used yet: it waits until it passes its check. The secret key and admin token are sealed on the server under its config-secret key and never shown again; keep them in your password manager, because a backup run and a lost config-secret key both ask for them again.
  3. Check store. The check runs in order and stops at the first failure: Credentials can be opened, Store set up (Garage only), Bucket exists, Upload a test object, Read it back, Browser access (CORS) (skipped where the store is served from the instance’s own origin). It changes no store configuration; its test object lives under veyq-check/ and is overwritten by every check. When every step passes, the saved setting is in use at once, without a restart.

A later change works the same way: it is saved beside the setting in use and replaces it only once its own check passes. Until then the console shows it as a saved change; a failed one changes nothing for your media — correct it and save again, or Discard change.

Once media are stored, the store’s type, endpoint and bucket are fixed; credentials and the public endpoint can still change.

The console has two sections: Tenants and Server.

The list shows each tenant with its storage in use and its quota, for example 2.1 GB of 10 GB or 2.1 GB, no quota.

  • Create tenant — Tenant name, Domain (the web address the tenant is reached at), and Who should own this tenant? (email). The tenant’s domain must resolve to the instance first (Plan your instance).
  • The owner’s invitation is yours to pass on. A new tenant has no email set up until its owner configures it, so the console shows a link (https://<domain>/tenant/accept#…) to copy and send them. It is valid for seven days. While the tenant is Pending: Re-issue invite mints a new link, Reassign invite binds it to another email, Revoke deletes the pending tenant.
  • Move this tenant to a different address — the tenant answers on the new domain and stops answering on the old one at once.
  • Storage quota (GiB) — Save quota or Remove quota. Uploads that would go over it are refused; nothing already stored is removed, and trash counts until it is emptied.
  • Take offline / Bring back online — see Moderation.
  • Delete tenant — for an active or offline tenant, at the end of its page beside Take offline. Type its domain into Type the tenant’s domain, …, to confirm first. The tenant goes offline at once, exactly as Take offline takes it, shows Being deleted with the date, and everything in it is erased on that date — 30 days later, the trash’s retention. Until then Stop deletion returns it offline, and Bring back online reactivates it. Every member is told by mail through the instance mail, and every account stays, also one the deletion leaves in no tenant: nobody’s account is erased without their asking. Holds and the moderation records survive the deletion to their own ends. A deletion over content carries a statement of reasons to the tenant’s owners: tick Because of the tenant’s content above the two buttons and fill it in (see Moderation). Whom it reached the page says under the tenant’s name, and whom it did not, you tell through the instance contact (What the mail reached).
  • No owner — a tenant whose last owner’s account you erased (see Accounts) has nobody to run it. Its two ways on: Invite owner with the address of one of its members — they accept the link and become its owner; it must be a member, because only a member already holds the tenant’s key and you can admit nobody into it — or Delete tenant.

A tenant’s mail settings, terms and per-link upload limit are not here: they belong to the tenant’s owner, in the app.

  • Release — the release this instance runs, the version to name if an update ever has to be undone (Upgrade). A build that was never published says so.

  • Object store — the setting and its check, as above. For a Garage store it also shows whether the server has set it up: in progress, ready, or failed (the server log names the failed step).

  • Config-secret key — whether the key that seals the server’s stored secrets is the one they were sealed with:

    • OK — in place, and the right one (or nothing has been sealed yet).
    • ABSENT — no key is available, or the application cannot read the file. Nothing can be sealed; tenants whose mail needs a password cannot send invitations or password resets.
    • MISMATCH — the key is not the one the secrets were sealed with: lost, replaced or not restored. Content is unaffected; put the original key file back and restart, or re-enter the sealed secrets.

    After a restore or an update, this is the reading that says the key came along (Backup and restore).

  • Capabilities — what the instance offers at all, as a tree of switches (Capabilities).

  • Operator — what an operator may owe, as information; the instance contact, the provider identification and the supervisory authority, the recipients and a data-protection officer for the privacy notice, each optional and shown as not stated while empty, and the private notification address with its code (Moderation, The privacy notice).

  • Accounts — erase an account for a request that reached you another way, and stop a pending erasure (below).

A person erases their own account in the app’s settings. When the request reaches you instead — a mail, a letter, someone who lost their password — you answer it here (GDPR Art. 17; you have a month, Art. 12(3)): type the Account address twice and choose Erase account.

  • The account stops at once: every session ends, sign-in is refused, it leaves every tenant as a removal takes it (its own spaces into the trash, shared ones cut, a group it owned alone handed on) and the moderator roster.
  • It is erased 14 days later with its own spaces, its address and everything kept about it (veyq.account.erasure.window, Configuration). What it put into shared spaces stays with them, shown as a former member’s; holds and the moderation records naming it stay to their own ends. A tenant its person chose in the settings to delete along with it waits out a tenant deletion’s 30 days, as one you delete does.
  • Until then it is listed under Pending erasures, and Stop erasure lets it sign in again — for a mistaken or coerced request. The memberships it was cut from need a new invitation.
  • Your own account cannot be erased this way. The last owner of a tenant is not refused: the tenant is left with No owner (above).
  • Nor is the last moderator who holds the moderation key, but the console warns you first: erased here, the key goes with the account, and every report and held copy sealed only to it can no longer be read. Only after you accept Erase and lose the key is it erased (veyq-admin account erase refuses with the same warning until you add --lose-moderation-key). When that person erases their own account in their settings instead, their browser hands the key to you first, and you are a moderator holding it again (Moderation).
  • The person is told by mail through the instance mail.

The admin container also carries veyq-admin, a client of the same operations. It needs no route and no exposed port. It signs in fresh on every call with the Server Owner’s own credentials and writes nothing to disk; each call therefore pays one password derivation (about 1–3 s) first. On Docker Compose, run it from the instance’s home, /opt/veyq, with <release> the running release (./veyqctl status names it):

Terminal window
read -rs VEYQ_ADMIN_PASSWORD && export VEYQ_ADMIN_PASSWORD
docker compose -f "releases/<release>/docker-compose.prod.yml" --env-file .env exec \
-e VEYQ_ADMIN_EMAIL=you@example.com -e VEYQ_ADMIN_PASSWORD \
admin veyq-admin tenant list

Pass the password by name (-e VEYQ_ADMIN_PASSWORD): written as -e VEYQ_ADMIN_PASSWORD="$VEYQ_ADMIN_PASSWORD" it lands in docker compose’s own argument list, where every user on the host can see it while the call runs. kubectl exec passes no variable by name, so on Kubernetes the password goes in on standard input, read inside the pod:

Terminal window
read -rs VEYQ_ADMIN_PASSWORD
printf '%s\n' "$VEYQ_ADMIN_PASSWORD" | kubectl -n veyq exec -i deploy/veyq-admin -- sh -c \
'read -r VEYQ_ADMIN_PASSWORD; export VEYQ_ADMIN_PASSWORD VEYQ_ADMIN_EMAIL=you@example.com; veyq-admin tenant list'

printf is the shell’s own, so the password is in no process’s argument list. veyq-admin --help needs no password: kubectl -n veyq exec deploy/veyq-admin -- veyq-admin --help.

Command What it does
tenant create --name <name> --domain <domain> --owner-email <email> Create a pending tenant and print its owner’s invitation secret
tenant list List the tenants with their invitation status, storage use and quota
tenant resend --tenant-id <id> Re-mint a pending tenant’s invitation
tenant reassign --tenant-id <id> --owner-email <email> Bind a pending tenant’s invitation to another email
tenant change-domain --tenant-id <id> --domain <domain> Move a tenant to another domain
tenant revoke --tenant-id <id> Delete a pending tenant
tenant suspend --tenant-id <id> / tenant reactivate --tenant-id <id> Take a tenant offline, bring it back
tenant delete --tenant-id <id> --domain <domain> [--over-content --ground <ground> [--provision <text>] [--facts <text>]] / tenant stop-deletion --tenant-id <id> Delete an active or offline tenant (offline at once, erased after 30 days); stop it, which leaves it offline
tenant invite-owner --tenant-id <id> --email <address> Invite one of a tenant’s members to own it, and print the invitation
account erase --address <address> / account stop-erasure --address <address> / account erasures Erase an account (erased after 14 days); stop a pending erasure; list the pending ones
tenant quota --tenant-id <id> --gib <GiB|none> Set or clear a tenant’s storage quota
release Print the running release
config-secret Print the config-secret key’s state (OK, ABSENT or MISMATCH); changes nothing
store show Print the store setting in use and its last check, a saved change still waiting for its check, and whether a bundled store is offered; never a secret
store set --bundled Save the bundled store, to return to it from a store of your own (a fresh instance sets it itself); store check puts it in use
store set --endpoint <url> --bucket <bucket> --region <region> --access-key <id> [--type S3|GARAGE] [--public-endpoint <url>] [--garage-admin-endpoint <url>] Save a store of your own; store check puts it in use. The secret key comes from VEYQ_STORE_SECRET_KEY and the Garage token from VEYQ_STORE_GARAGE_ADMIN_TOKEN, never from a flag
store check Check the saved change (else the store in use) and print every step; a passing saved change is put in use; exits 1 if it failed
store discard Drop a saved change that has not passed its check; the store in use stays
capabilities list / capabilities off <id> / capabilities on <id> Print the switches as a tree, switch one off or on; prints text, not JSON (Capabilities)
operator show / operator set --<value> <text> / operator clear Print the operator details, every value present and null where none is set (published as not stated by this operator); change the values given (none clears one) and keep the rest — --recipients '<name>|<kind>|<country>; …' replaces the privacy notice’s whole list (the kind hosting, object-storage, mail-relay, backup or other:<what they do>; the country a two-letter ISO 3166-1 code such as DE), --data-protection-officer sets the officer; clear them all. The notification address’s code is typed into the console, never the CLI

Output is JSON on standard output. A failure prints one line, veyq-admin: <reason>, to standard error and exits 1. veyq-admin --help lists the command groups, veyq-admin <group> --help a group’s commands, and veyq-admin <group> <command> --help one command in full, with its flags; none of them signs in. Setup is deliberately not a command: it creates key material and an Emergency Kit, which belong on a screen where a person can save the kit.