Skip to content

Warn when session files look like they contain secrets - #13

Closed
00200200 wants to merge 1 commit into
openai:mainfrom
00200200:warn-on-session-secrets
Closed

00200200 wants to merge 1 commit into
openai:mainfrom
00200200:warn-on-session-secrets

Conversation

@00200200

Copy link
Copy Markdown

Summary

Codex session JSONL can pick up API keys and tokens, and Euphony will happily load those files from a public URL. This adds a small best-effort scan for common OpenAI / GitHub / AWS credential shapes, shows a warning toast when they match, and documents the sharing risk in the README.

Fixes #2

Test plan

  • pytest tests/test_secret_scan.py tests/test_euphony.py
  • pnpm exec tsc --noEmit
  • Load a Codex JSONL that contains a fake sk- key and confirm the warning toast
  • Load a normal session without credentials and confirm no warning

Codex JSONL shared via a public URL can include API keys and tokens.
Scan for a few common credential patterns, surface a warning toast, and
note the risk in the README.
@00200200

Copy link
Copy Markdown
Author

Closing, since this repository has not merged outside pull requests and has been quiet since April. Happy to reopen if that changes.

@00200200 00200200 closed this Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Codex session files can contain secrets (API keys, tokens, passwords)

1 participant