Repository navigation
fix(api): restrict public sharing to unfiltered overview queries - #1117
Conversation
|
@maskjelly is attempting to deploy a commit to the Databuddy OSS Team on Vercel. A member of the Team first needs to authorize it. |
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
|
4926ae7
into
databuddy-analytics:staging
Description
Public sharing exposed query types beyond the documented overview, including custom-event properties and error diagnostics. This limits anonymous access to unfiltered overview queries and keeps the public dashboard usable under that policy.
Slice
bug,analytics(author cannot apply upstream labels)stagingChanges
/v1/query/compilebefore query execution.trait:prefix and document the privacy limits of public aggregates.Compatibility and privacy
Anonymous private or filtered requests now return 401; authenticated outsiders return 403. Public date ranges and fixed overview breakdowns remain available. Public aggregates can still describe small groups or contain application-provided labels; enabling sharing is an owner decision and does not guarantee statistical anonymity.
Validation
bun run lint: passed.bun run check-types: 37/37 tasks passed.bunx --bun vitest run src/routes/query-public-access.test.ts: 21 passed.Merge notes
This is an independent change based on current
staging. Maintainer review and CI are still required.Before merge
action_requiredwith zero jobs).AI disclosure: implemented and tested with Codex. Source and local test results were reviewed during implementation; maintainer human review is required.