reportpdf

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
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.

View Source
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.

func SSH

func SSH(in SSHInput) ([]byte, error)

SSH renders an SSH endpoint's report as a PDF.

func ValidKind

func ValidKind(k string) bool

ValidKind says whether k names an endpoint report.

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 InvCert

type InvCert struct {
	Name, Issuer, Key, NotAfter string
	DaysLeft                    *int
	Places                      int
}

InvCert is one end-entity certificate.

type InvItem

type InvItem struct {
	Name, Kind, Detail, Purpose, Quantum string
	Endpoints, Machines, Imports         int
	Places                               []string // "name (endpoint)" ...
	LastSeen                             time.Time
	Legacy                               bool
}

InvItem is one inventory row: an algorithm, key, protocol or software component.

type InvPurpose

type InvPurpose struct {
	Purpose                   string
	Vulnerable, Safe, Unknown int
}

InvPurpose counts algorithms of one purpose by post-quantum status.

type InvSource

type InvSource struct {
	Label, Kind string
	When        time.Time
	Items       int
}

InvSource is an endpoint scan, machine inventory or imported CBOM.

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.

type SSHInput

type SSHInput struct {
	Name, Address string
	ScanID        int64
	Report        *sshprobe.Report
	Eval          *eval.Evaluation
	Version       string
	Generated     time.Time
}

SSHInput is one stored SSH scan and its evaluation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL