feedback: proxy credentials (user:pass@) in HTTP(S)_PROXY are copied verbatim into the feedback diagnostics attachment
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
Research direction
Read codex-rs/feedback/src/feedback_diagnostics.rs, especially collect_from_pairs, and the test collect_from_pairs_reports_raw_values_and_attachment. Check how proxy values flow into feedback_diagnostics_attachment_text in codex-rs/feedback/src/lib.rs. Redact proxy URL credentials while preserving useful connectivity details, then update the test to verify credentials are absent from the attachment.
Written by the indexing model from the issue text.
Description
What version of Codex CLI is running?
rust-v0.172.0 (latest release). Code checked by reading source; the same lines are on main as of 2026-11-25.
What subscription do you have?
Not applicable: found by reading the source, not from a runtime session.
What issue are you seeing?
This is a hardening suggestion, not a vulnerability report.
codex-rs/feedback/src/feedback_diagnostics.rs (collect_from_pairs) copies the proxy environment variables into the feedback diagnostics verbatim:
let value = env.get(*key)?;
Some(format!("{key} = {value}"))
The existing test collect_from_pairs_reports_raw_values_and_attachment asserts this, with HTTPS_PROXY = https://user:[email protected]:443?secret=1 appearing unchanged in the attachment. So a proxy URL with credentials (http://user:pass@host:port) is attached to the feedback upload when the user chooses to include logs (feedback_diagnostics_attachment_text(include_logs) in codex-rs/feedback/src/lib.rs).
What the user sees before sending, from codex-rs/tui/src/bottom_pane/feedback_view.rs:
- The consent screen lists the diagnostics attachment filename, and for every category except "good result" it also prints each proxy value (
should_show_feedback_connectivity_details). - For the "good result" category the values are not printed, while
feedback_diagnostics_attachment_textdoes not check the category. I did not trace the call site to confirm the attachment is sent in that case.
What steps can reproduce the bug?
On the unmodified feedback_diagnostics.rs from the tag, setting HTTPS_PROXY=http://alice:[email protected]:3128 and calling FeedbackDiagnostics::collect_from_env() yields a diagnostic whose details contain alice:s3cr3t-pass. I ran this as a unit test against the file only, not through the TUI or an upload.
What is the expected behavior?
Redact the userinfo part of a proxy URL (user:pass@) in the diagnostics, for example http://***@proxy.example:3128, so the connectivity information stays useful and the credential is not copied.
Additional information
Found by static analysis of the Rust workspace.
- Dominant language
- Rust
- Stars
- 136k
- Forks
- 21.6k
- Avg merge
- 1m
- Merged PRs (30d)
- 997
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openai/codex
-
app bug rate-limits
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Windows PowerShell 5.1: non-ASCII text piped into a native command arrives as `?`Possibly taken @akhil9tiet claimed this today. Openbug CLI tool-calls windows-os
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
openai/codex#64139 · 2 comments ·
Maintainers usually reply within 1 day
-
core-plugins: remote bundle install keeps the temp directory before a fallible rename and leaves it behind on failurePossibly taken @akhil9tiet claimed this 1 day ago. Openbug CLI skills
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openai/codex#63907 · 2 comments ·
Maintainers usually reply within 1 day
-
bug CLI
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openai/codex#63906 · 1 comment ·
Maintainers usually reply within 1 day
-
codex login status can panic when a saved API-key value contains non-ASCII textPossibly taken @akhil9tiet claimed this 2 days ago. Openauth bug CLI
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
openai/codex#63868 · 2 comments ·
Maintainers usually reply within 1 day
Similar issues
-
triage
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
kornia/kornia-rs#1416 · 1 comment ·
Maintainers usually reply within 2 days
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 2 days
-
My Caps shows "Shared" on private Caps that were never sharedPossibly taken @AksharP5 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
CapSoftware/Cap#4569 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day