Documentation
¶
Overview ¶
Package tlscbom turns an active TLS scan's observations into CBOM assets. It lives apart from internal/cbom so that a program that only needs the host inventory (the collector) does not link the TLS scanner.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromTLSReport ¶
func FromTLSReport(rep *tlsprobe.Report) []collector.CryptoAsset
FromTLSReport turns an active TLS scan's observations into CBOM assets: one protocol component per supported version, with the cipher suites it accepts and, for TLS 1.3, the key-exchange groups it accepts; and one certificate component per certificate the scan retrieved (every position in every chain, deduplicated by fingerprint). Every algorithm the suites, groups and certificates reference is emitted once as its own component, so that no DependsOn edge points at something absent from the document.
This states only what was observed on the wire: no readiness level, no TLS hygiene score, no finding. Those live in the evaluation, which is not a CBOM's business (principle 4: closed vocabularies, nothing guessed). An algorithm with no catalogue entry — a legacy cipher such as RC4, a named curve this program does not carry an OID for — is still named in the suite or certificate text; it simply gets no algorithm reference.
The caller decides whether to run pqc.Analyze/Annotate over the result, the same as it would for a host inventory; this package cannot do so itself without an import cycle (pqc imports cbom for its property namespace).
Types ¶
This section is empty.