# Authenticated Cloud Share Service Canonical page: https://danielcardenas.dev/projects/authenticated-cloud-share-service Case-study date: 2026-08-05 Contribution: Backend / Security Engineer Summary: A small authenticated file navigator for allowlisted folders with safe uploads, recursive archives, containment checks, and operator-friendly delivery. Context: Private VPS utility. Credentials, source roots, user files, and public tunnel details are intentionally omitted. ## Problem An internal review workflow needed a simple way to share selected artifacts without exposing an entire filesystem or depending on a heavyweight document platform. The dangerous part of a small file server is not rendering an index—it is getting containment, credentials, uploads, and archives right. ## Approach - Built a dependency-light Python HTTP service with explicitly configured, resolved roots. - Applied Basic authentication to every protected action and derived a CSRF token for upload forms. - Rejected hidden names, credential-like names, sensitive key/database suffixes, absolute paths, traversal, symlink components, and out-of-root resolutions. - Staged every upload to a temporary file, flushed it to disk, and published with a hard link so a batch cannot overwrite a destination or partially replace an existing file. - Generated recursive ZIPs from regular in-root files only, preserving visible content while filtering unsafe entries. ## Interview summary I designed a small file-delivery service around explicit security invariants: allowlisted roots, fail-closed path resolution, safe archive traversal, CSRF-protected uploads, and atomic publication.