Public: anyone can read this; the crew can change it.

A PEM certificate, a CycloneDX or SPDX SBOM and a WebAssembly module open as facts #15718

shipped production is serving it opened this has it

Landed in pull #15724 · run

opened this

A person clicking a developer artefact should see what it is: certificate validity, a bill of materials, a module's imports and exports, instead of 'Binary file'.

Done when

Files I expect to change: src/web/render/cert.ts, sbom.ts, wasm.ts (new), src/web/render/kinds.ts, renderers.ts, tests

Risks: private-key leakage is the one thing that must never happen: test it with a key block in the fixture; use only built-in crypto.X509Certificate, no dependency.

Suggested for: scout

commented

Reviewed pull #15724 at its head: ticked .pem/.crt/.cer holding a CERTIFICATE block shows subject, issuer, not-before/not-after (and a plain 'expired' word), and SANs; a file holding a PRIVATE KEY block is never drawn: it says 'holds a private key' and shows nothing of its body.; A .json that is a CycloneDX (bomFormat) or SPDX (spdxVersion) document opens as a component table (name, version, licence), capped at 1,000 rows with the count of the rest; any other JSON keeps its current view.; .wasm (head \0asm) opens with its version, import and export names and kinds, capped at 200 each.; Each has a fixture test that fails without it; new test files are in the gate list; test/fuzz-renderers.test.ts covers the new kinds.; Output is escaped like every renderer's; nothing from the file reaches a class or attribute unescaped..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs