Security
How Galah protects the control panel, the API and its files, and what to do on your network.
What Galah does#
- Sign-in for everyone, with users, groups and per-user permissions (see Signing in and users). People who manage users can give only the permissions they hold. A vendor support account with a random 24-character password lets Black Squeak Systems support you; administrators can disable it at any time. Passwords are stored as PBKDF2-SHA256 hashes with 600,000 rounds; sessions and API tokens are random 256-bit values of which only a hash is kept.
- Protection against cross-site attacks. The session cookie is
HttpOnlyandSameSite=Strict(andSecureover HTTPS); every change from a browser must carry the page's anti-forgery token; changes must be JSON; requests from other web sites are refused. - Host names. The panel answers only to its own IP addresses,
localhost, the computer's exact name (short and fully qualified) and the names you allow. This stops DNS-rebinding attacks from web pages. - HTTPS, on by default for new installs, with your own certificate or a self-signed one Galah makes. TLS 1.2 and 1.3 only, with forward-secret encryption (ECDHE with AES-GCM or ChaCha20-Poly1305).
- No shell. ffmpeg and other helper programs are started with an argument list, never through a command shell, and the ffmpeg path and media folders are checked.
- Limits on connections per address (32), request headers (64 KB, sent within 3 seconds; when the server is full the oldest unfinished connection makes way), request sizes, slow uploads, image sizes (40 megapixels) and decoded image formats (PNG, JPEG, BMP, TGA).
- Private files. The settings file,
users.json,audit.log, the HTTPS key and the password files are written readable by the owner only (on Windows: the owner, SYSTEM and Administrators). - Licence checks go only to the licence server (https://blacksqueak.com unless changed), over HTTPS with the server's certificate checked against the operating system's trusted authorities. They carry the key (none when registering the evaluation), the Galah version and platform, the computer's host name and anonymous identifiers for this computer; the server also sees the network address they come from. Nothing about your embedders, sources or users is sent. See Licence.
- Secrets hidden. The LWRP password and remote-control key are shown only to people with System administration; SRT passphrases and GPIO passwords only to people who may configure embedders. This applies to every answer of the API.
- Remote control datagrams without the right key get no answer (so the port cannot be used to reflect traffic at others) and cannot lock out a real controller; repeated wrong keys over TCP, and wrong LWRP
LOGINpasswords, lock the sender out for a minute. - Audit log file (
audit.log) that keeps sign-ins and changes across restarts. - Security headers on every page: Content-Security-Policy (only Galah's own scripts may run, and the page may connect only to this computer), X-Frame-Options, X-Content-Type-Options, Referrer-Policy, and HSTS over HTTPS.
Settings → Web security#

| Setting | What it does |
|---|---|
| Serve the control panel over HTTPS | Starts 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 only | Plain HTTP then only redirects browsers to HTTPS (and refuses API changes). Turn HTTPS on first. |
| Certificate file, private key file | Full 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 names | Other 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 upload | Upload limit in MB (default 16384). Uploads also need 512 MB of free space to remain. |
On your network#
- Keep the control panel on a management network: Settings → Web control panel → Listen on (or
--bind), and a firewall. - Turn on HTTPS where the panel is used across networks you do not control, and use HTTPS only once everyone uses the HTTPS address.
- SRT outputs in listener mode accept any receiver that can reach the port. A passphrase is optional; without one Galah shows a warning in the SRT settings and in the log. Add one, or allow only the receivers' addresses through the firewall.
- Galah needs outgoing HTTPS to
blacksqueak.comonly for licence checks; if the computer has no internet access, allow just that, or set an HTTP proxy on the Licence page. - Remote control (UDP / TCP 9300) and LWRP (TCP 93) have their own key and password; limit them to the automation network with Allowed senders and the firewall.
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:
- creates a system user
galahwith no login shell, - installs Galah to
/opt/galah(owned by root, read-only to Galah), - keeps settings, users, media and recordings in
/var/lib/galah(mode 0750), - runs Galah with systemd hardening: read-only system (
ProtectSystem=strict), no access to home folders, private/tmp, no new privileges, and only the capability to use port 93 for LWRP.
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#
| File | Holds |
|---|---|
galah.json (settings) | LWRP password, remote-control key, SRT passphrases, GPIO passwords. |
users.json | Users, groups, password hashes, session and token hashes, sign-in policy. |
galah-https.key | The self-signed certificate's private key. |
initial-admin-password.txt | The first one-time admin password and the vendor support password. Deleted by Galah when the admin password is changed. |
support-account-password.txt | The vendor support password made when an existing install is upgraded. Delete it once you have noted the password. |
licence.json | Your licence keys and their signed answers from the licence server. |
audit.log | Sign-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.