Skip to content

fix(apps): harden public app endpoints against disclosure, DoS, view tampering#400

Merged
karishnu merged 1 commit into
mainfrom
fix/public-apps-hardening
Jul 7, 2026
Merged

fix(apps): harden public app endpoints against disclosure, DoS, view tampering#400
karishnu merged 1 commit into
mainfrom
fix/public-apps-hardening

Conversation

@karishnu

@karishnu karishnu commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator
  • Whitelist public listing + detail responses via toPublicAppListItem/toPublicAppDetail (drops originalPrompt/finalPrompt/sessionToken/userId/deploymentId/parentAppId; private-repo GitHub URLs owner-only)
  • Keep prompt + code visible on public apps (intended feature); owner still receives userId/deploymentId
  • Bound page/search + query timeout + dedicated publicApps rate limit
  • Deduplicate views via viewerHash (unique index + upsert + COUNT DISTINCT) with backfill migration
  • Add regression tests for DTO deny-list and request-shape validation

…tampering

- Whitelist public listing + detail responses via toPublicAppListItem/toPublicAppDetail (drops originalPrompt/finalPrompt/sessionToken/userId/deploymentId/parentAppId; private-repo GitHub URLs owner-only)
- Keep prompt + code visible on public apps (intended feature); owner still receives userId/deploymentId
- Bound page/search + query timeout + dedicated publicApps rate limit
- Deduplicate views via viewerHash (unique index + upsert + COUNT DISTINCT) with backfill migration
- Add regression tests for DTO deny-list and request-shape validation
@karishnu karishnu merged commit 1023f68 into main Jul 7, 2026
9 of 10 checks passed
@ask-bonk

ask-bonk Bot commented Jul 7, 2026

Copy link
Copy Markdown

Model not found: cloudflare-ai-gateway/google-ai-studio/gemini-3-pro-preview. Did you mean: openai/o3-pro, workers-ai/@cf/google/gemma-3-12b-it, anthropic/claude-3-5-haiku?

github run

@ask-bonk

ask-bonk Bot commented Jul 7, 2026

Copy link
Copy Markdown

@karishnu Bonk workflow failed. Check the logs for details.

View workflow run · To retry, trigger Bonk again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant