Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

Feature request: Mask repository credentials in --verbose output

Aberta
#254 4 comentários 4 reações 0 responsáveis Ver no GitHub

@Rajeshwari2857 já está trabalhando nisso.

Desde 24/10/2026.

  • #272 de @Rajeshwari2857 — aberto

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
58/100
Tipo de issue
Funcionalidade
Clareza
Claramente especificada
Status de atividade
Estagnada
Stack de tecnologia
python
Domínio
cli, security

Direção de pesquisa

Comece localizando e lendo o printer usado pelo ponto de entrada --verbose, acompanhando como as credenciais do repositório chegam à saída dele. Está concluído quando as senhas com menos de 12 caracteres aparecem como *** e as senhas mais longas mantêm apenas seus três primeiros e três últimos caracteres, enquanto os nomes de usuário e outros campos permanecem inalterados.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

Summary

Currently, if command line flag --verbose is given, python-inspector outputs all repositories and their respective credentials, including username and password in plain text.

In order to reduce the risk of an adversary gaining access to the password, please add masking of passwords in the printer that prints the log output.

Current behavior

When running python-inspector with --verbose, the tool prints information about all configured repositories, including:

  • Repository URL or name
  • Username
  • Password in plain text

This means anyone with access to logs (local logs, CI logs, support dumps, etc.) can see the full password.

Requested behaviour

When the printer outputs credentials in --verbose mode, apply the following masking rules to the password:

  • If the password has a length of less than 12 characters, output only: ***
  • Else (password length ≥ 12), print: the first 3 characters of the password, then ***, then the last 3 characters of the password.
    Example: abc***xyz

The username and other non-secret fields can remain unchanged.

Rationale

This feature would:

  • Reduce the risk of leaking passwords to an acceptable level, because the full password is never printed.
  • Still keep --verbose useful for support and maintenance: One can still verify whether the password used is the expected one by checking the visible prefix and suffix.

To stress it again:

Masking out the password completely would render the --verbose switch useless for troubleshooting.
The proposed partial masking (abc***xyz) keeps both security and usability in balance.

Linguagem predominante
Python
Estrelas
23
Forks
29
Métricas de merge de PRs
Nenhum PR com merge em 30d

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de aboutcode-org/python-inspector

Todas as issues de aboutcode-org/python-inspector

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.