Documentation
¶
Overview ¶
Package reportpdf lays out CipherHorizon's downloadable PDF reports: the endpoint report (full, TLS-only and certificate-only) and the inventory report. It reads the same stored scan, evaluation and inventory the web pages show, so a PDF never says something the page does not.
Index ¶
Constants ¶
const ( KindFull = "full" // everything: summary, every section, every finding, how it was tested KindTLS = "tls" // the TLS configuration sections KindCert = "cert" // certificates, trust and revocation, with every certificate field )
The kinds of endpoint report.
const Standards = "Judged against NIST IR 8547, FIPS 203/204/205, RFC 8446 and RFC 9325; inventory in CycloneDX 1.6/1.7"
Standards names the documents the report's judgements rest on; the cover prints it (REQ-BR-6).
Variables ¶
This section is empty.
Functions ¶
func Endpoint ¶
func Endpoint(in EndpointInput) ([]byte, error)
Endpoint renders the report as a PDF.
func Inventory ¶
func Inventory(in InventoryInput) ([]byte, error)
Inventory renders the inventory report as a PDF.
Types ¶
type EndpointInput ¶
type EndpointInput struct {
Name, Address string
ScanID int64
Report *tlsprobe.Report
Eval *eval.Evaluation
Kind string
Version string // the product version, for the footer
Generated time.Time // "now" for days-left figures and the document date
}
EndpointInput is one stored scan of an endpoint and its evaluation.
type InvItem ¶
type InvItem struct {
Name, Kind, Detail, Purpose, Quantum string
Endpoints, Machines, Imports int
Fallback int // Replace first: endpoints left out, where it is only the fallback beside a quantum-safe key exchange
Places []string // "name (endpoint)" ...
LastSeen time.Time
Legacy bool
}
InvItem is one inventory row: an algorithm, key, protocol or software component.
type InvPurpose ¶
InvPurpose counts algorithms of one purpose by post-quantum status.
type InventoryInput ¶
type InventoryInput struct {
Version string
Generated time.Time
Totals map[string]int // algorithm, key, protocol, software, certificates, endpoints, machines, imports
Quantum map[string]int // vulnerable, safe, unknown (algorithms and keys)
Replace []InvItem
ByPurpose []InvPurpose
Algorithms []InvItem
Keys []InvItem
Protocols []InvItem
Software []InvItem
CertCounts struct{ Total, Expired, Within30, Within90, Later int }
Certs []InvCert
Sources []InvSource
}
InventoryInput is everything the inventory report shows.