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/sentry.js
ADDED
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sentry hooks that redact an event before it leaves the process: messages,
|
|
3
|
+
* exception values, stack-frame variables and source lines, request data,
|
|
4
|
+
* breadcrumbs, span names and Sentry Logs.
|
|
5
|
+
*
|
|
6
|
+
* Sentry.init({ dsn, ...sentryRedact({ preset: 'gdpr' }) });
|
|
7
|
+
*
|
|
8
|
+
* Sentry's own fields (event, trace, span and debug ids, release, timestamps,
|
|
9
|
+
* SDK metadata, the file and function of each stack frame) are put back after
|
|
10
|
+
* redaction, so events still group, link to their traces and resolve source
|
|
11
|
+
* maps even under `preset: 'strict'`. A field is put back only when both
|
|
12
|
+
* things hold: it sits where Sentry keeps that field (never by name alone, so
|
|
13
|
+
* `extra.release` is user data), and its value has the shape that field has
|
|
14
|
+
* (an id is hex, a release is `name@version`, a file is a path with no query
|
|
15
|
+
* string). A value that fails the shape stays redacted. Cookies are always
|
|
16
|
+
* masked whole, whatever the options say.
|
|
17
|
+
*/
|
|
18
|
+
import { compilePolicy } from './index.js';
|
|
19
|
+
const isObject = (value) => typeof value === 'object' && value !== null;
|
|
20
|
+
const own = (object, key) => Object.prototype.hasOwnProperty.call(object, key);
|
|
21
|
+
/**
|
|
22
|
+
* A string is put back only if it has the shape (and, when asked, is clean);
|
|
23
|
+
* numbers and booleans always are.
|
|
24
|
+
*/
|
|
25
|
+
const shaped = (shape, mustBeClean = false) => (original, redacted, checks) => {
|
|
26
|
+
if (typeof original === 'number' || typeof original === 'boolean' || original === null)
|
|
27
|
+
return original;
|
|
28
|
+
if (typeof original !== 'string' || original.length > 200 || !shape.test(original))
|
|
29
|
+
return redacted;
|
|
30
|
+
return !mustBeClean || checks.clean(original) ? original : redacted;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Hex of the lengths Sentry uses (16 for a span, 32 for an event or trace)
|
|
34
|
+
* and UUIDs. One made only of digits could be a card or account number, so
|
|
35
|
+
* it is put back only if no detector fires on it.
|
|
36
|
+
*/
|
|
37
|
+
const hex = (shape) => (original, redacted, checks) => {
|
|
38
|
+
if (typeof original !== 'string' || !shape.test(original))
|
|
39
|
+
return redacted;
|
|
40
|
+
return /[a-f]/i.test(original) || checks.clean(original) ? original : redacted;
|
|
41
|
+
};
|
|
42
|
+
const ID = hex(/^(?:[0-9a-f]{16}|[0-9a-f]{32}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$/i);
|
|
43
|
+
/** Build and code ids of debug images: hex of any length, with or without dashes. */
|
|
44
|
+
const CODE_ID = hex(/^[0-9a-f-]{8,80}$/i);
|
|
45
|
+
/** `api@2.3.1`, a commit hash, `2026.11.14-rc1`: never an email (the part after `@` starts with a digit). */
|
|
46
|
+
const RELEASE = shaped(/^[A-Za-z0-9][A-Za-z0-9_.+/-]*(?:@v?[0-9][A-Za-z0-9_.+-]*)?$/, true);
|
|
47
|
+
/** Numbers and booleans only. */
|
|
48
|
+
const FLAG = shaped(/^$/);
|
|
49
|
+
/** A number, digits with one decimal point, or an ISO date. Not an IP address. */
|
|
50
|
+
const TIME = shaped(/^(?:[0-9]{9,13}(?:\.[0-9]{1,9})?|[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\.[0-9]{1,9})?(?:Z|[+-][0-9]{2}:?[0-9]{2})?)$/);
|
|
51
|
+
/**
|
|
52
|
+
* Names Sentry or the code gives things: `db.query`, `TypeError`,
|
|
53
|
+
* `Object.handleRequest`, `auto.http.otel`. No `?`, `=`, `&` or `://`, no `@`
|
|
54
|
+
* except as the first character (an npm scope), and no long run of digits, so
|
|
55
|
+
* an address, a URL or a number does not pass.
|
|
56
|
+
*/
|
|
57
|
+
const NAME = (original, redacted, checks) => {
|
|
58
|
+
if (typeof original !== 'string')
|
|
59
|
+
return FLAG(original, redacted, checks);
|
|
60
|
+
const ok = original.length <= 120
|
|
61
|
+
&& /^@?[^@?=&\s]+(?: [^@?=&\s]+){0,5}$/.test(original)
|
|
62
|
+
&& !original.includes('://')
|
|
63
|
+
&& !/[0-9]{6}/.test(original)
|
|
64
|
+
&& checks.clean(original);
|
|
65
|
+
return ok ? original : redacted;
|
|
66
|
+
};
|
|
67
|
+
/** Sentry's own metadata, kept whole. */
|
|
68
|
+
const WHOLE = (original) => original;
|
|
69
|
+
/**
|
|
70
|
+
* The file of a stack frame or debug image, kept when it names a file (it
|
|
71
|
+
* ends in an extension, or is a `node:` module) and nothing fires on it. One
|
|
72
|
+
* with a query string or a fragment is never put back: the page URL of an
|
|
73
|
+
* inline script can carry a token or an address, and redaction may have
|
|
74
|
+
* replaced the whole URL.
|
|
75
|
+
*/
|
|
76
|
+
const SCRIPT = (original, redacted, checks) => {
|
|
77
|
+
if (typeof original !== 'string' || original.length > 2000)
|
|
78
|
+
return redacted;
|
|
79
|
+
if (/[?#]/.test(original))
|
|
80
|
+
return redacted;
|
|
81
|
+
if (!/\.[A-Za-z0-9]{1,8}$/.test(original) && !/^(?:node:[A-Za-z0-9_/.-]+|<anonymous>|native)$/.test(original))
|
|
82
|
+
return redacted;
|
|
83
|
+
return checks.clean(original) ? original : redacted;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Attributes Sentry sets itself on spans and logs. The span name, the log
|
|
87
|
+
* message template and its parameters also live under `sentry.` and are user
|
|
88
|
+
* data, so the list is explicit.
|
|
89
|
+
*/
|
|
90
|
+
const SENTRY_ATTRIBUTES = {
|
|
91
|
+
attributes: [
|
|
92
|
+
[/^sentry\.(?:release|dist)$/, RELEASE],
|
|
93
|
+
[/^sentry\.(?:segment\.id|trace\.parent_span_id|replay_id|profiler_id|profile_id)$/, ID],
|
|
94
|
+
[/^sentry\.sdk\.[a-z_.]+$/, WHOLE],
|
|
95
|
+
[/^sentry\.(?:environment|platform|origin|op|source|trace_lifecycle|segment\.name\.source|idle_span_finish_reason)$/, NAME],
|
|
96
|
+
[/^sentry\.(?:sample_rate|exclusive_time|is_remote|timestamp\.sequence)$/, FLAG],
|
|
97
|
+
],
|
|
98
|
+
};
|
|
99
|
+
const FRAME = {
|
|
100
|
+
keys: {
|
|
101
|
+
filename: SCRIPT, abs_path: SCRIPT, module: NAME, function: NAME, raw_function: NAME, platform: NAME,
|
|
102
|
+
package: SCRIPT, symbol: NAME, lineno: FLAG, colno: FLAG, in_app: FLAG, debug_id: ID,
|
|
103
|
+
symbol_addr: NAME, image_addr: NAME, instruction_addr: NAME, addr_mode: NAME,
|
|
104
|
+
},
|
|
105
|
+
};
|
|
106
|
+
const STACKTRACE = { fields: { frames: { items: FRAME } } };
|
|
107
|
+
const MECHANISM = {
|
|
108
|
+
keys: { type: NAME, source: NAME, handled: FLAG, synthetic: FLAG, is_exception_group: FLAG, exception_id: FLAG, parent_id: FLAG },
|
|
109
|
+
};
|
|
110
|
+
/** Exceptions and threads: `{ values: [...] }` or, in older payloads, a bare array. */
|
|
111
|
+
const withStack = (keys, fields = {}) => {
|
|
112
|
+
const item = { keys, fields: { stacktrace: STACKTRACE, raw_stacktrace: STACKTRACE, ...fields } };
|
|
113
|
+
return { items: item, fields: { values: { items: item } } };
|
|
114
|
+
};
|
|
115
|
+
const LINK = { keys: { span_id: ID, trace_id: ID, parent_span_id: ID, sampled: FLAG } };
|
|
116
|
+
/** Both span formats: the one inside a transaction and the streamed one (Sentry 11). */
|
|
117
|
+
const SPAN = {
|
|
118
|
+
keys: {
|
|
119
|
+
span_id: ID, trace_id: ID, parent_span_id: ID, segment_id: ID, profile_id: ID, is_segment: FLAG,
|
|
120
|
+
start_timestamp: TIME, timestamp: TIME, end_timestamp: TIME, exclusive_time: FLAG,
|
|
121
|
+
op: NAME, origin: NAME, status: NAME,
|
|
122
|
+
},
|
|
123
|
+
fields: { data: SENTRY_ATTRIBUTES, attributes: SENTRY_ATTRIBUTES, links: { items: LINK } },
|
|
124
|
+
};
|
|
125
|
+
const BREADCRUMB = { keys: { timestamp: TIME, type: NAME, level: NAME, category: NAME } };
|
|
126
|
+
const LOG = {
|
|
127
|
+
keys: { timestamp: TIME, level: NAME, severity_number: FLAG, severityNumber: FLAG, trace_id: ID, span_id: ID },
|
|
128
|
+
fields: { attributes: SENTRY_ATTRIBUTES },
|
|
129
|
+
};
|
|
130
|
+
const EVENT = {
|
|
131
|
+
keys: {
|
|
132
|
+
event_id: ID, type: NAME, timestamp: TIME, start_timestamp: TIME, received: TIME, platform: NAME, level: NAME,
|
|
133
|
+
release: RELEASE, dist: RELEASE, environment: NAME, sdk: WHOLE,
|
|
134
|
+
// Never sent: the SDK reads it after this hook to build the envelope.
|
|
135
|
+
sdkProcessingMetadata: WHOLE,
|
|
136
|
+
},
|
|
137
|
+
fields: {
|
|
138
|
+
contexts: {
|
|
139
|
+
fields: {
|
|
140
|
+
trace: SPAN,
|
|
141
|
+
replay: { keys: { replay_id: ID } },
|
|
142
|
+
profile: { keys: { profile_id: ID, profiler_id: ID } },
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
exception: withStack({ type: NAME, module: NAME, thread_id: FLAG }, { mechanism: MECHANISM }),
|
|
146
|
+
threads: withStack({ id: FLAG, crashed: FLAG, current: FLAG, main: FLAG }),
|
|
147
|
+
spans: { items: SPAN },
|
|
148
|
+
breadcrumbs: { items: BREADCRUMB, fields: { values: { items: BREADCRUMB } } },
|
|
149
|
+
debug_meta: {
|
|
150
|
+
fields: {
|
|
151
|
+
images: {
|
|
152
|
+
items: {
|
|
153
|
+
keys: {
|
|
154
|
+
type: NAME, debug_id: CODE_ID, code_id: CODE_ID, code_file: SCRIPT, debug_file: SCRIPT, arch: NAME,
|
|
155
|
+
image_addr: NAME, image_size: FLAG, image_vmaddr: NAME,
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
};
|
|
163
|
+
const MASK = '***';
|
|
164
|
+
/** `cookie`, `Cookies`, `Set-Cookie`, `http.request.header.cookie`. */
|
|
165
|
+
const COOKIE_KEY = /(?:^|[._-])(?:set[-_]?)?cookies?$/i;
|
|
166
|
+
const MAX_DEPTH = 64;
|
|
167
|
+
/** Every cookie value replaced, whatever its type: a string, a name-to-value map, a list. */
|
|
168
|
+
function maskCookies(value) {
|
|
169
|
+
if (value === undefined || value === null)
|
|
170
|
+
return value;
|
|
171
|
+
if (Array.isArray(value))
|
|
172
|
+
return value.map(() => MASK);
|
|
173
|
+
if (isObject(value)) {
|
|
174
|
+
const out = {};
|
|
175
|
+
for (const name of Object.keys(value))
|
|
176
|
+
out[name] = MASK;
|
|
177
|
+
return out;
|
|
178
|
+
}
|
|
179
|
+
return MASK;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* A copy of `value` in which every field named like a cookie, at any depth,
|
|
183
|
+
* is masked: `request.cookies`, a `Cookie` header, a span attribute called
|
|
184
|
+
* `http.request.header.cookie`, a breadcrumb's `data.cookies`. Headers given
|
|
185
|
+
* as `[name, value]` pairs are covered too. Nothing is written to `value`;
|
|
186
|
+
* a level is copied only when something under it changes.
|
|
187
|
+
*/
|
|
188
|
+
function withoutCookies(value, depth = 0, seen = new WeakMap()) {
|
|
189
|
+
if (!isObject(value) || depth > MAX_DEPTH)
|
|
190
|
+
return value;
|
|
191
|
+
if (seen.has(value))
|
|
192
|
+
return seen.get(value);
|
|
193
|
+
if (Array.isArray(value)) {
|
|
194
|
+
if (value.length === 2 && typeof value[0] === 'string' && COOKIE_KEY.test(value[0])) {
|
|
195
|
+
const pair = [value[0], maskCookies(value[1])];
|
|
196
|
+
seen.set(value, pair);
|
|
197
|
+
return pair;
|
|
198
|
+
}
|
|
199
|
+
seen.set(value, value);
|
|
200
|
+
let out = value;
|
|
201
|
+
for (let i = 0; i < value.length; i++) {
|
|
202
|
+
const item = withoutCookies(value[i], depth + 1, seen);
|
|
203
|
+
if (item === value[i])
|
|
204
|
+
continue;
|
|
205
|
+
if (out === value) {
|
|
206
|
+
out = [...value];
|
|
207
|
+
seen.set(value, out);
|
|
208
|
+
}
|
|
209
|
+
out[i] = item;
|
|
210
|
+
}
|
|
211
|
+
return out;
|
|
212
|
+
}
|
|
213
|
+
seen.set(value, value);
|
|
214
|
+
let out = value;
|
|
215
|
+
for (const key of Object.keys(value)) {
|
|
216
|
+
const field = value[key];
|
|
217
|
+
// An attribute may wrap its value as { value, type }.
|
|
218
|
+
const masked = COOKIE_KEY.test(key)
|
|
219
|
+
? (isObject(field) && !Array.isArray(field) && own(field, 'value') && own(field, 'type') ? { ...field, value: maskCookies(field.value) } : maskCookies(field))
|
|
220
|
+
: withoutCookies(field, depth + 1, seen);
|
|
221
|
+
if (masked === field)
|
|
222
|
+
continue;
|
|
223
|
+
if (out === value) {
|
|
224
|
+
out = { ...value };
|
|
225
|
+
seen.set(value, out);
|
|
226
|
+
}
|
|
227
|
+
out[key] = masked;
|
|
228
|
+
}
|
|
229
|
+
return out;
|
|
230
|
+
}
|
|
231
|
+
export function sentryRedact(opts = {}, sentry = {}) {
|
|
232
|
+
const policy = compilePolicy(opts);
|
|
233
|
+
const quiet = compilePolicy({ ...opts, disable: [...(opts.disable ?? []), 'high_entropy'] });
|
|
234
|
+
const checks = {
|
|
235
|
+
redactText: (text) => policy.redact(text),
|
|
236
|
+
clean: (text) => quiet.scan(text).length === 0,
|
|
237
|
+
};
|
|
238
|
+
/**
|
|
239
|
+
* The redacted value with Sentry's own fields put back. It never writes to
|
|
240
|
+
* either argument: a level that changes is copied first, so a frozen event
|
|
241
|
+
* or one that shares objects with the caller is safe.
|
|
242
|
+
*/
|
|
243
|
+
const restore = (original, redacted, spec) => {
|
|
244
|
+
if (!isObject(original) || !isObject(redacted))
|
|
245
|
+
return redacted;
|
|
246
|
+
if (Array.isArray(original) || Array.isArray(redacted)) {
|
|
247
|
+
if (!Array.isArray(original) || !Array.isArray(redacted) || !spec.items)
|
|
248
|
+
return redacted;
|
|
249
|
+
const items = spec.items;
|
|
250
|
+
return redacted.map((item, i) => (i < original.length ? restore(original[i], item, items) : item));
|
|
251
|
+
}
|
|
252
|
+
let out = redacted;
|
|
253
|
+
const set = (key, value) => {
|
|
254
|
+
if (value === out[key])
|
|
255
|
+
return;
|
|
256
|
+
if (out === redacted)
|
|
257
|
+
out = { ...redacted };
|
|
258
|
+
out[key] = value;
|
|
259
|
+
};
|
|
260
|
+
for (const [key, guard] of Object.entries(spec.keys ?? {})) {
|
|
261
|
+
if (own(original, key) && own(redacted, key))
|
|
262
|
+
set(key, guard(original[key], redacted[key], checks));
|
|
263
|
+
}
|
|
264
|
+
for (const [field, child] of Object.entries(spec.fields ?? {})) {
|
|
265
|
+
if (own(original, field) && own(redacted, field))
|
|
266
|
+
set(field, restore(original[field], redacted[field], child));
|
|
267
|
+
}
|
|
268
|
+
if (spec.attributes) {
|
|
269
|
+
for (const key of Object.keys(redacted)) {
|
|
270
|
+
if (!own(original, key))
|
|
271
|
+
continue;
|
|
272
|
+
const rule = spec.attributes.find(([pattern]) => pattern.test(key));
|
|
273
|
+
if (!rule)
|
|
274
|
+
continue;
|
|
275
|
+
const guard = rule[1];
|
|
276
|
+
const before = original[key];
|
|
277
|
+
const after = redacted[key];
|
|
278
|
+
// Streamed spans and logs wrap each attribute as { value, type }.
|
|
279
|
+
if (guard !== WHOLE && isObject(before) && isObject(after) && own(before, 'value') && own(after, 'value')) {
|
|
280
|
+
const value = guard(before.value, after.value, checks);
|
|
281
|
+
if (value !== after.value)
|
|
282
|
+
set(key, { ...after, value });
|
|
283
|
+
}
|
|
284
|
+
else
|
|
285
|
+
set(key, guard(before, after, checks));
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
return out;
|
|
289
|
+
};
|
|
290
|
+
const scrub = (input, spec) => withoutCookies(restore(input, policy.redact(input), spec));
|
|
291
|
+
const hooks = {
|
|
292
|
+
beforeSend: (event) => scrub(event, EVENT),
|
|
293
|
+
beforeSendTransaction: (event) => scrub(event, EVENT),
|
|
294
|
+
beforeSendSpan: (span) => scrub(span, SPAN),
|
|
295
|
+
beforeSendLog: (log) => scrub(log, LOG),
|
|
296
|
+
beforeBreadcrumb: (breadcrumb) => scrub(breadcrumb, BREADCRUMB),
|
|
297
|
+
};
|
|
298
|
+
if (sentry.traceLifecycle !== 'stream')
|
|
299
|
+
return hooks;
|
|
300
|
+
const { beforeSendTransaction: _unused, ...streamed } = hooks;
|
|
301
|
+
return streamed;
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Redact one Sentry error event or transaction. For a span, a log or a
|
|
305
|
+
* breadcrumb use the matching hook from `sentryRedact()`: their own fields
|
|
306
|
+
* sit in different places.
|
|
307
|
+
*/
|
|
308
|
+
export function redactSentryEvent(event, opts = {}) {
|
|
309
|
+
return sentryRedact(opts).beforeSend(event);
|
|
310
|
+
}
|
|
311
|
+
//# sourceMappingURL=sentry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sentry.js","sourceRoot":"","sources":["../src/sentry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,aAAa,EAAsB,MAAM,YAAY,CAAC;AAe/D,MAAM,QAAQ,GAAG,CAAC,KAAc,EAAkB,EAAE,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC;AACjG,MAAM,GAAG,GAAG,CAAC,MAAc,EAAE,GAAW,EAAW,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAExG;;;GAGG;AACH,MAAM,MAAM,GAAG,CAAC,KAAa,EAAE,WAAW,GAAG,KAAK,EAAS,EAAE,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE;IAC3F,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,OAAO,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAAK,IAAI;QAAE,OAAO,QAAQ,CAAC;IACxG,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,CAAC,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC;QAAE,OAAO,QAAQ,CAAC;IACpG,OAAO,CAAC,WAAW,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QA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ACD,OAAO,GAAG,CAAC;IACb,CAAC,CAAC;IAEF,MAAM,KAAK,GAAG,CAAI,KAAQ,EAAE,IAAU,EAAK,EAAE,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,CAAM,CAAC;IAE9G,MAAM,KAAK,GAAmB;QAC5B,UAAU,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC;QAC1C,qBAAqB,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC;QACrD,cAAc,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC;QAC3C,aAAa,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC;QACvC,gBAAgB,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,EAAE,UAAU,CAAC;KAChE,CAAC;IACF,IAAI,MAAM,CAAC,cAAc,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IACrD,MAAM,EAAE,qBAAqB,EAAE,OAAO,EAAE,GAAG,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC9D,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAI,KAAQ,EAAE,OAAsB,EAAE;IACrE,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;AAC9C,CAAC"}
|
package/dist/staged.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `flare-redact --scan --staged`: scan only the lines a commit adds.
|
|
3
|
+
*
|
|
4
|
+
* A pre-commit hook that scanned whole files would block every commit that
|
|
5
|
+
* touches a file with an old finding, and people would learn to skip it.
|
|
6
|
+
* Reading the staged diff instead means a commit is stopped only for what it
|
|
7
|
+
* introduces, and each finding points at the line number in the staged file.
|
|
8
|
+
*/
|
|
9
|
+
export interface AddedBlock {
|
|
10
|
+
/** Repository-relative path, exactly as git reports it. */
|
|
11
|
+
readonly file: string;
|
|
12
|
+
/** One-based line number, in the staged file, of the block's first line. */
|
|
13
|
+
readonly line: number;
|
|
14
|
+
/** The added lines, joined with `\n`. */
|
|
15
|
+
readonly text: string;
|
|
16
|
+
}
|
|
17
|
+
export interface StagedSkips {
|
|
18
|
+
excluded: number;
|
|
19
|
+
oversized: number;
|
|
20
|
+
}
|
|
21
|
+
export interface StagedChanges {
|
|
22
|
+
readonly files: string[];
|
|
23
|
+
readonly blocks: AddedBlock[];
|
|
24
|
+
readonly skipped: StagedSkips;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Turn one file's `git diff --unified=0` output into runs of added lines.
|
|
28
|
+
* Removed lines contribute nothing.
|
|
29
|
+
*/
|
|
30
|
+
export declare function addedBlocks(file: string, diff: string): AddedBlock[];
|
|
31
|
+
/**
|
|
32
|
+
* Parse `git diff --name-status -z`: `A\0path\0`, `M\0path\0`, and for a
|
|
33
|
+
* rename `R<score>\0old\0new\0`.
|
|
34
|
+
*/
|
|
35
|
+
export declare function stagedEntries(nameStatus: string): Array<{
|
|
36
|
+
file: string;
|
|
37
|
+
from?: string;
|
|
38
|
+
}>;
|
|
39
|
+
/** Read what the next commit would add. Throws when `cwd` is not a git work tree. */
|
|
40
|
+
export declare function readStagedChanges(cwd: string, options: {
|
|
41
|
+
excludes?: string[];
|
|
42
|
+
defaultExcludes: boolean;
|
|
43
|
+
maxFileSize: number;
|
|
44
|
+
}): StagedChanges;
|
|
45
|
+
//# sourceMappingURL=staged.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"staged.d.ts","sourceRoot":"","sources":["../src/staged.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,MAAM,WAAW,UAAU;IACzB,2DAA2D;IAC3D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,yCAAyC;IACzC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,UAAU,EAAE,CAAC;IAC9B,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;CAC/B;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,EAAE,CAyCpE;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAgBxF;AAKD,qFAAqF;AACrF,wBAAgB,iBAAiB,CAC/B,GAAG,EAAE,MAAM,EACX,OAAO,EAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,eAAe,EAAE,OAAO,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,GAC9E,aAAa,CA4Cf"}
|
package/dist/staged.js
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `flare-redact --scan --staged`: scan only the lines a commit adds.
|
|
3
|
+
*
|
|
4
|
+
* A pre-commit hook that scanned whole files would block every commit that
|
|
5
|
+
* touches a file with an old finding, and people would learn to skip it.
|
|
6
|
+
* Reading the staged diff instead means a commit is stopped only for what it
|
|
7
|
+
* introduces, and each finding points at the line number in the staged file.
|
|
8
|
+
*/
|
|
9
|
+
import { execFileSync } from 'node:child_process';
|
|
10
|
+
import { createPathFilter } from './file-discovery.js';
|
|
11
|
+
/**
|
|
12
|
+
* Turn one file's `git diff --unified=0` output into runs of added lines.
|
|
13
|
+
* Removed lines contribute nothing.
|
|
14
|
+
*/
|
|
15
|
+
export function addedBlocks(file, diff) {
|
|
16
|
+
const blocks = [];
|
|
17
|
+
let inHunk = false;
|
|
18
|
+
let next = 0;
|
|
19
|
+
let start = 0;
|
|
20
|
+
let lines = [];
|
|
21
|
+
const flush = () => {
|
|
22
|
+
if (lines.length)
|
|
23
|
+
blocks.push({ file, line: start, text: lines.join('\n') });
|
|
24
|
+
lines = [];
|
|
25
|
+
};
|
|
26
|
+
for (const raw of diff.split('\n')) {
|
|
27
|
+
// A type change is two sections (the old file removed, the new one added);
|
|
28
|
+
// the second header must not be read as content of the first hunk.
|
|
29
|
+
if (raw.startsWith('diff --git ')) {
|
|
30
|
+
flush();
|
|
31
|
+
inHunk = false;
|
|
32
|
+
continue;
|
|
33
|
+
}
|
|
34
|
+
if (raw.startsWith('@@')) {
|
|
35
|
+
flush();
|
|
36
|
+
const header = /^@@ -\d+(?:,\d+)? \+(\d+)(?:,\d+)? @@/.exec(raw);
|
|
37
|
+
inHunk = header !== null;
|
|
38
|
+
next = header ? Number(header[1]) : 0;
|
|
39
|
+
continue;
|
|
40
|
+
}
|
|
41
|
+
if (!inHunk)
|
|
42
|
+
continue;
|
|
43
|
+
if (raw.startsWith('+')) {
|
|
44
|
+
if (!lines.length)
|
|
45
|
+
start = next;
|
|
46
|
+
lines.push(raw.slice(1).replace(/\r$/, ''));
|
|
47
|
+
next++;
|
|
48
|
+
}
|
|
49
|
+
else if (raw.startsWith('\\')) {
|
|
50
|
+
// "" belongs to the line before it.
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
flush();
|
|
54
|
+
// A context line: a leading space, or nothing at all when git is set to
|
|
55
|
+
// drop the space of an empty one (diff.suppressBlankEmpty).
|
|
56
|
+
if (raw.startsWith(' ') || raw === '')
|
|
57
|
+
next++;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
flush();
|
|
61
|
+
return blocks;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Parse `git diff --name-status -z`: `A\0path\0`, `M\0path\0`, and for a
|
|
65
|
+
* rename `R<score>\0old\0new\0`.
|
|
66
|
+
*/
|
|
67
|
+
export function stagedEntries(nameStatus) {
|
|
68
|
+
const parts = nameStatus.split('\0');
|
|
69
|
+
const entries = [];
|
|
70
|
+
for (let i = 0; i < parts.length; i++) {
|
|
71
|
+
const status = parts[i];
|
|
72
|
+
if (!status)
|
|
73
|
+
continue;
|
|
74
|
+
if (status.startsWith('R') || status.startsWith('C')) {
|
|
75
|
+
const from = parts[++i];
|
|
76
|
+
const file = parts[++i];
|
|
77
|
+
if (file)
|
|
78
|
+
entries.push(status.startsWith('R') && from ? { file, from } : { file });
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
const file = parts[++i];
|
|
82
|
+
if (file)
|
|
83
|
+
entries.push({ file });
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return entries;
|
|
87
|
+
}
|
|
88
|
+
const git = (cwd, args, maxBuffer) => execFileSync('git', args, { cwd, encoding: 'utf8', maxBuffer, stdio: ['ignore', 'pipe', 'pipe'] });
|
|
89
|
+
/** Read what the next commit would add. Throws when `cwd` is not a git work tree. */
|
|
90
|
+
export function readStagedChanges(cwd, options) {
|
|
91
|
+
let names;
|
|
92
|
+
let top;
|
|
93
|
+
try {
|
|
94
|
+
// Paths come back relative to the top of the work tree, so every later
|
|
95
|
+
// command runs there too, whichever subdirectory the scan started in.
|
|
96
|
+
top = git(cwd, ['rev-parse', '--show-toplevel'], 1024 * 1024).trim();
|
|
97
|
+
names = git(top, ['diff', '--cached', '--name-status', '-z', '-M', '--diff-filter=ACMRT'], 64 * 1024 * 1024);
|
|
98
|
+
}
|
|
99
|
+
catch (e) {
|
|
100
|
+
const detail = String(e.stderr ?? e.message).trim();
|
|
101
|
+
throw new Error(`--staged needs a git repository: ${detail}`);
|
|
102
|
+
}
|
|
103
|
+
const excluded = createPathFilter(options);
|
|
104
|
+
const skipped = { excluded: 0, oversized: 0 };
|
|
105
|
+
const files = [];
|
|
106
|
+
const blocks = [];
|
|
107
|
+
// A diff is roughly the file plus one character per line, so twice the
|
|
108
|
+
// size limit (and a floor for small limits) is enough headroom.
|
|
109
|
+
const maxBuffer = Math.max(options.maxFileSize * 2, 1024 * 1024);
|
|
110
|
+
for (const { file, from } of stagedEntries(names)) {
|
|
111
|
+
if (excluded(file)) {
|
|
112
|
+
skipped.excluded++;
|
|
113
|
+
continue;
|
|
114
|
+
}
|
|
115
|
+
let diff;
|
|
116
|
+
try {
|
|
117
|
+
// --literal-pathspecs: a file called "*.js" or ":x" is that file, not a pattern.
|
|
118
|
+
// A renamed file is diffed against its old path, so moving a file does
|
|
119
|
+
// not make its whole content look new.
|
|
120
|
+
// --text: every file is diffed as text, including ones a .gitattributes
|
|
121
|
+
// rule marks `-diff` or `binary`, so nothing staged goes unread. The two
|
|
122
|
+
// context settings keep every hunk to added and removed lines only.
|
|
123
|
+
diff = git(top, ['--literal-pathspecs', '-c', 'diff.suppressBlankEmpty=false', 'diff', '--cached', '-M', '--unified=0', '--inter-hunk-context=0', '--no-color', '--no-ext-diff', '--no-textconv', '--text', '--', ...(from ? [from] : []), file], maxBuffer);
|
|
124
|
+
}
|
|
125
|
+
catch (e) {
|
|
126
|
+
if (e.code === 'ENOBUFS') {
|
|
127
|
+
skipped.oversized++;
|
|
128
|
+
continue;
|
|
129
|
+
}
|
|
130
|
+
throw e;
|
|
131
|
+
}
|
|
132
|
+
files.push(file);
|
|
133
|
+
blocks.push(...addedBlocks(file, diff));
|
|
134
|
+
}
|
|
135
|
+
return { files, blocks, skipped };
|
|
136
|
+
}
|
|
137
|
+
//# sourceMappingURL=staged.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"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