tls

package
v0.0.0-...-fe5a0a6 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: EPL-2.0 Imports: 34 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

View Source
const (

	// The ConfigMap name for merged CA bundle certificates
	CheMergedCABundleCertsCMName = "ca-certs-merged"
	OIDCIssuerCACMName           = "oidc-issuer-ca"
)

Variables

This section is empty.

Functions

func GetAdditionalCACertsConfigMapVersion

func GetAdditionalCACertsConfigMapVersion(cheCtx *chetypes.CheContext) string

GetAdditionalCACertsConfigMapVersion returns revision of merged additional CA certs config map

func GetCheCABundles

func GetCheCABundles(client k8sclient.Client, namespace string) ([]corev1.ConfigMap, error)

GetCheCABundles returns list of config maps with additional CA certificates that should be trusted by Che The selection is based on the specific label

func IsSelfSignedCASecretExists

func IsSelfSignedCASecretExists(cheCtx *chetypes.CheContext) (bool, error)

IsSelfSignedCASecretExists checks if CheTLSSelfSignedCertificateSecretName exists so depending components can mount it

func RegisterSecurityProfileWatcher

func RegisterSecurityProfileWatcher(mgr manager.Manager, serverTLS ServerTLS, onCancel context.CancelFunc, log logr.Logger) error

RegisterSecurityProfileWatcher sets up watcher to restart operator when profile/policy changes. Always registers on OpenShift so that changes (or late availability) trigger a restart.

Types

type CertificatesReconciler

type CertificatesReconciler struct {
	reconciler.Reconcilable
	// contains filtered or unexported fields
}

func NewCertificatesReconciler

func NewCertificatesReconciler() *CertificatesReconciler

func (*CertificatesReconciler) Finalize

func (c *CertificatesReconciler) Finalize(cheCtx *chetypes.CheContext) error

func (*CertificatesReconciler) Reconcile

type ServerTLS

type ServerTLS struct {
	TLSOpts                   []func(*cryptotls.Config)
	InitialTLSProfileSpec     configv1.TLSProfileSpec
	InitialTLSAdherencePolicy configv1.TLSAdherencePolicy
}

ServerTLS holds TLS options and initial profile/policy for watcher

func BuildServerTLSOptions

func BuildServerTLSOptions(ctx context.Context, cfg *rest.Config, scheme *k8sruntime.Scheme, log logr.Logger) (ServerTLS, error)

BuildServerTLSOptions fetches TLS profile and adherence policy from cluster. Returns TLS config functions when adherence policy requires strict compliance. Falls back to the library-go default TLS profile on transient API server errors or when adherence policy does not require strict compliance. Returns empty ServerTLS on non-OpenShift clusters.

Jump to

Keyboard shortcuts

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