Skip to content

feat: hide sensitive files - #867

Closed
jjlai5 wants to merge 1 commit into
openai:mainfrom
jjlai5:feat/hide-sentive
Closed

jjlai5 wants to merge 1 commit into
openai:mainfrom
jjlai5:feat/hide-sentive

Conversation

@jjlai5

@jjlai5 jjlai5 commented May 8, 2025 •

Copy link
Copy Markdown

What

This PR prevents codex read users' .gitignore, which contains where users' secret tokens are.

This PR resolves #85

Why

Users do not like to leak their secret tokens and keys to OPENAI. After resolve this, users who have sensitive files concern will start to use codex

How

  1. codex will load .gitignore in users' projects
  2. parse patterns in .gitignore to Regex
  3. codex will skip files that match Regex patterns

@github-actions

github-actions Bot commented May 8, 2025 •

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@jjlai5
jjlai5 force-pushed the feat/hide-sentive branch from fcb04a3 to ddfb3e3 Compare May 8, 2025 20:45
@jjlai5
jjlai5 force-pushed the feat/hide-sentive branch from ddfb3e3 to 2e7dff6 Compare May 10, 2025 07:08
@jjlai5
jjlai5 marked this pull request as ready for review May 10, 2025 19:10
@jjlai5

jjlai5 commented May 19, 2025

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@binbandit

Copy link
Copy Markdown
Contributor

This is solved by #206

@codex-maintainers

Copy link
Copy Markdown

Thanks for the contribution! We're primarily focused on the native/Rust implementation of Codex CLI and would love to see if this is still an issue on the latest version. If it is, we're happy to take a look at a PR to the codex-rs/ implementation.

@github-actions github-actions Bot locked and limited conversation to collaborators Aug 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ability to hide sensitive files from agent

4 participants