GalahUser guide · Black Squeak Systems v2.2.2 blacksqueak.com
Reference

Security

How Galah protects the control panel, the API and its files, and what to do on your network.

What Galah does#

Settings → Web security#

Settings → Web security (needs System administration).
Settings → Web security (needs System administration).
SettingWhat it does
Serve the control panel over HTTPSStarts a second listener for HTTPS on the HTTPS port (default 8443), on the same address as HTTP. On by default for new installs (from 1.9.1); an upgraded install keeps its setting. Turning it on or off, or changing the port or certificate, takes effect a moment after saving.
HTTPS onlyPlain HTTP then only redirects browsers to HTTPS (and refuses API changes). Turn HTTPS on first.
Certificate file, private key fileFull paths to PEM files on the Galah computer, for example from your company's certificate authority. The key must not be protected by a passphrase. Leave both blank to use a self-signed certificate: Galah makes one for the computer's name and addresses (galah-https.crt and galah-https.key next to the settings file). Browsers warn about a self-signed certificate until it is trusted. New self-signed certificate makes a fresh one, for example after renaming the computer.
Allowed host namesOther DNS names people use to reach the panel, one per line, or *.example.com for every name in a domain. A name that is not allowed gets "This control panel does not answer to the name …". IP addresses, localhost and the computer's own name (as set on the computer, and with its DNS domain) always work. --allow-host on the command line adds names too.
Largest media uploadUpload limit in MB (default 16384). Uploads also need 512 MB of free space to remain.

On your network#

Running as its own user (Linux)#

Run Galah as a dedicated, unprivileged user rather than root. The Linux package includes galah.service and install-service.sh, which:

sudo tar -xzf galah-2.2.0-linux-x64.tar.gz -C /tmp
sudo /tmp/galah-2.2.0-linux-x64/install-service.sh

Settings from an older install in /opt/galah are copied to /var/lib/galah once. If you keep recordings or media elsewhere, add the folder to ReadWritePaths= in the unit (sudo systemctl edit galah).

On Windows, run Galah as a service under a dedicated local account with write access only to its own folder (see Installation); on macOS run it as an ordinary user, not with sudo.

Files that hold secrets#

FileHolds
galah.json (settings)LWRP password, remote-control key, SRT passphrases, GPIO passwords.
users.jsonUsers, groups, password hashes, session and token hashes, sign-in policy.
galah-https.keyThe self-signed certificate's private key.
initial-admin-password.txtThe first one-time admin password and the vendor support password. Deleted by Galah when the admin password is changed.
support-account-password.txtThe vendor support password made when an existing install is upgraded. Delete it once you have noted the password.
licence.jsonYour licence keys and their signed answers from the licence server.
audit.logSign-ins, changes and refusals, with user names and addresses.

Include them in backups, and keep those backups as private as the files. On Windows, put the Galah folder where only administrators and the Galah service account can read it.