tls

package
v0.0.0-...-02a35f5 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 15 Imported by: 1 module, 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTLSConfigForSCM

func GetTLSConfigForSCM(spec *configv1.TLSProfileSpec) map[string]interface{}

GetTLSConfigForSCM returns camelCase TLS settings for spire-controller-manager YAML. Only non-empty fields are included. Returns nil when there is nothing to inject.

func GetTLSConfigForSpiffeSpire

func GetTLSConfigForSpiffeSpire(spec *configv1.TLSProfileSpec) map[string]interface{}

GetTLSConfigForSpiffeSpire returns snake_case TLS settings for SPIRE server, agent, and OIDC configs. Only non-empty fields are included. Returns nil when there is nothing to inject.

func ReportTLSResolutionFailure

func ReportTLSResolutionFailure(ctx context.Context, c client.Client, log logr.Logger)

ReportTLSResolutionFailure best-effort updates Ready=False on the ZTWIM cluster CR.

Types

type OpenShiftTLSProfile

type OpenShiftTLSProfile struct {
	// OperatorGoTLSConfig applies TLS settings to a tls.Config. Used for operator metrics and webhook.
	OperatorGoTLSConfig func(*tls.Config)
	// InitialTLSAdherencePolicy is the cluster-wide TLS adherence policy fetched at startup.
	InitialTLSAdherencePolicy configv1.TLSAdherencePolicy
	// InitialTLSProfileSpec is the cluster-wide TLS profile spec fetched at startup.
	InitialTLSProfileSpec configv1.TLSProfileSpec
}

OpenShiftTLSProfile holds the cluster TLS profile fetched at startup and metadata for the SecurityProfileWatcher.

func FetchAPIServerTLSConfig

func FetchAPIServerTLSConfig(ctx context.Context, k8sClient client.Client, setupLog logr.Logger) (*OpenShiftTLSProfile, error)

FetchAPIServerTLSConfig fetches TLS settings from apiservers/cluster.

Jump to

Keyboard shortcuts

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