D1 Service auto-wiring
- Area
- D — Content & household
- Audience
- operator
- Kind
- feature
- Status
- accepted
- Maturity
- building
- Labels
- seed, wiring
The feature in the specification · Read at
Requirements
Service API keys MUST be read from service configuration, never requested from the operator.
- locked by
- 0.4.0 met
- recorded done
- lemonfibercrates/lemonfiber-core/src/doctor/credentials.rscrates/lemonfiber-contract/src/capabilities/library.rscrates/lemonfiber-ports/src/http.rscrates/lemonfiber-adapters/src/http.rscrates/lemonfiber-core/src/validate.rscrates/lemonfiber-ports/src/nntp.rs
- cited by
- lemonfiber@574a0e4b83lemonfiber@d5f656960flemonfiber@771efea3c7lemonfiber@b22d4464e8
Seed MUST be idempotent; a second run with no changes MUST make no writes.
Seed MUST NOT overwrite values that have drifted from lemonfiber's baseline.
Each connection MUST be read back and verified after writing.
- locked by
- 0.4.0 met
- recorded done
- lemonfibercrates/lemonfiber-core/src/seed.rscrates/lemonfiber-contract/src/capabilities/library.rs
- cited by
- lemonfiber@f9c906af22lemonfiber@990e67673flemonfiber@58693828a9lemonfiber@af669626b4lemonfiber@574a0e4b83lemonfiber@d7bfc86ea8lemonfiber@07cc2deebblemonfiber@7ba5295cb9lemonfiber@e5c0459138
Unavailable prerequisites MUST produce skipped, not failed.
Partial completion MUST report exactly which connections were not made and why, and MUST be resumable by re-running.
Seerr MUST be configured to authenticate against Jellyfin.
- locked by
- 0.4.0 met
- recorded done
- lemonfiberspec:20-architecture/contracts/prowlarr-application.mdspec:20-architecture/contracts/jellyfin-seerr-identity.mdcrates/lemonfiber-contract/src/capabilities/indexer.rscrates/lemonfiber-ports/src/service.rscrates/lemonfiber-core/src/app/targets/media.rscrates/lemonfiber-contract/src/capabilities/request.rs
- cited by
- lemonfiber@58693828a9
Existing connections MUST be detected by connection details rather than label, to avoid duplicates.
Root folders MUST be created when within the data root, and refused with an explanation when outside it.
Two \arrs sharing a root folder MUST be refused with an explanation.
Service-reported errors MUST be surfaced verbatim rather than paraphrased.
An unsupported service API version MUST be reported rather than written to.
Interruption MUST leave every completed connection intact and valid.
A full seed against a healthy stack SHOULD complete within 60 seconds.
Bindery MUST be wired via Torznab endpoints, and the absence of Prowlarr app sync MUST be documented in-product.
lemonfiber MUST mint the torrent client's WebUI account at install, hand it to the client before it first starts and to the adapter in front of it, and MUST NOT leave the client on the temporary password it makes for itself.
- locked by
- 0.4.0 met
- recorded done
- lemonfibercrates/lemonfiber-core/src/secret.rscrates/lemonfiber-ports/src/random.rscrates/lemonfiber-core/src/app/plugins/minting.rscrates/lemonfiber-core/src/plugin/seeding.rscrates/lemonfiber-core/src/seed.rsspec:20-architecture/contracts/prowlarr-application.md
- cited by
- lemonfiber@8ab642c3a9lemonfiber@58693828a9lemonfiber@c68167ab73lemonfiber@a0e5dfb6cdlemonfiber@513fa97a9flemonfiber@80cf5a2c49
Each curator that fulfils requests MUST be registered with the request service as a fulfilment target, and one absent from the stack MUST NOT be.
Every connection named in the wiring graph MUST be made where the services at both ends are in the stack, and each MUST be proven against the service that received it rather than against a stand-in for it.
- locked by
- 0.12.0 met
- recorded done
- lemonfibercrates/lemonfiber-core/src/wiring.rscrates/lemonfiber-core/src/wiring/tests.rscrates/lemonfiber-core/tests/integration/wiring.rs
- cited by
- lemonfiber@52a7cb5ff4lemonfiber@040827b4eblemonfiber@3ef3514300lemonfiber@747082a565lemonfiber@c654861542lemonfiber@3750477d1clemonfiber@7527cb3bc7lemonfiber@729601f679
The request service MUST reach each fulfilling curator and the media server only through the request gate: each curator MUST be registered with it at the gate's route for the media type it files and with the token lemonfiber minted for that route, never with the curator's own key, and it MUST be left holding no media server API key and no media server administrator's session (ADR-0032).
- locked by
- 0.17.0 met
- recorded done
- lemonfibercrates/lemonfiber-core/src/seed/run/decline.rscrates/lemonfiber-core/src/seed/run/taken_back.rscrates/lemonfiber-core/src/seed/run/fulfilment.rscrates/lemonfiber-core/src/seed/run/linking.rs
- recorded partial
- lemonfiber-request-gatesrc/serving.rssrc/jellyfin/tests.rs::the_servers_name_and_an_avatar_go_upstream_with_no_credential
- cited by
- lemonfiber@bf525eadbflemonfiber@71fee85c42lemonfiber@74d638a91elemonfiber-request-gate@5be17e061c
Once the request service is initialised, lemonfiber MUST authenticate to it with the request service's own API key and MUST NOT send it the media server administrator's password; the password the initialising sign-in carried MUST be rotated once that sign-in completes.
Where the request service is found holding a credential of an \arr or of Jellyfin, lemonfiber MUST move it to the request gate and prove the move through the request service before revoking anything, MUST then revoke or rotate every credential the request service held, and MUST report any consumer the rotation could not update.
lemonfiber MUST claim NZBHydra2 over owner.claim@1 at install and on every seed, with an administrator and a password its plugin mints and hands to the adapter in front of it (ARCH-R328, ARCH-R329), and the plugin MUST prove that a read of its configuration presenting nothing is refused.
- locked by
- 0.17.0 met
- recorded done
- lemonfibercrates/lemonfiber-core/src/seed/run/owning.rscrates/lemonfiber-core/src/app/plugins/proving.rscrates/lemonfiber-core/src/app/plugins/minting.rscrates/lemonfiber-core/src/seed/run/tests/owning.rs::every_moved_part_is_claimed_through_its_adapter_and_recorded_as_itselfcrates/lemonfiber-core/src/app/plugins/tests/seeding/carrying.rs::the_aggregator_and_the_listening_server_moved_in_place_keep_their_accounts
- cited by
- lemonfiber@47ae81d956lemonfiber@07fa30cbaclemonfiber-media-stack@276665a814
Where NZBHydra2 moves in place from the stack's own, the move MUST file the administrator and password lemonfiber set on it under its plugin's secrets (ARCH-R315) and MUST NOT remove or change any indexer, setting or history the service holds.
- locked by
- 0.17.0 met
- recorded done
- lemonfibercrates/lemonfiber-core/src/seed/run/owning.rscrates/lemonfiber-core/src/app/plugins/proving.rscrates/lemonfiber-core/src/seed/run/tests/owning.rs::a_part_nobody_holds_is_claimed_and_recorded
- cited by
- lemonfiber@47ae81d956lemonfiber@07fa30cbaclemonfiber-media-stack@276665a814
Where NZBHydra2 that lemonfiber claimed is found open again, seeding MUST keep it and report it as drift, and a reset MUST claim it back.
- locked by
- 0.17.0 met
- recorded done
- lemonfibercrates/lemonfiber-core/src/seed/run/owning.rscrates/lemonfiber-core/src/seed/run/reset.rscrates/lemonfiber-core/src/seed/run/tests/owning.rs::a_part_claimed_before_and_open_again_is_drift_and_never_claimed_on_a_seedcrates/lemonfiber-core/src/seed/run/tests/owning.rs::a_reset_claims_back_a_part_lemonfiber_claimed_once_confirmed
- cited by
- lemonfiber@47ae81d956lemonfiber@07fa30cbac
Where NZBHydra2 is held by an administrator other than the one lemonfiber holds, seeding MUST report it as refused naming the plugin's secret, and MUST NOT turn the service's authentication off or replace its administrator.
- locked by
- 0.17.0 met
- recorded done
- lemonfibercrates/lemonfiber-core/src/seed/run/owning.rscrates/lemonfiber-core/src/seed/run/tests/owning.rs::a_part_somebody_else_holds_is_refused_naming_the_secret_lemonfiber_holdscrates/lemonfiber-core/src/seed/run/tests/owning.rs::a_moved_part_somebody_else_holds_is_refused_naming_its_minted_account
- cited by
- lemonfiber@47ae81d956lemonfiber@07fa30cbac
The doctor MUST report an NZBHydra2 that nobody holds or that somebody else holds, naming the service and that a seed or a reset claims it.
Where Plex is the media server, seeding MUST link the request service to it in the mode C6-R26 names, through the request gate (C6-R27), and the doctor MUST report on every run the mode, whose Plex account the request service's owner is, whether members can sign in to its page with Plex, and in owner mode, as a standing notice, that it holds a token of the operator's own Plex account (ADR-0057).
- locked by
- 0.18.0 met
- recorded done
- lemonfibercrates/lemonfiber-core/src/seed/run/plex_linking.rscrates/lemonfiber-core/src/doctor/plex_link.rscrates/lemonfiber-core/src/app/engine/diagnosis/deferring.rscrates/lemonfiber-core/src/seed/run/tests/plex/signing.rs::managed_signs_the_owner_in_with_the_managed_accounts_token_at_the_plex_routecrates/lemonfiber-core/src/doctor/plex_link/tests.rs::owner_is_a_standing_notice_of_what_holding_the_operators_token_costs
- cited by
- lemonfiber@d70b179fbf
Where Plex is the media server, a household member MUST be able to ask for a title through lemonfiber's own surfaces, which ask the request service on their behalf, in every mode; the request service's own page MUST offer members Plex sign-in only in owner and fronted.
- locked by
- 0.18.0 open