IF Commons GitHub

sql/cli/redact

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0046-arcactl FR-009

Keeps a secret out of what arcactl prints (commons data 0046-arcactl FR-009): the password of a connection URL, a password= setting, and any secret value the program was given, whatever the text is (an error from a driver often quotes the URL it was given).

Source: commons/data/sql/cli/redact.ts

2 of 2 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

passwordOffunction
function passwordOf(url: string | undefined): string | undefined

The password of a URL, where it has one, so that it can be redacted wherever it turns up.

Imported by 8 tests of the run (8 passed, 0 failed): the library's results

redactfunction
function redact(text: string, secrets?: readonly string[]): string

The text with the password of every URL, every password= and every given secret replaced by ***.

Imported by 8 tests of the run (8 passed, 0 failed): the library's results

Titles, headings, exports, tables, columns and requirements. Esc closes.