Respostas 5xx da API na varredura ativa do ZAP

Open
#263 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
github-actions, javascript, nodejs

Research direction

Start by retrieving the relatorio-zap artifact from the run linked to PR #258 and inspect api.json to list routes and 5xx statuses. For each input-caused 500, trace the route in api/ and add a test under api/test/ showing it returns 400 in Problem Details; document expected GitHub-related 502 and 503 responses in docs/seguranca.md. Done when the next ZAP run reports only expected cases for rule 100000.

Written by the indexing model from the issue text.

Description

bug item-do-catalogo trilha:T10

Objetivo

Investigar e corrigir as respostas 5xx que a varredura ativa do ZAP provocou na API.

Motivo

Na primeira rodada do job zap (PR #258, 10/11/2026), o alerta "A Server Error response code was returned by the server" (regra 100000) apareceu com 230 ocorrências. Parte pode ser esperada (502 e 503 quando a API do GitHub limita o POST /v1/sincronizar), mas um 500 de entrada malformada seria falha da API. O relatório está no artefato relatorio-zap do run.

Critérios de entrega

  • Lista das rotas e dos status 5xx, tirada do api.json do artefato relatorio-zap.
  • Cada 500 causado por entrada vira 400 em Problem Details, com teste em api/test/.
  • Os 502 e 503 esperados (GitHub fora ou limitado) ficam explicados no docs/seguranca.md.
  • Na rodada seguinte, o alerta 100000 cai para só os casos esperados.

Fora desta issue

Mudar a varredura ou desligar regras do ZAP. Publicar a API.

Dominant language
JavaScript
Stars
0
Forks
0
Avg merge
15h 6m
Merged PRs (30d)
118

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from learnTECH-community/formacao-dev

All issues in learnTECH-community/formacao-dev

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.