Feature request: Mask repository credentials in --verbose output
評估
研究方向
首先定位並閱讀 --verbose 入口點使用的 printer,追蹤 repository 憑證如何傳遞到其輸出。完成標準是:長度少於 12 個字元的密碼顯示為 ***,更長的密碼僅保留其開頭三個字元和結尾三個字元,同時使用者名稱和其他欄位保持不變。
由索引模型根據 Issue 內容生成。
描述
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.
- 主要語言
- Python
- 星號
- 23
- 分支
- 29
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
aboutcode-org/python-inspector 的其他 Issue
-
難度 3/5 半天 新手友好度 62/100
aboutcode-org/python-inspector#268 · 1 則留言 ·
-
Add support for pylock.toml可能已有人在做 @Anurag-S1ngh 於 6 天前認領。 未關閉
難度 4/5 3-5 天 新手友好度 35/100
aboutcode-org/python-inspector#259 · 1 則留言 ·
-
InconsistentCandidate: Pre-Release not allow可能已有人在做 @Anurag-S1ngh 於 6 天前認領。 未關閉bug design nice-to-have
難度 4/5 3-5 天 新手友好度 35/100
aboutcode-org/python-inspector#257 · 1 則留言 ·
-
Python Inspector version 0.15.0 contains the wrong version string可能已有人在做 @Anurag-S1ngh 於 6 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 45/100
aboutcode-org/python-inspector#253 · 1 則留言 ·
-
難度 3/5 1-2 天 新手友好度 52/100
aboutcode-org/python-inspector#246 · 2 則留言 · 2 個 reaction ·
查看 aboutcode-org/python-inspector 的全部 Issue
相似的 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 74/100
BCDA-APS/polar-bits#93 ·
-
infer_audio_type only recognises one MPEG Layer III frame header, so most MP3 files are rejected可能已有人在做 @Steve-20-ai 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
[BUG] - ssh_config `Match tagged` statement always applies可能已有人在做 @AtharvRG 今天認領。 未關閉Bug
難度 2/5 1-3 小時 新手友好度 68/100
paramiko/paramiko#2715 · 1 則留言 ·
維護者通常 9 天內回覆
-
auto-rejected intake mcp-intake needs-salvage priority:high type:feature
難度 2/5 1-3 小時 新手友好度 65/100
Ikalus1988/MisakaNet#4221 · 2 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆