rotation

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: 4 Imported by: 0

Documentation

Overview

Package rotation detects excessive certificate rotation frequencies.

Index

Constants

View Source
const (
	MinTrustAnchorDuration  = 365 * 24 * time.Hour // 1 year
	MinIntermediateDuration = 30 * 24 * time.Hour  // 30 days
)

Minimum recommended durations per role.

View Source
const FindingExcessiveRotation = "EXCESSIVE_ROTATION"

FindingExcessiveRotation indicates a certificate with a shorter lifetime than recommended for its role.

Variables

This section is empty.

Functions

func Check

func Check(findings []store.CertFinding) []store.CertFinding

Check analyzes findings for excessive rotation and returns new EXCESSIVE_ROTATION findings.

Types

type CertRole

type CertRole string

CertRole classifies a certificate's role in a trust hierarchy.

const (
	RoleTrustAnchor  CertRole = "trust_anchor"
	RoleIntermediate CertRole = "intermediate_ca"
	RoleLeaf         CertRole = "leaf"
)

Certificate roles in a trust hierarchy.

func DetectRole

func DetectRole(f *store.CertFinding) CertRole

DetectRole determines the certificate's role from finding metadata.

Jump to

Keyboard shortcuts

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