Upgrading Periscope¶
Most releases need nothing beyond running the new image tag. The releases below also need changes to your deployment. If you skip releases, apply each section in order, oldest first.
0.4.0¶
Periscope's SSH client moved to Paramiko 5, which no longer negotiates SHA-1
host-key signatures (ssh-rsa) or SHA-1 key exchanges. Devices that offer a
SHA-2 alternative keep working with no change. A device whose SSH server is
pinned to SHA-1 algorithms fails every run after the upgrade, with
Incompatible ssh peer in its connection error. Before upgrading, check any
device whose SSH configuration restricts key exchange or host-key algorithms,
and allow one of the algorithms listed under Device SSH server
requirements. Nothing in periscope.yaml
can restore the SHA-1 algorithms.
0.3.0¶
Settings that earlier releases read from environment variables now live in
periscope.yaml. Periscope ignores the old variables and logs a warning at
boot naming the key that replaces each:
| Removed variable | periscope.yaml key |
|---|---|
PHX_HOST |
server.host |
UI_ENABLED |
ui_enabled |
LG_READ_TIMEOUT |
looking_glass.read_timeout |
LG_MAX_CONCURRENT_EXECUTIONS |
looking_glass.max_concurrent_executions |
LG_GATE_WAIT_TIMEOUT |
looking_glass.gate_wait_timeout |
MCP_SERVER_TIMEOUT |
mcp.server_timeout |
POSTHOG_API_KEY |
analytics.posthog_api_key |
Earlier releases always took the client IP for per-IP rate limiting from the
leftmost X-Forwarded-For entry. 0.3.0 ignores the header unless
server.trust_proxy_headers is true:
- Behind a reverse proxy that replaces the header, such as the guide's Caddy
setup, add
trust_proxy_headers: trueunderserver:while you editperiscope.yamlin step 2. Otherwise every client shares one bucket keyed on the proxy's address. Nothing fails, so the boot log does not say so. - Leave it
falseif Periscope is reachable directly, or sits behind a proxy that appends to the header. There,truelets clients spoof their IP, as every earlier release allowed.
Releases before 0.3.0 fail to boot on a periscope.yaml that sets these
keys, so change the file and the image together:
- Pull 0.3.0: set
PERISCOPE_VERSION=0.3.0in.env(skip this onlatest), then rundocker compose pull. If the pull fails, stop here: the running release still boots on your unchangedperiscope.yaml. - Add each setting you set through a variable to
periscope.yamlunder its new key (see Settings). If you setPHX_HOST, setserver.hostto the same value. - Delete those variables from the
periscopeservice'senvironment:incompose.yaml. Every earlier version of the self-host guide'scompose.yamlpassesPHX_HOSTto Periscope, so the boot warning repeats until the line is gone. - Start 0.3.0: run
docker compose up -d.
Move each setting as you upgrade
An ignored variable has no effect. Without server.host, Periscope falls
back to localhost: pages render, but the UI never connects. The boot log
names both problems. Likewise, UI_ENABLED=false on its own leaves the
web UI on.
With Caddy,
the caddy service can keep reading PHX_HOST. The guide's current Caddy
files name it PERISCOPE_HOST, so rename it in .env if you adopt them.