Feature request: Mask repository credentials in --verbose output
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 58/100
Línea de trabajo
Empieza localizando y leyendo el printer utilizado por el punto de entrada --verbose, siguiendo cómo llegan las credenciales del repositorio a su salida. Se considera terminado cuando las contraseñas de menos de 12 caracteres aparecen como *** y las contraseñas más largas conservan solo sus tres primeros y tres últimos caracteres, mientras que los nombres de usuario y otros campos permanecen sin cambios.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
--verboseuseful 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.
- Lenguaje dominante
- Python
- Estrellas
- 23
- Forks
- 29
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de aboutcode-org/python-inspector
-
Dificultad 3/5 Medio día Aptitud para principiantes 62/100
aboutcode-org/python-inspector#268 · 1 comentario ·
-
Add support for pylock.tomlPosiblemente ocupada @Anurag-S1ngh la tomó hace 6 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
aboutcode-org/python-inspector#259 · 1 comentario ·
-
InconsistentCandidate: Pre-Release not allowPosiblemente ocupada @Anurag-S1ngh la tomó hace 6 días. Abiertobug design nice-to-have
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
aboutcode-org/python-inspector#257 · 1 comentario ·
-
Python Inspector version 0.15.0 contains the wrong version stringPosiblemente ocupada @Anurag-S1ngh la tomó hace 6 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
aboutcode-org/python-inspector#253 · 1 comentario ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
aboutcode-org/python-inspector#246 · 2 comentarios · 2 reacciones ·
Todos los issues de aboutcode-org/python-inspector
Issues similares
-
ReadQwen3PaperTask5 rejects correct answers that differ only in order, case, or underscore formPosiblemente ocupada @Kingpython123 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
Tongyi-MAI/MobileWorld#72 ·
-
_threads/application: Update typing annotations using `pyupgrade --py311-plus`Posiblemente ocupada @gudnimg la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Health probes return 401 when authentication is enabled and the API is served under /orbPosiblemente ocupada @fgogolli la tomó hoy. Abiertoarea: api priority: p2 size: S type: bug
Dificultad 2/5 Medio día Aptitud para principiantes 75/100
finos/open-resource-broker#704 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
BCDA-APS/polar-bits#93 ·
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
GoogleCloudPlatform/gce-rescue#218 ·
Los mantenedores suelen responder en 2 días