D11 Watching what the house holds
- Area
- D — Content & household
- Audience
- household
- Kind
- feature
- Status
- accepted
- Maturity
- building
- Labels
- household, security, network
The feature in the specification · Read at
Requirements
A member's paired client MUST be able to obtain a grant to play on the member's own media-server account for a device it names, authorised by the core without anybody learning the member's password and answered to the client once with the session's token, which the core MUST NOT keep. The core MUST end it when it lapses and when the member is removed (D6-R8).
- locked by
- 0.18.0 met
- recorded done
- lemonfibercrates/lemonfiber-core/src/screening.rscrates/lemonfiber-core/src/screening/grants.rscrates/lemonfiber-contract/src/capabilities/media.rscrates/lemonfiber-api/src/actions/named/viewing.rscrates/lemonfiber-api/src/entitled.rscrates/lemonfiber-core/src/screening/tests.rs
- cited by
- lemonfiber@ebe81f0581sdk-php@adf627d6f5lemonfiber-companion@331157e446
Every byte the media server serves for an item, its images included, MUST pass a guard that asks the media server whether the presented session may see that item, and MUST be refused where it may not, where no session is presented, or where the answer does not come. The media server's own port MUST NOT be published to the household beside the guard. The guard MUST accept a session presented as Authorization: Bearer <token>, and MUST carry nothing written after the token over to the media server.
- locked by
- 0.18.0 met
- recorded done
- lemonfibercrates/lemonfiber-core/src/seed/run/proxies.rscrates/lemonfiber-contract/src/capabilities/media.rscrates/lemonfiber-core/src/screening/door.rscrates/lemonfiber-core/src/door.rscrates/lemonfiber-core/src/seed/run/tests/proxies.rs
- recorded partial
- lemonfiber-doorsrc/rules.rssrc/serving.rssrc/rules/tests.rs::a_byte_path_asks_the_question_about_its_itemsrc/rules/tests.rs::an_item_of_another_shape_is_refused_without_asking
- recorded partial
- lemonfiber-media-stackconfig/door/Caddyfilescripts/check_door.py::def layout
- cited by
- lemonfiber@2afa82a76dlemonfiber@555454a55dlemonfiber@ebe81f0581lemonfiber-media-stack@50afc3ff48lemonfiber-media-stack@bc15cf0861lemonfiber-media-stack@a24c6d30a7lemonfiber-media-stack@d8ca07dd63lemonfiber-media-stack@b6249279f5lemonfiber-door@c2f28ea2ff
The core MUST state, for each title it lists for a member, where its poster and backdrop are served at the guarded front door, built from the household address the stack publishes for the media server. It MUST state nothing where it does not know that address, and MUST NOT state the location of an image that is not an item's own.
- locked by
- 0.18.0 met
- recorded done
- lemonfibercrates/lemonfiber-core/src/screening/door.rscrates/lemonfiber-core/src/app/held.rscrates/lemonfiber-ports/src/service/screening.rscrates/lemonfiber-core/src/screening/door/tests.rs
- cited by
- lemonfiber@ebe81f0581lemonfiber-web@2787c1f255lemonfiber-web@b8f30d1922lemonfiber-web@041ad0a774lemonfiber-web@bfbf918845sdk-php@adf627d6f5
The core MUST answer a title's details (overview, runtime, genres, certificate, release date, and seasons and episodes) as the member's own session reads them, and MUST answer a title outside the member's limits as absent (D8-R9).
- locked by
- 0.18.0 met
- recorded done
- lemonfibercrates/lemonfiber-core/src/screening.rscrates/lemonfiber-contract/src/capabilities/media.rscrates/lemonfiber-api/src/read.rscrates/lemonfiber-core/src/screening/tests.rs
- cited by
- lemonfiber@ebe81f0581lemonfiber-web@a53d6aa2bdsdk-php@adf627d6f5lemonfiber-companion@6c7dc35a9b
The core MUST answer what a member was part-way through, with how far through each was, as the member's own session reads it.
- locked by
- 0.18.0 met
- recorded done
- lemonfibercrates/lemonfiber-core/src/screening.rscrates/lemonfiber-contract/src/capabilities/media.rscrates/lemonfiber-api/src/read/table.rscrates/lemonfiber-core/src/screening/tests.rs
- cited by
- lemonfiber@ebe81f0581lemonfiber-web@7d4da74290sdk-php@adf627d6f5lemonfiber-companion@e8c15e991e
Each title a member may watch MUST carry the location that streams it at the guarded front door where the core knows the household address and the title streams, and MUST carry the reason in its place where it does not.
The guarded front door MUST serve over TLS, and every location the core states at it (D11-R3, D11-R6) MUST be answered beside the fingerprint of the certificate the door presents, so that a client pins the door as it pins the stack (N1-R22).
- locked by
- 0.18.0 met
- recorded done
- lemonfibercrates/lemonfiber-core/src/certificate.rscrates/lemonfiber-core/src/screening/door.rscrates/lemonfiber-core/src/app/engine.rscrates/lemonfiber-core/src/screening/door/tests.rs
- recorded partial
- lemonfiber-media-stackconfig/door/Caddyfile::https://:8920scripts/check_door.py::presented_fingerprint
- cited by
- lemonfiber@ebe81f0581lemonfiber-media-stack@b6249279f5sdk-php@adf627d6f5
The core MUST accept, from a member's paired client, how far through a title the member is and whether they finished it, and MUST hand it to the media server as that member's own playback progress, keeping no copy of its own.
The core MUST serve a title's poster and backdrop to the member whose shelf holds it, read from the media server as that member, at GET /api/held/{id}/poster and GET /api/held/{id}/backdrop. It MUST answer only an image/ body of at most 2 MiB, marked Cache-Control: private, MUST keep no copy, and MUST answer a title outside the member's limits, or a picture the media server does not hold, as absent.
- locked by
- 0.18.0 met
- recorded done
- lemonfibercrates/lemonfiber-api/src/read/pictures.rscrates/lemonfiber-core/src/screening.rscrates/lemonfiber-ports/src/service/screening.rscrates/lemonfiber-api/src/read/pictures/tests.rs::a_picture_is_shown_as_its_raster_type_and_kept_by_its_asker_alonecrates/lemonfiber-api/src/read/pictures/tests.rs::a_picture_is_read_as_whoever_the_title_read_is_ruled_to_be_read_ascrates/lemonfiber-core/src/screening/tests.rs::a_picture_is_asked_as_the_member_and_passed_on_as_a_rastercrates/lemonfiber-core/src/screening/tests.rs::a_picture_off_the_shelf_missing_or_not_a_raster_is_absentcrates/lemonfiber-api/tests/integration/what_a_member_is_shown.rs::a_picture_comes_from_the_shelf_the_title_read_is_ruled_to_readcrates/lemonfiber-core/src/screening/tests.rs::each_raster_opens_only_as_its_own_image_and_never_as_a_drawing
- cited by
- lemonfiber@668dad0f9blemonfiber@00a691442flemonfiber@510c87037clemonfiber@f41d39fb32sdk-ts@bd715d0839sdk-php@a1b8b8c056sdk-python@060b5f71b9integration-mcp@5ab3d01f86
The core MUST serve the poster of a title a member's search offered and the house does not hold, to that member alone, fetched by the core from the location the request service gave for that title and nowhere else, image/ only, at most 2 MiB, with Cache-Control: private; it MUST refuse a location that is not HTTPS or that resolves to a loopback, private or link-local address, and the member's client MUST NOT be sent to the catalogue's host.
- locked by
- 0.19.0 met
- recorded done
- lemonfibercrates/lemonfiber-core/src/wishing/poster.rscrates/lemonfiber-core/src/outbound/ours.rscrates/lemonfiber-api/src/read/pictures.rscrates/lemonfiber-core/src/wishing/poster/tests.rscrates/lemonfiber-core/src/screening/tests.rs::each_raster_opens_only_as_its_own_image_and_never_as_a_drawingcrates/lemonfiber-api/src/read/pictures/tests.rs::a_picture_is_shown_as_its_raster_type_and_kept_by_its_asker_alone
- cited by
- lemonfiber@668dad0f9blemonfiber@2a1472c24asdk-ts@63ac6ef057sdk-php@c276714bbd
A member's paired client MUST be able to watch a live TV channel only through the core, which MUST open the channel's live stream on the member's behalf only where the media server answers that the member's own account may watch live TV and that channel, never as the administrator's account may, and the programme on it is within the member's limits (D8-R9). The core MUST answer a member the channels they may watch, each with its programme now, leaving out one whose programme now is outside their limits. The guard's item question MUST NOT stand in for either answer.
- locked by
- 0.19.0 met
- recorded done
- lemonfibercrates/lemonfiber-core/src/screening/tuning.rscrates/lemonfiber-core/src/rating/limits.rscrates/lemonfiber-api/src/read/table.rscrates/lemonfiber-api/src/entitled.rscrates/lemonfiber-core/src/screening/tuning/tests.rs::a_channel_whose_programme_now_is_outside_the_members_limits_is_left_outcrates/lemonfiber-core/src/screening/tuning/tests.rs::a_member_whose_account_may_not_watch_live_tv_is_answered_none_and_opened_nothingcrates/lemonfiber-core/src/screening/tuning/tests.rs::a_channel_outside_the_members_limits_is_refused_and_opened_nothingcrates/lemonfiber-core/src/screening/tuning/tests.rs::a_channel_showing_nothing_certified_is_held_to_the_members_unrated_policy
- cited by
- lemonfiber@2fee5cf893sdk-php@07f889df97
- claimed by
- plugin-jellyfin#149
The core MUST answer the client the location of the live stream's bytes at the guarded front door, as the tuner sends them and as a transcoded playlist, each with a pass the core issued for that live stream and that member alone, which lapses five minutes after it is issued; it MUST renew a pass, holding that same pass good for five minutes more, only after asking both questions of D11-R11 again, and MUST close the live stream when its pass lapses unrenewed, when the client says it stopped, or when the member is removed (D6-R8).
- locked by
- 0.19.0 met
- recorded done
- lemonfibercrates/lemonfiber-core/src/screening/tuning.rscrates/lemonfiber-core/src/screening/tuned.rscrates/lemonfiber-core/src/app/project/passing.rscrates/lemonfiber-core/src/app/remove.rscrates/lemonfiber/src/ui.rscrates/lemonfiber-core/src/screening/tuning/tests.rs::each_path_is_located_at_the_door_on_a_pass_the_guard_confirms_for_its_own_live_streamcrates/lemonfiber-core/src/screening/tuning/tests.rs::a_renewal_answers_the_very_passes_first_issued_with_a_later_lapsecrates/lemonfiber-core/src/screening/tuning/tests.rs::a_live_stream_not_opened_for_the_member_is_neither_renewed_nor_closedcrates/lemonfiber-core/src/screening/tuned/tests.rs::a_live_stream_the_server_would_not_close_is_kept_for_the_next_sweepcrates/lemonfiber-core/src/screening/tuned/tests.rs::a_renewal_moves_only_the_lapse_and_keeps_no_pass
- cited by
- lemonfiber@2fee5cf893lemonfiber@eeb4c894f3
The guard MUST serve a live stream's bytes, its playlists and segments included, only to a request whose pass the core confirms, asked of the core on every such request, for exactly the live stream the request names, and MUST refuse one whose pass is absent, lapsed or not confirmed, or where the core does not answer. A live stream's bytes MUST NOT be served on an item's byte route (D11-R2), save that a transcoded live stream MUST be served on the media server's transcoding routes where the live stream is named in the one query parameter the media server declares for it, on its pass and only where the guard's item question, asked with the member's session, says the member may have the item the route names, and on no other route or parameter.
- locked by
- 0.19.0 unmarked
- recorded partial
- lemonfiber-doorsrc/rules.rssrc/serving.rssrc/rules/tests.rs::a_live_stream_goes_on_without_its_pass_once_the_pass_service_is_askedsrc/rules/tests/live.rs::a_live_stream_in_its_declared_parameter_is_asked_of_the_pass_service_and_its_item_of_the_questionsrc/serving/tests/live.rs::a_transcoded_live_stream_is_served_on_its_pass_where_the_member_may_have_its_itemsrc/serving/tests.rs::a_live_stream_goes_on_without_its_pass_only_where_the_pass_service_says_yessrc/serving/tests.rs::a_pass_service_not_answering_is_a_refusal
- cited by
- lemonfiber@eeb4c894f3lemonfiber-door@d53ec8563dlemonfiber-door@2d00326f0e
The core MUST answer a member's browser, for one title the member may watch, where it streams from at the stack's front door, with a pass for that title and that member that lapses five minutes after it is issued and seals a session on the member's own account, opened for that browser as a grant is (D11-R1), so that the session's token is readable only with the key the pass is made with; the core MUST NOT keep the token, MUST renew a pass, holding that same pass good for five minutes more, only for the member and the title it names, and MUST end the session when the member is removed.
- locked by
- 0.19.0 met
- recorded done
- lemonfibercrates/lemonfiber-core/src/screening/browser.rscrates/lemonfiber-core/src/screening/grants.rscrates/lemonfiber-core/src/app/remove.rscrates/lemonfiber-api/src/actions/named/viewing.rscrates/lemonfiber-core/src/screening/browser/tests.rs::a_pass_handed_back_opens_only_for_its_own_member_and_titlecrates/lemonfiber-core/src/screening/browser/tests.rs::every_new_pass_names_a_fresh_play_and_a_renewal_names_the_same_onecrates/lemonfiber-core/src/screening/browser/tests.rs::with_nowhere_to_play_it_no_session_is_opened_and_why_is_a_fault_of_the_house
- cited by
- lemonfiber@2fee5cf893lemonfiber@eeb4c894f3
The guard MUST accept a browser's pass only on the byte routes of the title it names, asked of the pass service on every request, and MUST ask its item question with the session the pass service hands it and present that session to the media server as it does a session a client presents; it MUST refuse a pass that is lapsed, altered, for another title or not confirmed, or where the pass service does not answer, and MUST write the session only into the request it forwards and the question it asks, and log neither the pass nor the session.
- locked by
- 0.19.0 unmarked
- recorded partial
- lemonfiber-doorsrc/rules.rssrc/serving.rssrc/serving/tests/opening.rs::a_byte_path_on_a_pass_is_asked_about_and_forwarded_with_the_session_it_openssrc/serving/tests/opening.rs::a_pass_the_pass_service_opens_no_session_for_is_refused_without_asking_anythingsrc/serving/tests/opening.rs::a_pass_service_not_answering_opens_nothingsrc/serving/tests/opening.rs::the_adapter_is_asked_with_the_session_a_pass_openssrc/serving/tests/opening.rs::a_session_is_presented_in_a_header_even_where_a_token_is_declared_in_the_querysrc/serving/tests/opening.rs::a_session_the_media_server_writes_back_is_taken_off_or_never_answered
- cited by
- lemonfiber@eeb4c894f3lemonfiber-door@d53ec8563d
The guard MUST write a request's pass into every address of a playlist it serves on that pass that is relative or at the guard's own origin, and, on a live-stream pass, the live stream's parameter as the request carried it where the live stream is named in one, so a player fetching the playlist's parts carries both unaltered; it MUST write nothing into an address at another origin, MUST bound what it writes, and MUST change nothing else of the playlist.
- locked by
- 0.19.0 met
- recorded done
- lemonfiber-doorsrc/playlist.rssrc/serving.rssrc/playlist/tests.rs::every_address_line_carries_the_pass_last_and_nothing_else_changessrc/playlist/tests.rs::every_quoted_uri_attribute_carries_the_pass_and_no_other_attribute_doessrc/serving/tests/playlists.rs::a_playlist_answered_on_a_pass_carries_it_in_every_address_and_nothing_else_changessrc/serving/tests/playlists.rs::a_playlist_the_door_cannot_write_into_whole_is_answered_unreachedsrc/playlist/tests.rs::a_live_stream_parameter_is_written_beside_the_pass_as_the_request_carried_itsrc/serving/tests/live.rs::a_transcoded_live_stream_is_served_on_its_pass_where_the_member_may_have_its_itemsrc/serving/tests/opening.rs::a_playlist_served_on_an_item_pass_carries_it_in_every_address
- cited by
- lemonfiber-door@d53ec8563dlemonfiber-door@b21b797b6c