impact

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package impact provides rotation impact analysis for certificate chains.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Graph

type Graph struct {
	// contains filtered or unexported fields
}

Graph indexes findings by issuer, subject, and serial for fast lookups.

func Build

func Build(findings []store.CertFinding) *Graph

Build creates an impact graph from a set of findings.

func (*Graph) QueryIssuer

func (g *Graph) QueryIssuer(pattern string) QueryResult

QueryIssuer finds all findings where Issuer or any IssuerChain entry contains the pattern (case-insensitive substring match).

func (*Graph) QuerySerial

func (g *Graph) QuerySerial(serial string) QueryResult

QuerySerial finds findings with an exact serial number match.

func (*Graph) QuerySubject

func (g *Graph) QuerySubject(pattern string) QueryResult

QuerySubject finds all findings where Subject contains the pattern (case-insensitive substring match).

type QueryResult

type QueryResult struct {
	BySeverity     map[store.Severity]int   `json:"bySeverity"`
	BySource       map[store.SourceKind]int `json:"bySource"`
	MatchedPattern string                   `json:"matchedPattern"`
	Findings       []store.CertFinding      `json:"findings"`
	Namespaces     []string                 `json:"namespaces"`
	Clusters       []string                 `json:"clusters"`
}

QueryResult holds the blast radius of a rotation impact query.

Jump to

Keyboard shortcuts

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