Repository navigation
Upgrade relay to strfry 1.1.3 - #53
Merged
KoalaSat merged 1 commit intoNov 28, 2026
Merged
Conversation
Bump strfry from 1.0.4 to 1.1.3 (memory DoS and crash fixes, sync reconnect bugfix) and rebuild the relay image as a multi-stage build on ubuntu:noble, shipping only the binary and runtime libs. Harden the relay service in docker-compose with cap_drop/no-new-privileges and resource limits. No protocol changes: NIP-77 negentropy sync, host-provided strfry.conf and the LMDB database remain compatible.
KoalaSat
approved these changes
Nov 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrade the coordinator relay container (strfry) from 1.0.4 (Oct 2023) to
1.1.3, restructure the image as a multi-stage build on Ubuntu 24.04
(
noble), and add container hardening to the relay service.Motivation
strfry 1.0.4 is affected by issues fixed upstream since then, which matter
for an internet-facing relay:
websocket fragments under the max payload size, exhausting memory.
duplicate sub IDs (1.1.2).
sync/streamcommands after connection failure,which affects the federation/external sync cron jobs directly.
support and other fixes.
Changes
compose/relay/Dockerfilesmaller, smaller attack surface).
ubuntu:jammy→ubuntu:noble(LTS support until 2029).apt upgradeand installs only runtime libraries,with the noble package names (
libflatbuffers2,libsecp256k1-1).compose/docker-compose.yml(relay service)cap_drop: ALL+cap_add: SETUID, SETGID(cron needs these to runthe sync jobs),
no-new-privileges,mem_limit: 1g,cpus: "2.0",pids_limit: 200— mirroring the hardening already applied toblossom.Compatibility
negentropysubmodule is pinned to the same commit in 1.0.4 and 1.1.3, and the
sync/deleteCLI flags used by the cron scripts are identical, socoordinators that keep running strfry 1.0.4 are unaffected.
strfry.confremains fully valid (all keys stillsupported; new options are opt-in).
replaceDeletionindex is backward/forward compatible) — no re-import, rollback possible.
clients) use standard NIP-01 flows and are unaffected.
Deployment
Nothing to do on the host: the relay keeps running as root, so the
root-owned LMDB files continue to work. Rebuild with your usual flow
(e.g.
tn build relay, thenmn up -d --build relay). After deploy,check the first sync cycle in
/var/log/cron.log.