Skip to content

fix(Dashboard): Add CSP header to app.flagsmith.com - #9210

Merged
emyller merged 3 commits into
mainfrom
fix/csp-allowlist
Dec 3, 2026
Merged

emyller merged 3 commits into
mainfrom
fix/csp-allowlist

Conversation

@emyller

@emyller emyller commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Contributes to ENG-687

Changes

  • Ship the full CSP allowlist as Content-Security-Policy-Report-Only on production SaaS.
  • Send violation reports to Sentry.

Review effort: 1/5

🤖 Generated with Claude Code

@vercel

vercel Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
flagsmith-frontend-preview Ready Ready Preview Dec 3, 2026 1:45pm UTC
flagsmith-frontend-staging Ready Ready Preview Dec 3, 2026 1:45pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
docs Ignored Ignored Preview Dec 3, 2026 1:45pm UTC

Request Review

@github-actions github-actions Bot added front-end Issue related to the React Front End Dashboard fix labels Dec 1, 2026
@emyller
emyller marked this pull request as ready for review December 2, 2026 14:03
@emyller
emyller requested a review from a team as a code owner December 2, 2026 14:03
@emyller
emyller requested review from talissoncosta and removed request for a team December 2, 2026 14:03
@emyller emyller self-assigned this Dec 2, 2026
@github-actions github-actions Bot removed the fix label Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-api-test:pr-9210 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-e2e:pr-9210 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-api:pr-9210 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith:pr-9210 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith-private-cloud:pr-9210 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith-frontend:pr-9210 Finished ✅ Results ✅

@github-actions github-actions Bot added the fix label Dec 2, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 3 files

Tip: Get a Slack DM when cubic finishes reviewing your PRs. Connect Slack

Turn on auto-fix | Re-trigger cubic

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor
✅ private-cloud · depot-ubuntu-latest-arm-16 — run #24093 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  4 passed

Details

stats  4 tests across 4 suites
duration  53.9 seconds
commit  08cb845
info  🔄 Run: #24093 (attempt 1)

🗂️ Previous results
✅ private-cloud · depot-ubuntu-latest-16 — run #24093 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

passed  8 passed

Details

stats  8 tests across 6 suites
duration  25.6 seconds
commit  08cb845
info  🔄 Run: #24093 (attempt 1)

✅ oss · depot-ubuntu-latest-arm-16 — run #24093 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  36.2 seconds
commit  08cb845
info  🔄 Run: #24093 (attempt 1)

✅ oss · depot-ubuntu-latest-16 — run #24093 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  31.1 seconds
commit  08cb845
info  🔄 Run: #24093 (attempt 1)

✅ private-cloud · depot-ubuntu-latest-16 — run #24072 (attempt 2)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

passed  5 passed

Details

stats  5 tests across 4 suites
duration  57.1 seconds
commit  5bed630
info  🔄 Run: #24072 (attempt 2)

❌ private-cloud · depot-ubuntu-latest-16 — run #24072 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

failed  2 failed

Details

stats  2 tests across 2 suites
duration  1 minute, 7 seconds
commit  5bed630
info  📦 Artifacts: View test results and HTML report
🔄 Run: #24072 (attempt 1)

Failed tests

firefox › tests/environment-permission-test.pw.ts › Environment Permission Tests › Environment-level permissions control access to features, identities, and segments @enterprise
firefox › tests/project-permission-test.pw.ts › Project Permission Tests › Project-level permissions control access to features, environments, audit logs, and segments @enterprise

✅ oss · depot-ubuntu-latest-arm-16 — run #24072 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  2 passed

Details

stats  2 tests across 2 suites
duration  34.8 seconds
commit  5bed630
info  🔄 Run: #24072 (attempt 1)

✅ oss · depot-ubuntu-latest-16 — run #24072 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  30.8 seconds
commit  5bed630
info  🔄 Run: #24072 (attempt 1)

✅ private-cloud · depot-ubuntu-latest-16 — run #24065 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

passed  4 passed

Details

stats  4 tests across 4 suites
duration  6.9 seconds
commit  9b2fc9c
info  🔄 Run: #24065 (attempt 1)

✅ private-cloud · depot-ubuntu-latest-arm-16 — run #24065 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  5 passed

Details

stats  5 tests across 5 suites
duration  21.5 seconds
commit  9b2fc9c
info  🔄 Run: #24065 (attempt 1)

✅ oss · depot-ubuntu-latest-16 — run #24065 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  33.7 seconds
commit  9b2fc9c
info  🔄 Run: #24065 (attempt 1)

✅ oss · depot-ubuntu-latest-arm-16 — run #24065 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  2 passed

Details

stats  2 tests across 2 suites
duration  35.2 seconds
commit  9b2fc9c
info  🔄 Run: #24065 (attempt 1)

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Visual Regression

31 screenshots compared. See report for details.
View full report

@emyller emyller changed the title fix(Dashboard): Fix HTTP headers in app.flagsmith.com fix(Dashboard): Add CSP header to app.flagsmith.com Dec 2, 2026
Zaimwa9
Zaimwa9 previously approved these changes Dec 2, 2026

@Zaimwa9 Zaimwa9 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving with a question that maybe you have an answer to

Zaimwa9
Zaimwa9 previously approved these changes Dec 2, 2026
@github-actions github-actions Bot added fix and removed fix labels Dec 2, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 issues found across 1 file (changes from recent commits).

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: Auto-approval blocked by 1 unresolved issue from previous reviews.

Turn on auto-fix | Re-trigger cubic

@emyller
emyller merged commit 99ae36d into main Dec 3, 2026
22 checks passed
@emyller
emyller deleted the fix/csp-allowlist branch December 3, 2026 13:47

This branch was successfully deployed

2 active deployments
Preview – flagsmith-frontend-preview — 08cb8454 Deployed Dec 3, 2026 by vercel[bot]
Preview – flagsmith-frontend-staging — 08cb8454 Deployed Dec 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix front-end Issue related to the React Front End Dashboard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants