Documentation
¶
Overview ¶
Package policy evaluates TLS scan evidence against built-in and configurable policy gates.
The modern policy is intentionally conservative: legacy protocol support, weak or unclassified cipher evidence, invalid certificates and expired certificates fail the policy. Callers can also require or forbid TLS versions and ALPN protocols, and can enforce minimum certificate key size or validity windows.
Policy results are structured so CLI, JSON, SARIF and JUnit output can share the same failure evidence.
Index ¶
Constants ¶
View Source
const ( NameNone = "" NameModern = "modern" CheckLegacyTLS = "legacy-tls" CheckWeakCipher = "weak-cipher" CheckInvalidCert = "invalid-cert" CheckExpiredCert = "expired-cert" CheckRequiredTLS = "required-tls" CheckForbiddenTLS = "forbidden-tls" CheckRequiredALPN = "required-alpn" CheckForbiddenALPN = "forbidden-alpn" CheckMinCertKeyBits = "min-cert-key-bits" CheckMinCertDays = "min-cert-days" )
Variables ¶
This section is empty.
Functions ¶
func ParseALPNProtocols ¶ added in v0.15.0
func ParseFailOn ¶
func ParseTLSVersions ¶ added in v0.15.0
func RequiresCipherProbe ¶ added in v0.8.10
func ValidateConfig ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.