mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-11 05:11:49 +01:00
Add opt-in user OAuth, scoped first-party MCP tools, durable mutation receipts, consent UI, and vendor workflow packages. Preserve normal scheduling and human attribution. Co-Authored-By: Paperclip <noreply@paperclip.ing>
31 lines
1.4 KiB
TypeScript
31 lines
1.4 KiB
TypeScript
export const HTTP_LOG_REDACT_PATHS = [
|
|
"req.headers.authorization",
|
|
"res.headers.location",
|
|
'req.headers["proxy-authorization"]',
|
|
"req.headers.cookie",
|
|
// "set-cookie" is normally a response header; keep the request-side
|
|
// path as defensive coverage in case a proxy forwards it inbound.
|
|
'req.headers["set-cookie"]',
|
|
'res.headers["set-cookie"]',
|
|
// Credential- and session-paired headers with no debugging value.
|
|
'req.headers["x-csrf-token"]',
|
|
'req.headers["x-xsrf-token"]',
|
|
'req.headers["x-api-key"]',
|
|
// Cloud proxy credentials and signed assertions authorize tenant access.
|
|
'req.headers["x-paperclip-cloud-tenant-token"]',
|
|
'req.headers["x-paperclip-cloud-session-id"]',
|
|
'req.headers["x-paperclip-cloud-runtime-identity"]',
|
|
'req.headers["x-paperclip-cloud-control"]',
|
|
// Runtime GitHub capabilities authorize credential acquisition for a live run.
|
|
'req.headers["x-paperclip-github-capability"]',
|
|
// Telegram's optional webhook verification header is a reusable bearer
|
|
// secret sent on every provider callback.
|
|
'req.headers["x-telegram-bot-api-secret-token"]',
|
|
// The structured failure logger adds a sanitized request-body copy under
|
|
// `reqBody`. Keep the standard connector credential envelope covered again
|
|
// at the final serialization boundary in case a future custom serializer
|
|
// bypasses the recursive redactor.
|
|
"reqBody.credentials",
|
|
"errorContext.details.credentials",
|
|
] as const;
|