IF Commons GitHub

physical/key

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0002-machine-probe-contract FR-002

The line of authorized_keys that restricts a public key to the probe: the inbound surface of Headless makes it (restrict, so no terminal, no forwarding and no other service; the probe forced as it is), and a key that is not one public line, a private key in particular, is refused there.

import { probeKeyLine } from "./key.ts";
probeKeyLine("ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEXAMPLE probe@fleet").kind; // "ok"

Source: commons/machine-probe/src/physical/key.ts

1 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.

physical.probeKeyLinefunctionno test imports it
function probeKeyLine(publicKey: string, from?: readonly string[] | undefined): Result<string, string>

The line for a public key (its own comment, which names it, included), limited to the addresses it may come from where they are given.

probeKeyLinefunction
function probeKeyLine(publicKey: string, from?: readonly string[] | undefined): Result<string, string>

The line for a public key (its own comment, which names it, included), limited to the addresses it may come from where they are given.

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

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