api: embed a NATS server with JetStream and the pipeline's streams #27

Merged
mikluko merged 1 commit from nats-server into integration 2026-11-08 17:41:11 +00:00
Owner

The API embeds a NATS server with JetStream and creates the pipeline's streams; nothing publishes or consumes them yet. sniffarr-qcj.1.

Stacked on #26: until it merges, this diff includes the feed removal.

The API's in-process user gets a random password per start and is allowed in-process connections only, rather than NoAuthUser, which would hand its unrestricted account to any network client without credentials. Workers connect as worker and must use nats.CustomInboxPrefix("_INBOX_worker"): it is the only inbox they may subscribe under, and with the default one their JetStream calls time out.

Left to later deliveries: payload types, AckWait and MaxDeliver (NATS defaults now), the worker password in the chart for ui, sniff and fetch, and the sightings stream's DiscardNew and MaxMsgs (sniffarr-qcj.6, sniffarr-qcj.7).

The API embeds a NATS server with JetStream and creates the pipeline's streams; nothing publishes or consumes them yet. sniffarr-qcj.1. Stacked on #26: until it merges, this diff includes the feed removal. The API's in-process user gets a random password per start and is allowed in-process connections only, rather than NoAuthUser, which would hand its unrestricted account to any network client without credentials. Workers connect as `worker` and must use `nats.CustomInboxPrefix("_INBOX_worker")`: it is the only inbox they may subscribe under, and with the default one their JetStream calls time out. Left to later deliveries: payload types, AckWait and MaxDeliver (NATS defaults now), the worker password in the chart for ui, sniff and fetch, and the sightings stream's DiscardNew and MaxMsgs (sniffarr-qcj.6, sniffarr-qcj.7).
api: remove the tracker feeds and TYPESAFE_API_KEY
All checks were successful
CI / test (pull_request) Successful in 1m58s
Build / packages (pull_request) Successful in 2m5s
Build / image (pull_request) Successful in 20s
CI / changelog (pull_request) Successful in 5s
Build / chart (pull_request) Successful in 5s
9fe97426cc
Migration 030 drops feed_items and crawl_state, deletes the journal's
feed entries, and renumbers task_queue.priority with the feed priority
gone: 0 and 1 stay, 2 (feed) becomes 2 (announce), 3 (announce) becomes
2, 4 (sample) becomes 3. Queued feed fetches thus join the announced
ones, keeping their id order.

Torrents stored with discovery "feed" keep it in the store; the API
reports their discovery as unspecified and the card leaves the row out.

Assisted-by: Claude Code (claude-opus-5-5)
api: embed a NATS server with JetStream and the pipeline's streams
All checks were successful
CI / changelog (pull_request) Successful in 5s
Build / packages (pull_request) Successful in 1m37s
CI / test (pull_request) Successful in 1m50s
Build / image (pull_request) Successful in 33s
Build / chart (pull_request) Successful in 4s
5e43bb0de5
The API's in-process user gets a random password per start and is
allowed in-process connections only, rather than NoAuthUser, which would
hand its unrestricted account to any network client without credentials.

Payload types are left to the delivery that adds producers and
consumers: what a sighting, an order and a result carry is settled there.

Assisted-by: Claude Code (claude-opus-5-5)
mikluko force-pushed nats-server from 5e43bb0de5
All checks were successful
CI / changelog (pull_request) Successful in 5s
Build / packages (pull_request) Successful in 1m37s
CI / test (pull_request) Successful in 1m50s
Build / image (pull_request) Successful in 33s
Build / chart (pull_request) Successful in 4s
to ef1ee0f01b
All checks were successful
CI / changelog (pull_request) Successful in 4s
CI / test (pull_request) Successful in 55s
Build / packages (pull_request) Successful in 1m18s
Build / image (pull_request) Successful in 22s
Build / chart (pull_request) Successful in 4s
2026-11-08 14:20:09 +00:00
Compare
mikluko force-pushed nats-server from ef1ee0f01b
All checks were successful
CI / changelog (pull_request) Successful in 4s
CI / test (pull_request) Successful in 55s
Build / packages (pull_request) Successful in 1m18s
Build / image (pull_request) Successful in 22s
Build / chart (pull_request) Successful in 4s
to c0227124b3
All checks were successful
CI / changelog (pull_request) Successful in 5s
Build / packages (pull_request) Successful in 1m37s
CI / test (pull_request) Successful in 2m1s
Build / image (pull_request) Successful in 34s
Build / chart (pull_request) Successful in 5s
2026-11-08 15:58:45 +00:00
Compare
mikluko force-pushed nats-server from c0227124b3
All checks were successful
CI / changelog (pull_request) Successful in 5s
Build / packages (pull_request) Successful in 1m37s
CI / test (pull_request) Successful in 2m1s
Build / image (pull_request) Successful in 34s
Build / chart (pull_request) Successful in 5s
to 9f46ce6d98
All checks were successful
CI / changelog (pull_request) Successful in 5s
Build / packages (pull_request) Successful in 1m41s
CI / test (pull_request) Successful in 2m16s
Build / image (pull_request) Successful in 49s
Build / chart (pull_request) Successful in 4s
2026-11-08 16:18:51 +00:00
Compare
mikluko merged commit 5fec4f6205 into integration 2026-11-08 17:41:11 +00:00
mikluko deleted branch nats-server 2026-11-08 17:41:11 +00:00
Sign in to join this conversation.
No description provided.