tlspolicy

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package tlspolicy provides for configuration and enforcement of policies relating to TLS.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyPolicy

func ApplyPolicy(config *tls.Config, policy Policy) error

ApplyPolicy applies the policy options in policy to a given tls.Config, which is assumed to have already been obtained from the go-spiffe tlsconfig package.

func LogPolicy

func LogPolicy(policy Policy, logger hclog.Logger)

LogPolicy logs an informational message reporting the configured policy, aiding administrators to determine what policy options have been successfully enabled.

Types

type Policy

type Policy struct {
	// RequirePQKEM determines if a post-quantum-safe KEM should be required for
	// TLS connections.
	RequirePQKEM bool
}

Policy describes policy options to be applied to a TLS configuration.

A zero-initialised Policy provides reasonable defaults.

Jump to

Keyboard shortcuts

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