CDN bot protection blocks QA test runs
I maintainer di solito rispondono entro 7 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- TypeScript
- Stelle
- 6
- Fork
- 5
- Merge medio
- 5g 6h
- PR unite (30g)
- 7
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di strapi/website
-
[SEO] Remove /blog/categories page from sitemapForse già presa @fonodi l’ha presa 5 giorni fa. Apertareopened
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
strapi/website#128 · 2 assegnatari ·
I maintainer di solito rispondono entro 7 giorni
-
Create a new collection type and component for cloud-legalForse già presa @fonodi l’ha presa 12 giorni fa. Apertaenhancement
strapi/website#169 · 2 assegnatari ·
I maintainer di solito rispondono entro 7 giorni
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
I maintainer di solito rispondono entro 7 giorni
-
Update GitHub Actions that still run on Node.js 20Forse di nuovo libera @matej-marcisovsky l’ha presa 30 giorni fa e non c’è nessuna pull request aperta. Aperta
strapi/website#153 · 1 assegnatario ·
I maintainer di solito rispondono entro 7 giorni
-
Pricing buttons don't respond until the cards hydrateForse già presa @fonodi l’ha presa 5 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
strapi/website#152 · 1 assegnatario ·
I maintainer di solito rispondono entro 7 giorni
Tutte le issue di strapi/website
Issue simili
-
[BUG]: Duplicate preposition in heading and unformatted feedback text on Strengthen Argument pageApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
AOSSIE-Org/DebateAI#801 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
ci: repo has no GitHub Actions workflow, so pushes and pull requests are never built or testedApertaagents 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
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Add: BOM CineApertaapproved check:passed streams:add
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno