Skip to content

fix: constrain anonymous shared-object downloads - #56

Merged
Vonng merged 2 commits into
mainfrom
codex/console-share-boundary-20260916
Sep 16, 2026
Merged

Vonng merged 2 commits into
mainfrom
codex/console-share-boundary-20260916

Conversation

@Vonng

@Vonng Vonng commented Sep 16, 2026

Copy link
Copy Markdown
Member

The anonymous share-download endpoint could proxy unauthenticated requests to non-object paths on the configured S3 server, including public metrics otherwise isolated behind the Console network boundary. Restrict it to object-content GETs at the configured origin and reject every redirect, while preserving normal public, presigned and versioned downloads and the original signed URL bytes.

No new configuration option is introduced. A full sharing-disable switch is a separate product capability; the existing link-format setting remains unchanged. Query-selected non-download operations, system paths and path traversal are rejected before any backend request. Client cancellation now cancels the upstream request.

Regression tests cover URL encodings, fake signatures on metrics paths, endpoint identity, subresources, same-origin and cross-origin redirects, cancellation, and existing share-link generation. A required CI job runs real API and browser sharing tests in both standalone and embedded SILO using the exact Console checkout. Product guidance links to the companion site; the changelog credits Jiri Pejchal (@jiri-pejchal) for the report.

Validation: go test ./api ./pkg/... -count=1, the focused share-boundary race tests, golangci-lint, frontend type checking, and formatting all passed. Freshly built binaries also passed real API and Chromium sharing tests in both standalone and embedded SILO on 2026-09-16. This PR does not publish a Console release or update Server's formal Console dependency.

Fixes #52.

Signed-off-by: Feng Ruohang <rh@vonng.com>
Signed-off-by: Feng Ruohang <rh@vonng.com>
@Vonng
Vonng merged commit 60aa949 into main Sep 16, 2026
73 of 75 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an option to disable object sharing and its public proxy

1 participant