Implement redact and route_local actions:
authormaximiliancw <redacted>
Fri, 9 Jan 2026 15:04:32 +0000 (16:04 +0100)
committermaximiliancw <redacted>
Fri, 9 Jan 2026 15:04:32 +0000 (16:04 +0100)
commita3f71141c0d2b48d352c30593a1270d404fe0704
tree9c6c43516dec5d85288d54aa983244f8455c35c4
parent1d8b469b92bf2da08a30fed06fc677e3922ec734
Implement redact and route_local actions:

- Integrate redact action: redacts secrets before PII detection, unredacts in responses
- Implement route_local action: routes requests with secrets to local provider
- Update stream transformer to handle both PII and secrets contexts
- Add comprehensive tests for secrets routing logic
- Update config.example.yaml with new entity types and action documentation
- Update README.md with complete secrets detection features

New secret entity types (opt-in):

- API_KEY_OPENAI, API_KEY_AWS, API_KEY_GITHUB
- JWT_TOKEN, BEARER_TOKEN

Response headers:
- X-PasteGuard-Secrets-Redacted: true (when action=redact)
README.md
config.example.yaml
src/routes/proxy.test.ts
src/routes/proxy.ts
src/services/decision.test.ts
src/services/decision.ts
src/services/stream-transformer.ts
git clone https://git.99rst.org/PROJECT