Skip to content

fix(docs): allow *.run.app in CSP for the Kapa widget backend#42276

Merged
sadpandajoe merged 1 commit into
apache:masterfrom
rusackas:fix/docs-csp-run-app
Jul 21, 2026
Merged

fix(docs): allow *.run.app in CSP for the Kapa widget backend#42276
sadpandajoe merged 1 commit into
apache:masterfrom
rusackas:fix/docs-csp-run-app

Conversation

@rusackas

Copy link
Copy Markdown
Member

SUMMARY

The Kapa widget on superset.apache.org calls a backend hosted on Google Cloud Run (*.run.app), which the site's CSP currently blocks, so the widget doesn't work. This adds https://*.run.app/ to CSP_PROJECT_DOMAINS in docs/static/.htaccess (the ASF-infra CSP mechanism, see https://infra.apache.org/tools/csp.html).

Per the comment added alongside the other entries: *.run.app is a Google-owned domain, and it's only reached after explicit user acceptance when opening the Kapa widget, which keeps it allowable under the ASF privacy policy (https://privacy.apache.org/faq/committers.html), same as the existing *.google.com / *.gstatic.com entries.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

N/A (CSP header change on the docs site)

TESTING INSTRUCTIONS

After this deploys to superset.apache.org, open the Kapa "Ask AI" widget, accept the consent prompt, and confirm the chat works with no CSP violations for *.run.app in the browser console.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

🤖 Generated with Claude Code

The Kapa widget on superset.apache.org calls a backend hosted on
Google Cloud Run (*.run.app), which the site CSP blocks, breaking the
widget. Add the domain to CSP_PROJECT_DOMAINS with a note that it is a
Google-owned domain gated behind explicit user acceptance when opening
the widget, per ASF privacy policy.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@dosubot dosubot Bot added the doc Namespace | Anything related to documentation label Jul 21, 2026
@bito-code-review

bito-code-review Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Code Review Agent Run #50340f

Actionable Suggestions - 0
Review Details
  • Files reviewed - 1 · Commit Range: 7631dfe..7631dfe
    • docs/static/.htaccess
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at evan@preset.io.

Documentation & Help

AI Code Review powered by Bito Logo

@netlify

netlify Bot commented Jul 21, 2026

Copy link
Copy Markdown

Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit 7631dfe
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/6a5fa45581851400081e59d5
😎 Deploy Preview https://deploy-preview-42276--superset-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@sadpandajoe
sadpandajoe merged commit 706a65c into apache:master Jul 21, 2026
57 checks passed
@sadpandajoe sadpandajoe added review:checkpoint Last PR reviewed during the daily review standup and removed review:checkpoint Last PR reviewed during the daily review standup labels Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Namespace | Anything related to documentation size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants