flare-redact 1.8.0 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +91 -0
- package/README.md +121 -1151
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +50 -8
- package/dist/cli.js.map +1 -1
- package/dist/code-reference.d.ts +31 -0
- package/dist/code-reference.d.ts.map +1 -0
- package/dist/code-reference.js +157 -0
- package/dist/code-reference.js.map +1 -0
- package/dist/file-discovery.d.ts +6 -0
- package/dist/file-discovery.d.ts.map +1 -1
- package/dist/file-discovery.js +78 -24
- package/dist/file-discovery.js.map +1 -1
- package/dist/gateway/cli.d.ts +1 -1
- package/dist/gateway/cli.d.ts.map +1 -1
- package/dist/gateway/cli.js +3 -3
- package/dist/gateway/cli.js.map +1 -1
- package/dist/help.d.ts +1 -1
- package/dist/help.d.ts.map +1 -1
- package/dist/help.js +45 -25
- package/dist/help.js.map +1 -1
- package/dist/init.d.ts +9 -1
- package/dist/init.d.ts.map +1 -1
- package/dist/init.js +135 -30
- package/dist/init.js.map +1 -1
- package/dist/register.d.ts +17 -0
- package/dist/register.d.ts.map +1 -0
- package/dist/register.js +24 -0
- package/dist/register.js.map +1 -0
- package/dist/sentry.d.ts +57 -0
- package/dist/sentry.d.ts.map +1 -0
- package/dist/sentry.js +311 -0
- package/dist/sentry.js.map +1 -0
- package/dist/staged.d.ts +45 -0
- package/dist/staged.d.ts.map +1 -0
- package/dist/staged.js +137 -0
- package/dist/staged.js.map +1 -0
- package/docs/guide.md +1267 -0
- package/package.json +18 -4
package/dist/gateway/cli.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* and flags for the thirty seconds when you are trying it out.
|
|
7
7
|
*/
|
|
8
8
|
import { type GatewayConfig, type RawConfig } from './config.js';
|
|
9
|
-
export declare const GATEWAY_HELP = "flare-redact gateway
|
|
9
|
+
export declare const GATEWAY_HELP = "flare-redact gateway: redact what leaves your network, without touching your code\n\nUSAGE\n flare-redact gateway [options]\n\n Point a vendor SDK's base URL at this process. Request bodies are redacted on\n the way out and the originals are restored in the reply, streaming included.\n\nOPTIONS\n --config <file> JSON configuration file\n --host <host> bind address (default: 127.0.0.1)\n --port <n> bind port (default: 8787)\n --upstream <url> forward everything to this origin\n --route <prefix=url> add a prefixed route (repeatable)\n --paths <a,b> only redact these JSON body paths\n (e.g. 'messages[*].content,input,prompt')\n --only <ids> use only these detectors\n --preset <name> a named policy: logs | llm | gdpr | strict\n --enable <ids> turn on extra detectors (e.g. pii,phone)\n --disable <ids> turn off detectors\n --mode <m> mask | label | hash | pseudonym | surrogate\n --token-env <n> env var holding the API bearer token\n (default: FLARE_GATEWAY_TOKEN)\n --no-restore do not put originals back into responses\n --no-metrics disable the /metrics endpoint\n --redact-text also redact form and text/* request bodies\n --log <level> silent | info | debug (default: info)\n --print-config print the resolved configuration and exit\n -h, --help, help show this help\n\nENVIRONMENT\n FLARE_UPSTREAM, FLARE_GATEWAY_HOST, FLARE_GATEWAY_PORT, FLARE_GATEWAY_TOKEN,\n FLARE_REDACT_ONLY, FLARE_REDACT_ENABLE, FLARE_REDACT_DISABLE,\n FLARE_REDACT_MODE, FLARE_REDACT_SECRET, FLARE_GATEWAY_MAX_BODY_BYTES,\n FLARE_GATEWAY_TIMEOUT_MS, FLARE_GATEWAY_SESSION_TTL_MS, FLARE_GATEWAY_LOG\n\nEXAMPLES\n flare-redact gateway --upstream https://api.openai.com --enable pii\n flare-redact gateway --route /openai=https://api.openai.com \\\n --route /anthropic=https://api.anthropic.com\n flare-redact gateway --config flare-gateway.json\n\n # then, in your application, no other change\n export OPENAI_BASE_URL=http://127.0.0.1:8787/openai/v1\n\nSEE ALSO\n flare-redact help gateway what the sidecar does and when to reach for it\n flare-redact help topics everything else this tool can explain\n";
|
|
10
10
|
/** Parse gateway flags into a config layer. Throws {@link GatewayConfigError}. */
|
|
11
11
|
export declare function parseGatewayArgs(argv: string[]): {
|
|
12
12
|
raw: RawConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/gateway/cli.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAKL,KAAK,aAAa,EAClB,KAAK,SAAS,EACf,MAAM,aAAa,CAAC;AAIrB,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/gateway/cli.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAKL,KAAK,aAAa,EAClB,KAAK,SAAS,EACf,MAAM,aAAa,CAAC;AAIrB,eAAO,MAAM,YAAY,6xEAgDxB,CAAC;AAcF,kFAAkF;AAClF,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG;IAAE,GAAG,EAAE,SAAS,CAAC;IAAC,IAAI,EAAE,OAAO,CAAC;IAAC,WAAW,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,CAgE/I;AAgBD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,CAAC,UAAU,GAAG,aAAa,CAajF;AAED,sFAAsF;AACtF,wBAAsB,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,OAAO,CAAC,MAAM,CAAC,CAiChG"}
|
package/dist/gateway/cli.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { readFileSync } from 'node:fs';
|
|
9
9
|
import { configFromEnv, resolveConfig, GatewayConfigError, DEFAULT_PORT, } from './config.js';
|
|
10
10
|
import { createGateway } from './server.js';
|
|
11
|
-
export const GATEWAY_HELP = `flare-redact gateway
|
|
11
|
+
export const GATEWAY_HELP = `flare-redact gateway: redact what leaves your network, without touching your code
|
|
12
12
|
|
|
13
13
|
USAGE
|
|
14
14
|
flare-redact gateway [options]
|
|
@@ -50,7 +50,7 @@ EXAMPLES
|
|
|
50
50
|
--route /anthropic=https://api.anthropic.com
|
|
51
51
|
flare-redact gateway --config flare-gateway.json
|
|
52
52
|
|
|
53
|
-
# then, in your application
|
|
53
|
+
# then, in your application, no other change
|
|
54
54
|
export OPENAI_BASE_URL=http://127.0.0.1:${DEFAULT_PORT}/openai/v1
|
|
55
55
|
|
|
56
56
|
SEE ALSO
|
|
@@ -199,7 +199,7 @@ export function buildConfig(argv, env) {
|
|
|
199
199
|
const config = resolveConfig(file, fromEnv, parsed.raw, token ? { token } : undefined);
|
|
200
200
|
if (!config.routes.length) {
|
|
201
201
|
throw new GatewayConfigError('no upstream configured. Pass --upstream <url>, --route <prefix>=<url>, a --config file, or set FLARE_UPSTREAM. ' +
|
|
202
|
-
'The /v1 redaction API works without one
|
|
202
|
+
'The /v1 redaction API works without one; start with --upstream http://localhost:1 if that is all you need.');
|
|
203
203
|
}
|
|
204
204
|
return config;
|
|
205
205
|
}
|
package/dist/gateway/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/gateway/cli.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,EACL,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,YAAY,GAGb,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG5C,MAAM,CAAC,MAAM,YAAY,GAAG;;;;;;;;;;;8CAWkB,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAgCd,YAAY;;;;;CAKvD,CAAC;AAEF,SAAS,GAAG,CAAC,KAAyB,EAAE,IAAY;IAClD,IAAI,CAAC,KAAK;QAAE,MAAM,IAAI,kBAAkB,CAAC,GAAG,IAAI,kCAA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AChC,CAAC,CAAC,CAAC;IACH,MAAM,OAAO,CAAC,KAAK,EAAE,CAAC;IACtB,OAAO,CAAC,CAAC;AACX,CAAC"}
|
package/dist/help.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export interface HelpTopic {
|
|
|
14
14
|
/** The topic itself. */
|
|
15
15
|
readonly body: string;
|
|
16
16
|
}
|
|
17
|
-
export declare const HELP = "flare-redact
|
|
17
|
+
export declare const HELP = "flare-redact: hide secrets & PII before they hit a log\n\nUSAGE\n flare-redact [options] [files...] stdin if no files\n flare-redact init [--ci] [--hook] suggest the integrations for this project\n flare-redact gateway [options] run the redaction sidecar proxy\n flare-redact help [topic] explain a topic in depth\n\nOPTIONS\n --scan list what would be redacted, and why (input unchanged)\n --staged scan only the lines the next git commit adds\n --no-code-filter in a scan, also report assignments whose value is code\n (token = process.env.TOKEN, password: string)\n --format <f> scan output: pretty | json | sarif (default: pretty)\n --sarif shorthand for --scan --format sarif\n --summary print a count of findings per detector\n --json parse input as JSON and redact recursively\n --csv parse input as CSV and redact every cell\n --mode <m> mask | label | hash | pseudonym | surrogate\n (fpe is a deprecated alias for pseudonym)\n --secret-env <n> read the transform key from env var <n>\n (default: FLARE_REDACT_SECRET)\n --hash-salt <s> deprecated; prefer --secret-env\n --min-confidence <n>\n drop findings below this confidence (0-1)\n --refine-confidence\n use the learned classifier to refine confidence for\n generic detectors (fewer false positives on UUIDs,\n hashes, and slugs); pairs with --min-confidence\n --include-values include raw matched values in --scan output\n (unsafe for logs and reports)\n --preset <name> a named policy: logs | llm | gdpr | strict\n --only <ids> use only these detectors (comma-separated)\n --enable <ids> turn on extra detectors (e.g. ipv4,high_entropy)\n --disable <ids> turn off detectors (e.g. email)\n --mask <str> replace every secret with this string\n --allow <vals> never redact these exact values (comma-separated)\n --exclude <glob> skip matching paths during directory scans (repeatable)\n --max-file-size <size>\n largest directory-discovered file to scan (default: 1mb)\n accepts bytes or kb/mb/gb suffixes\n --no-default-excludes\n also walk .git, .hg, .svn, node_modules, and vendor\n --term <word> also catch this exact word/phrase (repeatable)\n --terms <file> also catch every word/phrase in this file (one per line)\n --vault <file> reversible: write an AES-GCM encrypted map to <file>\n --restore <file> restore using an encrypted map written by --vault\n --vault-password-env <n>\n vault password env var (default: FLARE_REDACT_VAULT_PASSWORD)\n --allow-plaintext-vault\n explicitly allow reading a legacy plaintext vault\n --list show all detectors and exit\n -h, --help show this help\n -v, --version show version\n\nSUBCOMMANDS\n gateway run a reverse proxy that redacts request bodies and\n restores the originals in the reply, no code changes\n in the calling application. See: flare-redact gateway help\n help explain a topic. Run 'flare-redact help topics' for the\n index, or 'flare-redact help <detector>' for one detector.\n\nEXAMPLES\n tail -f app.log | flare-redact\n flare-redact --scan config.env\n flare-redact --scan .\n flare-redact --scan . --exclude 'fixtures/**' --max-file-size 2mb\n flare-redact --staged\n flare-redact --scan --format json .env app.log\n flare-redact --sarif .env > flare-redact.sarif\n flare-redact --json --mode hash < event.json\n flare-redact --enable high_entropy,ipv4 < app.log\n flare-redact --scan --enable high_entropy --refine-confidence --min-confidence 0.5 app.log\n\nStuck? 'flare-redact help topics' lists everything this help can explain.\n";
|
|
18
18
|
export declare const TOPICS: readonly HelpTopic[];
|
|
19
19
|
/** The topic index, as printed by `help topics`. */
|
|
20
20
|
export declare function topicIndex(): string;
|
package/dist/help.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../src/help.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,MAAM,WAAW,SAAS;IACxB,yCAAyC;IACzC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,0CAA0C;IAC1C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,wBAAwB;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../src/help.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,MAAM,WAAW,SAAS;IACxB,yCAAyC;IACzC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,0CAA0C;IAC1C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,wBAAwB;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,IAAI,+6HA2EhB,CAAC;AAkVF,eAAO,MAAM,MAAM,EAAE,SAAS,SAAS,EAAe,CAAC;AAEvD,oDAAoD;AACpD,wBAAgB,UAAU,IAAI,MAAM,CAWnC;AAoCD,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,4DAA4D;IAC5D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,UAAU,CAiBrD"}
|
package/dist/help.js
CHANGED
|
@@ -7,16 +7,19 @@
|
|
|
7
7
|
* repository; if one disagrees with the code, the topic is the bug.
|
|
8
8
|
*/
|
|
9
9
|
import { DETECTORS } from './index.js';
|
|
10
|
-
export const HELP = `flare-redact
|
|
10
|
+
export const HELP = `flare-redact: hide secrets & PII before they hit a log
|
|
11
11
|
|
|
12
12
|
USAGE
|
|
13
13
|
flare-redact [options] [files...] stdin if no files
|
|
14
|
-
flare-redact init [--ci]
|
|
14
|
+
flare-redact init [--ci] [--hook] suggest the integrations for this project
|
|
15
15
|
flare-redact gateway [options] run the redaction sidecar proxy
|
|
16
16
|
flare-redact help [topic] explain a topic in depth
|
|
17
17
|
|
|
18
18
|
OPTIONS
|
|
19
19
|
--scan list what would be redacted, and why (input unchanged)
|
|
20
|
+
--staged scan only the lines the next git commit adds
|
|
21
|
+
--no-code-filter in a scan, also report assignments whose value is code
|
|
22
|
+
(token = process.env.TOKEN, password: string)
|
|
20
23
|
--format <f> scan output: pretty | json | sarif (default: pretty)
|
|
21
24
|
--sarif shorthand for --scan --format sarif
|
|
22
25
|
--summary print a count of findings per detector
|
|
@@ -61,7 +64,7 @@ OPTIONS
|
|
|
61
64
|
|
|
62
65
|
SUBCOMMANDS
|
|
63
66
|
gateway run a reverse proxy that redacts request bodies and
|
|
64
|
-
restores the originals in the reply
|
|
67
|
+
restores the originals in the reply, no code changes
|
|
65
68
|
in the calling application. See: flare-redact gateway help
|
|
66
69
|
help explain a topic. Run 'flare-redact help topics' for the
|
|
67
70
|
index, or 'flare-redact help <detector>' for one detector.
|
|
@@ -71,6 +74,7 @@ EXAMPLES
|
|
|
71
74
|
flare-redact --scan config.env
|
|
72
75
|
flare-redact --scan .
|
|
73
76
|
flare-redact --scan . --exclude 'fixtures/**' --max-file-size 2mb
|
|
77
|
+
flare-redact --staged
|
|
74
78
|
flare-redact --scan --format json .env app.log
|
|
75
79
|
flare-redact --sarif .env > flare-redact.sarif
|
|
76
80
|
flare-redact --json --mode hash < event.json
|
|
@@ -83,7 +87,7 @@ const TOPIC_LIST = [
|
|
|
83
87
|
{
|
|
84
88
|
name: 'detectors',
|
|
85
89
|
summary: 'choosing what gets redacted, by id or tag',
|
|
86
|
-
body: `DETECTORS
|
|
90
|
+
body: `DETECTORS: choosing what gets redacted
|
|
87
91
|
|
|
88
92
|
'flare-redact --list' prints every detector: a filled circle is on by default, a
|
|
89
93
|
hollow one is off until you ask for it.
|
|
@@ -126,15 +130,15 @@ Custom values that no detector knows about:
|
|
|
126
130
|
},
|
|
127
131
|
{
|
|
128
132
|
name: 'modes',
|
|
129
|
-
summary: 'mask, label, hash, pseudonym, surrogate
|
|
130
|
-
body: `MODES
|
|
133
|
+
summary: 'mask, label, hash, pseudonym, surrogate, and which to pick',
|
|
134
|
+
body: `MODES: what replaces a matched value
|
|
131
135
|
|
|
132
136
|
--mode mask the default. Partial, shape-preserving: a***@***, sk-***
|
|
133
137
|
--mode label the detector's name: [EMAIL], [OPENAI_KEY]
|
|
134
138
|
--mode hash keyed HMAC-SHA-256. Same input, same output, so you can
|
|
135
139
|
still count and join on it. Requires a key.
|
|
136
140
|
--mode pseudonym a fake value of the same shape. Requires a key.
|
|
137
|
-
--mode surrogate a typed synthetic value
|
|
141
|
+
--mode surrogate a typed synthetic value: a card number that still passes
|
|
138
142
|
Luhn, a date that is still a date. Requires a key.
|
|
139
143
|
|
|
140
144
|
--mask <str> ignore all of the above and write a fixed string
|
|
@@ -150,12 +154,12 @@ is deprecated; it names the same thing badly.
|
|
|
150
154
|
|
|
151
155
|
'fpe' is accepted as an alias for 'pseudonym' and warns. It was the wrong word:
|
|
152
156
|
none of this is format-preserving encryption, and nothing here is reversible
|
|
153
|
-
without a vault
|
|
157
|
+
without a vault; see 'flare-redact help vault'.`,
|
|
154
158
|
},
|
|
155
159
|
{
|
|
156
160
|
name: 'vault',
|
|
157
161
|
summary: 'reversible redaction: get the originals back',
|
|
158
|
-
body: `VAULT
|
|
162
|
+
body: `VAULT: redaction you can undo
|
|
159
163
|
|
|
160
164
|
A mode replaces a value and forgets it. A vault replaces it with a stable
|
|
161
165
|
placeholder and remembers the mapping, so the same secret is always the same
|
|
@@ -167,7 +171,7 @@ placeholder and the text can be turned back into the original later.
|
|
|
167
171
|
|
|
168
172
|
The map on disk is not plaintext: PBKDF2-SHA-256 derives a key from the password
|
|
169
173
|
and the file is an authenticated AES-256-GCM envelope. Lose the password and the
|
|
170
|
-
map is gone. The password comes from an environment variable, never a flag
|
|
174
|
+
map is gone. The password comes from an environment variable, never a flag,
|
|
171
175
|
use --vault-password-env <NAME> to point at a different one.
|
|
172
176
|
|
|
173
177
|
Placeholders are opaque 96-bit random tokens by default, so a placeholder leaks
|
|
@@ -182,10 +186,11 @@ so placeholders never cross between callers.`,
|
|
|
182
186
|
{
|
|
183
187
|
name: 'scan',
|
|
184
188
|
summary: 'find secrets without changing anything, and fail CI on them',
|
|
185
|
-
body: `SCAN
|
|
189
|
+
body: `SCAN: report, do not rewrite
|
|
186
190
|
|
|
187
191
|
flare-redact --scan config.env what would be redacted, and why
|
|
188
192
|
flare-redact --scan . walk a whole project
|
|
193
|
+
flare-redact --staged only the lines the next commit adds
|
|
189
194
|
flare-redact --summary app.log just the counts, per detector
|
|
190
195
|
|
|
191
196
|
--scan never prints the matched value unless you pass --include-values, which is
|
|
@@ -203,11 +208,23 @@ Exit codes make it a CI gate:
|
|
|
203
208
|
|
|
204
209
|
0 nothing found
|
|
205
210
|
1 findings (scan mode only)
|
|
206
|
-
2 the command itself failed
|
|
211
|
+
2 the command itself failed: bad flag, unreadable file, invalid JSON
|
|
207
212
|
|
|
208
213
|
# fail the build if a secret is committed
|
|
209
214
|
npx --yes flare-redact --scan . --exclude package-lock.json
|
|
210
215
|
|
|
216
|
+
# stop the commit instead: 'flare-redact init --hook' writes a pre-commit
|
|
217
|
+
# hook that runs this, so only what a commit adds can block it
|
|
218
|
+
flare-redact --staged
|
|
219
|
+
|
|
220
|
+
A scan leaves out assignments whose value is plainly code, not a secret:
|
|
221
|
+
'token = process.env.TOKEN', 'password = os.getenv("DB_PASSWORD")',
|
|
222
|
+
'secret = \${SECRET}', 'password: string', 'apiKey = config.apiKey'. From the
|
|
223
|
+
operator to the end of the line there must be exactly one such form and nothing
|
|
224
|
+
else. A default value, a second argument, a string or a number keeps the
|
|
225
|
+
finding (process.env.X || "hunter2"). --no-code-filter turns it off. Redaction
|
|
226
|
+
is not affected: it masks every such assignment, code or not.
|
|
227
|
+
|
|
211
228
|
Too noisy? Generic detectors like high_entropy match anything that looks random.
|
|
212
229
|
--refine-confidence runs the learned classifier over them and --min-confidence
|
|
213
230
|
drops the weak ones:
|
|
@@ -217,7 +234,7 @@ drops the weak ones:
|
|
|
217
234
|
{
|
|
218
235
|
name: 'files',
|
|
219
236
|
summary: 'scanning directories: what is walked, what is skipped',
|
|
220
|
-
body: `FILES
|
|
237
|
+
body: `FILES: what a directory scan actually reads
|
|
221
238
|
|
|
222
239
|
Give --scan a directory and it walks it. Three things are skipped without being
|
|
223
240
|
asked, because scanning them is noise or a hazard:
|
|
@@ -238,7 +255,7 @@ cannot quietly mean a scan that read nothing.`,
|
|
|
238
255
|
{
|
|
239
256
|
name: 'gateway',
|
|
240
257
|
summary: 'the sidecar proxy: redact without touching application code',
|
|
241
|
-
body: `GATEWAY
|
|
258
|
+
body: `GATEWAY: redaction without a code change
|
|
242
259
|
|
|
243
260
|
The library needs you to call it. The gateway does not: it is a reverse proxy
|
|
244
261
|
that redacts request bodies on the way out and restores the originals in the
|
|
@@ -246,7 +263,7 @@ reply, so an application integrates by changing one base URL.
|
|
|
246
263
|
|
|
247
264
|
flare-redact gateway --upstream https://api.openai.com --enable pii
|
|
248
265
|
|
|
249
|
-
# then, in the application
|
|
266
|
+
# then, in the application, nothing else changes
|
|
250
267
|
export OPENAI_BASE_URL=http://127.0.0.1:8787/v1
|
|
251
268
|
|
|
252
269
|
Streamed responses are restored incrementally, so a placeholder split across two
|
|
@@ -255,7 +272,7 @@ SSE frames still comes back whole.
|
|
|
255
272
|
It is also a redaction service for languages without a native engine:
|
|
256
273
|
POST /v1/redact, POST /v1/scan, GET /v1/detectors and server-side /v1/sessions,
|
|
257
274
|
plus /healthz, /readyz and Prometheus /metrics. Those are the only paths the
|
|
258
|
-
gateway answers itself
|
|
275
|
+
gateway answers itself; everything else under /v1 is proxied to your upstream.
|
|
259
276
|
|
|
260
277
|
A container image ships in the repository under docker/.
|
|
261
278
|
|
|
@@ -264,7 +281,7 @@ Full flag list: flare-redact gateway help`,
|
|
|
264
281
|
{
|
|
265
282
|
name: 'agent-flow',
|
|
266
283
|
summary: 'FlareFlow: source-to-sink capabilities for AI tools',
|
|
267
|
-
body: `AGENT FLOW
|
|
284
|
+
body: `AGENT FLOW: control where protected values may be restored
|
|
268
285
|
|
|
269
286
|
FlareFlow is a library and gateway API for model-produced tool calls. It binds
|
|
270
287
|
each protected value to a runtime-owned source and detector, then restores it
|
|
@@ -301,7 +318,7 @@ Benchmark: npm run benchmark:agent -- --json`,
|
|
|
301
318
|
{
|
|
302
319
|
name: 'library',
|
|
303
320
|
summary: 'using it from JavaScript and TypeScript',
|
|
304
|
-
body: `LIBRARY
|
|
321
|
+
body: `LIBRARY: the JavaScript and TypeScript API
|
|
305
322
|
|
|
306
323
|
import { redact, scan, compilePolicy, createVault } from 'flare-redact';
|
|
307
324
|
|
|
@@ -315,6 +332,9 @@ structures are walked and only the leaves are rewritten.
|
|
|
315
332
|
Adapters live behind subpath imports, so you pay for what you import:
|
|
316
333
|
|
|
317
334
|
flare-redact/pino flare-redact/winston log transports
|
|
335
|
+
flare-redact/sentry events, breadcrumbs, spans and logs sent to Sentry
|
|
336
|
+
flare-redact/register node --import flare-redact/register: console.*
|
|
337
|
+
redacted with no code change (FLARE_REDACT_PRESET)
|
|
318
338
|
flare-redact/http flare-redact/fetch HTTP layers
|
|
319
339
|
flare-redact/llm flare-redact/session prompts and conversations
|
|
320
340
|
flare-redact/tool MCP and multi-tool agent boundaries
|
|
@@ -330,8 +350,8 @@ covered by CI.`,
|
|
|
330
350
|
},
|
|
331
351
|
{
|
|
332
352
|
name: 'sdks',
|
|
333
|
-
summary: 'the Python, Go and Rust engines
|
|
334
|
-
body: `SDKS
|
|
353
|
+
summary: 'the Python, Go and Rust engines, installed separately',
|
|
354
|
+
body: `SDKS: the same redactor in four languages
|
|
335
355
|
|
|
336
356
|
Python, Go and Rust have their own native engines. They are separate packages:
|
|
337
357
|
installing flare-redact from npm gives you the JavaScript engine and nothing
|
|
@@ -342,17 +362,17 @@ else, and it pulls no dependencies of any kind.
|
|
|
342
362
|
Go go get github.com/flare-collection/flare-redact/sdk/go
|
|
343
363
|
|
|
344
364
|
Python pip install "flare-redact @ \\
|
|
345
|
-
git+https://github.com/flare-collection/flare-redact@v1.
|
|
365
|
+
git+https://github.com/flare-collection/flare-redact@v1.9.1#subdirectory=sdk/python"
|
|
346
366
|
|
|
347
367
|
Rust flare-redact = { git = "https://github.com/flare-collection/flare-redact", \\
|
|
348
|
-
tag = "v1.
|
|
368
|
+
tag = "v1.9.1" }
|
|
349
369
|
|
|
350
370
|
The Python and Rust engines are not on PyPI or crates.io yet, so they install
|
|
351
371
|
from the repository. The commands above are the ones that work today.
|
|
352
372
|
|
|
353
373
|
They are not ports that drift. All four implement FRS-1, the specification in
|
|
354
374
|
spec/SPEC.md, and all four run the same conformance corpus in spec/conformance/
|
|
355
|
-
in their own test suites
|
|
375
|
+
in their own test suites, so the same input and the same options produce the
|
|
356
376
|
same output whichever engine you use.
|
|
357
377
|
|
|
358
378
|
If you cannot add a dependency at all, the gateway gives every language an HTTP
|
|
@@ -420,7 +440,7 @@ function detectorHelp(id) {
|
|
|
420
440
|
const tags = detector.tags?.length ? detector.tags.join(', ') : 'none';
|
|
421
441
|
const state = detector.default
|
|
422
442
|
? 'on by default'
|
|
423
|
-
: `off by default
|
|
443
|
+
: `off by default; turn it on with --enable ${detector.id}`;
|
|
424
444
|
return `DETECTOR ${detector.id}
|
|
425
445
|
|
|
426
446
|
${detector.label}
|
|
@@ -436,7 +456,7 @@ function detectorHelp(id) {
|
|
|
436
456
|
}
|
|
437
457
|
/**
|
|
438
458
|
* Suggest the nearest topic or detector for something we do not recognise.
|
|
439
|
-
* Prefix and substring matching only
|
|
459
|
+
* Prefix and substring matching only; a typo table would be more machinery
|
|
440
460
|
* than the problem deserves.
|
|
441
461
|
*/
|
|
442
462
|
function nearest(query) {
|
package/dist/help.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help.js","sourceRoot":"","sources":["../src/help.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAWvC,MAAM,CAAC,MAAM,IAAI,GAAG
|
|
1
|
+
{"version":3,"file":"help.js","sourceRoot":"","sources":["../src/help.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAWvC,MAAM,CAAC,MAAM,IAAI,GAAG;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IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;IAEvD,MAAM,QAAQ,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;IACrC,IAAI,QAAQ;QAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;IAEjD,MAAM,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAClC,MAAM,IAAI,GAAG,WAAW,CAAC,MAAM;QAC7B,CAAC,CAAC,iBAAiB,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO;QAChD,CAAC,CAAC,EAAE,CAAC;IACP,OAAO,EAAE,IAAI,EAAE,gBAAgB,KAAK,SAAS,IAAI,GAAG,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;AAChF,CAAC"}
|
package/dist/init.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `flare-redact init`: read the project's package.json, pick the integrations
|
|
3
3
|
* that fit, and print the lines to paste. `--ci` also writes a GitHub workflow
|
|
4
|
-
* that scans every pull request
|
|
4
|
+
* that scans every pull request, and `--hook` a git pre-commit hook that scans
|
|
5
|
+
* the lines each commit adds. It never edits source files: the output is a
|
|
5
6
|
* plan the developer applies, so nothing changes behind their back.
|
|
6
7
|
*/
|
|
7
8
|
export interface InitStep {
|
|
@@ -28,6 +29,13 @@ export declare function renderInit(plan: InitPlan, source: string | undefined):
|
|
|
28
29
|
/** A GitHub workflow that fails a pull request when a secret is committed. */
|
|
29
30
|
export declare function ciWorkflow(version: string): string;
|
|
30
31
|
export declare const WORKFLOW_PATH: string;
|
|
32
|
+
/** The line to add to a pre-commit hook that another tool manages. */
|
|
33
|
+
export declare const HOOK_COMMAND = "npx flare-redact --scan --staged";
|
|
34
|
+
/**
|
|
35
|
+
* The git pre-commit hook `--hook` writes. It prefers the project's own copy
|
|
36
|
+
* and falls back to the pinned release, so it works before `npm install` too.
|
|
37
|
+
*/
|
|
38
|
+
export declare function preCommitHook(version: string): string;
|
|
31
39
|
export declare const INIT_HELP: string;
|
|
32
40
|
/** Run `flare-redact init`. Returns the exit code. */
|
|
33
41
|
export declare function runInit(argv: readonly string[], version: string, cwd?: string): number;
|
package/dist/init.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,MAAM,WAAW,QAAQ;IACvB,mFAAmF;IACnF,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,QAAQ;IACvB,yEAAyE;IACzE,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,sDAAsD;IACtD,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAC;CACrC;AAED,UAAU,WAAW;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC1C;AA+FD,iFAAiF;AACjF,wBAAgB,QAAQ,CAAC,GAAG,EAAE,WAAW,GAAG,SAAS,GAAG,QAAQ,CAc/D;AAID,uDAAuD;AACvD,wBAAgB,UAAU,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAuB7E;AAED,8EAA8E;AAC9E,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAsBlD;AAED,eAAO,MAAM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