Conversation
…word) O repositório de plugins do OSGeo rejeitou a release 5.2.0 alegando 9 "possíveis senhas hardcoded" (Bandit B105). Rodei bandit no repo inteiro pra confirmar: são todos falso positivo -- a heurística do B105 dispara em qualquer atribuição a um nome contendo "pass"/"password", sem entender o contexto. Os 8 achados reais (rodando bandit direto, --ignore-nosec): - 5x `PASSWORD = "PASSWORD"`: chave de QgsProcessingParameter, não senha. - 2x `FIRST_PASS_MIN_AREA` / `SECOND_PASS_MIN_AREA` (trataRasterAlgorithm): nome de parâmetro de área mínima, "PASS" aqui é de "primeira/segunda passada" do algoritmo, não senha -- só bate no regex do bandit. - 1x `password == ""` (postgisDb.py): checagem de senha vazia pra decidir se pede credencial ao usuário, não um valor hardcoded. Suprimidos com `# nosec B105` (convenção padrão do bandit, reconhecida por qualquer scanner que rode bandit por baixo). Confirmado com bandit local: 8 suprimidos, 0 issues B105/106/107 restantes, sem warning de parsing (comentário só com o ID do teste, sem texto livre atrás -- texto livre vira token inválido e gera warning, embora não quebre a supressão). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Correção necessária pra release 5.2.0 passar no scanner do repositório de plugins do OSGeo. Ver commit
4c1c7753pra detalhes -- 8 falsos positivos do bandit B105 (hardcoded password), todos chave de parâmetro/checagem de senha vazia, nenhuma credencial real.🤖 Generated with Claude Code