mirror of
https://github.com/sudosylabs/vnidrop.git
synced 2026-08-05 10:29:58 +02:00
fix(security): address medium findings for ACL, limits, and UX
Tighten approve-endpoint to active shares with TTL sessions, reject non-file FDs, lower default ticket/approval/size caps, show endpoint IDs and Public-mode warnings, harden Android receive path checks, and run cargo-audit in CI.
This commit is contained in:
@@ -91,7 +91,12 @@ collection. Restart reconciliation never restores a stopped share.
|
||||
|
||||
`CoreLimits` controls source count, collection files and bytes, path and ticket
|
||||
sizes, metadata, retained events, pending approvals, concurrent transfers, and
|
||||
the event persistence queue. `initialize` uses conservative defaults;
|
||||
the event persistence queue. `initialize` uses conservative defaults (including
|
||||
bounded ticket size, pending approvals, and total collection bytes);
|
||||
`initialize_with_limits` supports stricter deployments and tests. Cheap limits
|
||||
are checked before durable or network work, while remote collection limits are
|
||||
checked before downloading file content.
|
||||
|
||||
Manual `approve_endpoint_for_transfer` only applies to active shares, requires a
|
||||
non-empty endpoint id, and creates a time-limited session (same TTL as handshake
|
||||
approval), never a permanent grant.
|
||||
|
||||
Reference in New Issue
Block a user