Important Security Notes
XLX Observatory is meant to face the public internet. It has no login and nothing on it can be changed from a browser: every page is read-only, and everything it shows is already sent out by the reflector in one way or another. The things to look after are the web server in front of it, the IP addresses it shows, and the reflector's directory key.
Keep It Behind a Web Server
The dashboard serves its pages on 127.0.0.1:8090, which only the same
machine can reach. Publish it through nginx or Apache, as described in
Installation, and let
the web server handle HTTPS, certificates and logging.
Don't change LISTEN to a public address. The dashboard has no TLS of its
own.
Use HTTPS
Configure the web server to redirect plain http:// requests to
https://. The example web server configurations leave
/.well-known/acme-challenge/ to the web server, so certbot's --webroot
mode can issue and renew Let's Encrypt certificates.
IP Addresses
By default the Repeaters & nodes and Peers pages show each node's and
peer's full IP address, as the PHP dashboard did. Many hotspots run on
home internet connections. To show less, set NODES_IP and PEERS_IP in
[Page]:
| Value | Shows |
|---|---|
full |
192.0.2.44 |
last3 |
*.0.2.44 |
last2 |
*.*.2.44 |
last1 |
*.*.*.44 |
hide |
No IP column at all |
See Configuration.
The Directory Key
When it calls home, the reflector proves who it is to
the XLX directory with a private key, kept in
/etc/xlx-observatory/callinghome.hash. Anyone with that key can register
your reflector number with their own address.
- The file is readable only by root and the
xlx-observatorygroup (mode0640). Leave it that way. - It is in
/etcso that backups of/etcinclude it. Keep a copy: a rebuilt reflector with a different key can't register with the directory. - Don't post it in forums or bug reports.
The Service
The package runs the dashboard as the system user xlx-observatory,
under systemd with most of the system out of reach:
- It can't write anywhere on disk.
/homeis hidden from it. - It needs to read only xlxd's status file, PID file and interlink file,
and the files you name in
xlx-observatory.ini. All of xlxd's are world-readable in the xlxd package. - It has no special privileges and can't gain any, load kernel modules or open raw sockets.
Files you point it at, such as a logo or banner, must be readable by that
user and can't be in /home. Keep them in /etc/xlx-observatory.
The Banner Is Trusted HTML
The file named by BANNER_PATH is put into the page exactly as written,
scripts and all. Only the system administrator should be able to change
it. See Configuration.
Images and Styles You Add
Logos are checked for type and size (PNG, JPEG, GIF, WebP or SVG, 1 MB at most) before they are served. An SVG logo opened on its own in a browser is sent with a policy that stops any script in it from running.
custom.css is limited to 256 KB.
Search Engines
The dashboard serves a robots.txt that lets search engines index the
front page, so the reflector can be found by name, and keeps them off the
rest. The other pages are lists of callsigns that change by the minute.
If the dashboard is published under a path (for example
https://example.org/xlx/), its robots.txt isn't at the site root and
isn't used. Add equivalent rules to the site's own robots.txt if you
want them.