CDN bot protection blocks QA test runs
Maintainer thường phản hồi trong vòng 7 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
The repo-side work is in .github/workflows/qa.yml, where the bypass secret and header name would be passed only to the Playwright test steps, plus the Playwright config, where traces must be disabled whenever the header is set and the header must be scoped to the site's own host. The AWS WAF rule and the secret setup belong to infra and repo admins and cannot be done from code. Done means a manual QA run against staging and prod returns no 403s, and traces stay off when the header is present.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What's wrong: strapi.io (prod and staging) is behind CloudFront + AWS WAF bot protection. After a burst of automated requests, it answers Playwright test traffic with HTTP 403 "Request blocked … Generated by cloudfront"; WebKit gets blocked almost immediately. Test runs then fail on blocked pages instead of on real issues (the tests now report "Unexpected HTTP status … 403"). CI and scheduled runs (.github/workflows/qa.yml) will hit the same.
Ask (infra / CDN owners): an AWS WAF rule that lets requests carrying a secret header through:
- match header
x-qa-bypass(name up to you) against a secret value - action Allow, placed before the bot-control and rate-based rules (or exclude matching requests from them via a scope-down statement)
- on both CloudFront distributions, staging and prod
- share the value with QA through a secure channel (not chat or Jira); rotate it if it leaks
An IP allowlist doesn't work well: GitHub-hosted runners don't have fixed IPs.
Ask (repo admins): GitHub → Settings → Secrets and variables → Actions:
- secret
CDN_BYPASS_HEADER_VALUE - variable
CDN_BYPASS_HEADER_NAME, only if the header isn'tx-qa-bypass - optionally, put the secret in a GitHub Environment restricted to
stagingandmain
QA side (how the secret stays safe):
- the header is only sent to our own host, never to third-party scripts (Cookiebot, Google, HubSpot, …)
- only the test steps in
qa.ymlget it; the workflow is manual-only, and runs from forks never receive secrets - Playwright traces are disabled while it's set (they record headers and are uploaded as artifacts in our public repo); Lighthouse runs without it
Done when: a full QA run against prod and staging with the header gets no 403s.
- Ngôn ngữ chính
- TypeScript
- Star
- 6
- Fork
- 5
- Merge trung bình
- 5 ngày 6 giờ
- Pull request đã merge (30 ngày)
- 7
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của strapi/website
-
[SEO] Remove /blog/categories page from sitemapCó thể đã có người làm @fonodi đã nhận 6 ngày trước. Đang mởreopened
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
strapi/website#128 · 2 người được giao ·
Maintainer thường phản hồi trong vòng 7 ngày
-
Create a new collection type and component for cloud-legalCó thể đã có người làm @fonodi đã nhận 13 ngày trước. Đang mởenhancement
strapi/website#169 · 2 người được giao ·
Maintainer thường phản hồi trong vòng 7 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
Maintainer thường phản hồi trong vòng 7 ngày
-
Update GitHub Actions that still run on Node.js 20Có thể làm lại được @matej-marcisovsky đã nhận 30 ngày trước và không có pull request nào đang mở. Đang mở
strapi/website#153 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 7 ngày
-
Pricing buttons don't respond until the cards hydrateCó thể đã có người làm @fonodi đã nhận 6 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
strapi/website#152 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 7 ngày
Tất cả issue của strapi/website
Issue tương tự
-
[BUG]: Duplicate preposition in heading and unformatted feedback text on Strengthen Argument pageĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
AOSSIE-Org/DebateAI#801 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
ci: repo has no GitHub Actions workflow, so pushes and pull requests are never built or testedĐang mởagents area: runtime automation chore cli consistency dependencies developer-experience difficulty: easy documentation enhancement good first issue help wanted hygiene json-output priority: P3 starters tests
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Add: BOM CineĐang mởapproved check:passed streams:add
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày