@webblackbox/protocol
Advanced tools
+31
-4
@@ -132,6 +132,33 @@ // src/blob.ts | ||
| redaction: { | ||
| redactHeaders: ["authorization", "cookie", "set-cookie"], | ||
| redactCookieNames: ["token", "session", "auth"], | ||
| redactBodyPatterns: ["password", "token", "secret", "otp"], | ||
| blockedSelectors: [".secret", "[data-sensitive]", "input[type='password']"], | ||
| redactHeaders: [ | ||
| "authorization", | ||
| "cookie", | ||
| "set-cookie", | ||
| "proxy-authorization", | ||
| "x-api-key", | ||
| "x-auth-token", | ||
| "x-csrf-token", | ||
| "x-xsrf-token" | ||
| ], | ||
| redactCookieNames: ["token", "session", "auth", "jwt", "refresh_token", "csrf", "xsrf"], | ||
| redactBodyPatterns: [ | ||
| "password", | ||
| "token", | ||
| "secret", | ||
| "otp", | ||
| "credential", | ||
| "api_key", | ||
| "apikey", | ||
| "private_key", | ||
| "refresh_token" | ||
| ], | ||
| blockedSelectors: [ | ||
| ".secret", | ||
| "[data-sensitive]", | ||
| "[data-webblackbox-redact]", | ||
| "input[type='password']", | ||
| "input[name*='token']", | ||
| "input[name*='secret']", | ||
| "input[autocomplete='cc-number']" | ||
| ], | ||
| hashSensitiveValues: true | ||
@@ -138,0 +165,0 @@ }, |
+1
-1
| { | ||
| "name": "@webblackbox/protocol", | ||
| "description": "Shared event types, schemas, IDs, and configuration defaults for the WebBlackbox ecosystem.", | ||
| "version": "0.4.4", | ||
| "version": "0.4.5", | ||
| "type": "module", | ||
@@ -6,0 +6,0 @@ "main": "./dist/index.js", |
+3
-2
@@ -251,4 +251,5 @@ <p align="center"> | ||
| // - bodyCaptureMaxBytes: 262144 (256 KiB base profile) | ||
| // - Redacts: authorization, cookie, set-cookie headers | ||
| // - Blocks: .secret, [data-sensitive], input[type='password'] | ||
| // - Redacts: authorization, cookie, set-cookie, proxy auth, API key, auth token, CSRF/XSRF headers | ||
| // - Redacts cookie names such as token, session, auth, jwt, refresh_token, csrf, xsrf | ||
| // - Blocks: .secret, [data-sensitive], [data-webblackbox-redact], password/token/secret inputs, card-number autocomplete | ||
| // | ||
@@ -255,0 +256,0 @@ // Export policy defaults: |
74509
0.89%1807
1.52%283
0.35%