Context
The OpenAI key regex in src/middleware/redactor.ts requires the internal T3BlbkFJ base64 marker. OpenAI has since issued new-format project keys (sk-proj-*) that don't contain this marker, so they pass through unredacted.
Location: src/middleware/redactor.ts, line 87
Proposal
Add a broader fallback pattern for sk-proj-[A-Za-z0-9_-]{48,} placed after the specific marked pattern to preserve specificity.
Priority
Medium — new OpenAI key format is increasingly common.
Context
The OpenAI key regex in
src/middleware/redactor.tsrequires the internalT3BlbkFJbase64 marker. OpenAI has since issued new-format project keys (sk-proj-*) that don't contain this marker, so they pass through unredacted.Location:
src/middleware/redactor.ts, line 87Proposal
Add a broader fallback pattern for
sk-proj-[A-Za-z0-9_-]{48,}placed after the specific marked pattern to preserve specificity.Priority
Medium — new OpenAI key format is increasingly common.