feat(showcase): hardened public read-only API (dedicated endpoint, noise-filter, no generic-route relax) - #536
Merged
Merged
Conversation
Adds a dedicated anonymous read surface for ONE admin-flagged pod and nothing else. New /api/showcase/:podId (+/messages) self-gates on pod.publicRead===true, returns a whitelisted shape (never email/memory/persona), and runs messages through a noise-filter (isShowcaseWorthy) that drops empty/system/NO_REPLY/ heartbeat/error/failover turns. IP-rate-limited as the first middleware. - Pod.publicRead field (Mongo-only, admin-set, default false) - POST /api/admin/pods/:podId/showcase admin toggle (400s on personal pod types) - IP rate-limit added to the unauth uploads GET routes (no auth change) - service test: 200/404 no-oracle, noise-filter, no-email, admin gate, and a regression that generic pod/message/memory routes stay 401 for anon Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019vuFLFHnmJKmMxosHSWA4P
… audit publish toggle (F6), operational warning (F3) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019vuFLFHnmJKmMxosHSWA4P
…missing-rate-limiting) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019vuFLFHnmJKmMxosHSWA4P
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The launch front-door backend. SECURITY-CRITICAL: the only anonymous read path, hard-gated to pods with Pod.publicRead===true.
Content is curated + vetted + adversarially security-reviewed before any pod is flipped public.
🤖 Generated with Claude Code