CSP e cabeçalhos de isolamento no painel servido pelo Nginx
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 70/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- nginx
- Domain
- infrastructure, security
Research direction
Start by reading nginx/painel.conf and checking the inline theme script in index.html to identify the CSP hash and the API origin needed for connect-src. Add the requested CSP and isolation headers, then run the browser tests with the panel served by Nginx and check that the console has no CSP errors. Done when ZAP no longer reports rules 10038 and 90004.
Written by the indexing model from the issue text.
Description
Objetivo
Pôr Content-Security-Policy e os cabeçalhos de isolamento no painel servido pelo Nginx.
Motivo
O ZAP baseline (PR #258, 10/11/2026) achou um alerta médio, "Content Security Policy (CSP) Header Not Set" (regra 10038), e um baixo, "Insufficient Site Isolation Against Spectre Vulnerability" (regra 90004, 10 ocorrências), no nginx/painel.conf. O index.html tem um script inline do tema, que pede hash na CSP. A API já manda CSP pelo helmet.
Critérios de entrega
-
Content-Security-Policynonginx/painel.conf, comdefault-src 'self', o hash do script inline do tema econnect-srcpara a API. -
Cross-Origin-Opener-PolicyeCross-Origin-Resource-Policyno painel. - Os testes no navegador seguem passando com o painel servido pelo Nginx, sem erro de CSP no console.
- Na rodada seguinte do job
zap, as regras 10038 e 90004 não aparecem.
Fora desta issue
CSP no GitHub Pages (o Pages não deixa configurar cabeçalhos; risco aceito em docs/ameacas.md).
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 0
- Avg merge
- 15h 6m
- Merged PRs (30d)
- 118
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from learnTECH-community/formacao-dev
-
Comunidade: reconhecer quem contribui, inclusive sem código (docs/comunidade/quem-contribuiu.md)Opendocumentation trilha:T11
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
learnTECH-community/formacao-dev#351 ·
Maintainers usually reply within 1 day
-
trilha:T4
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
learnTECH-community/formacao-dev#348 ·
Maintainers usually reply within 1 day
-
boa-primeira-issue good first issue trilha:T2
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
learnTECH-community/formacao-dev#347 ·
Maintainers usually reply within 1 day
-
boa-primeira-issue good first issue trilha:T2
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
learnTECH-community/formacao-dev#346 ·
Maintainers usually reply within 1 day
-
trilha:T9
Difficulty 2/5 Under an hour Newbie friendliness 72/100
learnTECH-community/formacao-dev#343 ·
Maintainers usually reply within 1 day
All issues in learnTECH-community/formacao-dev
Similar issues
-
marketing
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
data good first issue help wanted
Difficulty 1/5 Under an hour Newbie friendliness 92/100
pacocartones/free-llm-api-hub#747 ·
Maintainers usually reply within 1 day
-
Special topics rows on the Courses page have misaligned columnsPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
BCStudentSoftwareDevTeam/cas#481 ·
Maintainers usually reply within 7 days
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
Maintainers usually reply within 1 day