feat(api): expose file names + DEK-wrap triple on FileDto, level everywhere (#207) #210
No reviewers
Labels
No labels
epic
phase-0
phase-1
phase-2
phase-3
phase-4
phase-5
phase-6
phase-7
phase-8
phase-9
priority/P0
priority/P1
priority/P2
type/backend
type/client
type/docs
type/ops
type/security
type/spike
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
primatekuntech/failsulit!210
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/cls-file-dto-exposure"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PR-S1 of the #207 align-then-adorn campaign (dev-plan 7.16 client UX; first increment of 7.1 golden-contract fixtures).
Server contract exposure for the desktop client:
BuildFileDtogainsname,mime_type,size,encrypted_file_key,nonce,encryption_algorithm— parity with the root/contents projection so a listing can render rows and unwrap DEKs without a per-file second fetch.GET /folders/root/contents: folder + files + subfolders now carrylevel; files gainnonce/encryption_algorithm.Level(override OR inherited folder level).CLS-06 listing filter (code-review pass-2 finding, landed in this PR as required): per-file raise-only overrides can put a file above its folder's level, and the folder-granularity gate did not cover rows — with names now on the DTO that was a filename read-up channel.
ClassificationGates.FilterFilesShareVisibleAsyncdrops above-clearance rows fromListFiles+ root/contents (owners and the container owner keep rows; batched: one clearance lookup + one ladder query, no N+1).FilterShareVisibleAsync(ListFolders) rewritten onto the same batched set — semantics identical.Tests: new
ContractPinningTests(9 tests) — exact serialized snake_case property sets for FileDto / root-contents envelope / upload-201 (rename breaks server test first), level=Internal vs null (flag off), E2EE-chunked null-triple shape, and the CLS-06 filter scenarios (recipient-hidden, owner-kept, container-owner-kept).Review: dual-pass done — ponytail pass 1 clean; superpowers pass 2 found the CLS-06 gap (fixed above) + root-resolver ordering gap (pre-existing, tracked for follow-up in #207 comments).
Coverage:
scripts/coverage-gate.sh Release— line coverage 87.69% ≥ 80%, zero failures (1082 tests).Closes the server half of #207 prerequisites. Desktop alignment lands in PR-D1.
Related: #207, #158, #30 (§12 CLS rows).