Repository navigation
v0.0.12
PATCH: new exports before 1.0. The entry @mark1russell7/text/redact finds a secret by its context.
CONTEXT_SHAPESfinds the value of a secret by the text around it: a parameter, a variable or a field with the name of a secret (secret-parameter), a flag (secret-flag), the password of a URL (url-password), anAuthorizationheader (authorization) and the user option of curl (user-password). A match is the value only, so the name stays.isSecretName(name)tells if a name is the name of a secret, by the same rule.- A shape can give the span of a part of its match, with a group with the name
secret. The shapes ofSECRET_SHAPEShave no such group, so their matches do not change. - The default shapes of
findSecretShapesandredactSecretShapesdo not change. A caller addsCONTEXT_SHAPESto its list. - headroom redacts the command lines in its logs with these shapes after this version is on npm.
- The limit of the entry
./redactis 2400 bytes, predicted before the code. The measure is 2275 bytes.
Runtime dependencies: no change against 0.0.11 (none).