recon patch
This commit is contained in:
@@ -31,3 +31,40 @@ No merge or release convention is documented in the pre-existing repository. The
|
||||
3. Release/deployment branch: use `main` only if Captain confirms it as the release source; otherwise define a separate release branch before any release workflow.
|
||||
|
||||
Until approved, brief the concrete convention choice before creating later task branches/worktrees or merging. Do not infer deployment authorization from a branch choice. Record Captain's decision here and preserve any later superseded decision.
|
||||
|
||||
## PRD-001: Private media-share purpose and V1 boundaries
|
||||
|
||||
- Status: Accepted from Captain's explicit requirements, 2026-11-04.
|
||||
- FolderShare serves selected friends authenticated to a Raspberry Pi-hosted application accessing the existing video library via a mounted/shared directory. This is not a public registration or upload service.
|
||||
- V1 scope: admin-created accounts, per-user folder access, folder browsing and individual read-only file downloads. No write, upload, rename or delete access to media.
|
||||
- The media mount/container binding must be read-only. API authorization is required independently of UI restrictions; deny access by default.
|
||||
|
||||
## PRD-002: Folder permissions for first release
|
||||
|
||||
- Status: Accepted as V1 simplification from current discussion, 2026-11-04; revisit before implementing multi-root support.
|
||||
- Use **one assigned root directory per user** and permit descendants only, with an unassigned root granting no media access. Do not grant access to ancestors, siblings, or paths outside the configured media root.
|
||||
- Admin manages assignments. Do not rely on user-supplied filesystem paths or raw string-prefix checking. Resolve/canonicalize paths, reject traversal and symlink escapes, and recheck access at every listing and download request.
|
||||
- A future multiple-independent-folder permission model is outside V1 scope.
|
||||
|
||||
## PRD-003: Opaque single-file download requests
|
||||
|
||||
- Status: Accepted from Captain's explicit requirement, 2026-11-04.
|
||||
- File names and server filesystem paths must not appear in download URLs. Use non-guessable opaque short-lived download grants (suggested initial lifetime: five minutes to *start* a download), bound to the requesting account and a server-resolved file identity; validate current permission and file existence on use.
|
||||
- Grant URLs must never substitute for authorization. Serve the actual filename through `Content-Disposition` to the authorized downloader; names will remain visible in browsing UI and browser download history.
|
||||
- Large-file streaming and HTTP Range/resume support belong to V1. Ensure grants do not expire mid-stream; define safe behavior for resumed requests. Avoid exposing sensitive tokens in logs and referrers.
|
||||
|
||||
## PRD-004: Deferred batch ZIP downloads
|
||||
|
||||
- Status: Accepted as a future feature concept, **not an authorized implementation task**, 2026-11-04.
|
||||
- Later allow selection of multiple files/folders and downloading a ZIP that preserves folder structure. Reuse centralized server-side authorization; reject symlink escapes and unauthorized members.
|
||||
- Raspberry Pi resource constraints favor streaming/stored ZIP entries rather than recompressing already-compressed videos. Whether to prepare archives as temporary jobs or stream them directly remains an implementation decision for that future release.
|
||||
|
||||
## DEP-001: LAN-hosted Pi and intended URL
|
||||
|
||||
- Status: Partially accepted; **remote access method pending Captain decision**, 2026-11-04.
|
||||
- Host the app on a Raspberry Pi on Captain's LAN; obtain the video library via a mounted network share or local share directory; target `share.roborto.net` or another suitable subdomain. Keep media storage independent of the app host.
|
||||
- Unresolved: external browser access via public HTTPS reverse proxy versus VPN; chosen Pi/service distribution; TLS/DNS routing, authentication hardening, backup/restore, network mount reliability, and deployment container arrangement. Do **not** infer port forwarding or public exposure authorization.
|
||||
|
||||
## Pending: Git integration branch convention
|
||||
|
||||
The 2026-11-04 snapshot references work on `codex` while the existing proposal suggests `main`. There is no evidence that a general integration branch choice was approved. Before creating a task worktree, Codex must inspect live Git state and ask Captain to approve the integration base, worktree path, and eventual merge destination. A task branch is not authority to merge or deploy.
|
||||
|
||||
Reference in New Issue
Block a user