certs

package
v1.106.4 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2026 License: BSD-3-Clause Imports: 14 Imported by: ? modules, 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

Overview

Package certs implements logic to help multiple Kubernetes replicas share TLS certs for a common Tailscale Service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertManager

type CertManager struct {
	// contains filtered or unexported fields
}

CertManager is responsible for issuing certificates for known domains and for maintaining a loop that re-attempts issuance daily. Currently cert manager logic is only run on ingress ProxyGroup replicas that are responsible for managing certs for HA Ingress HTTPS endpoints ('write' replicas).

func NewCertManager

func NewCertManager(lc localclient.LocalClient, logf logger.Logf) *CertManager

func (*CertManager) AllCertsPresent added in v1.106.0

func (cm *CertManager) AllCertsPresent(ctx context.Context, sc *ipn.ServeConfig) (bool, error)

AllCertsPresent reports whether a TLS cert is already cached for every HTTPS endpoint in sc. It reads cached certs only and never triggers issuance, so it is safe to call from a readiness probe. A ServeConfig with no HTTPS endpoints reports true. Only a missing cert reports false: an expired cert or a failed read from the cert store counts as present.

func (*CertManager) EnsureCertLoops

func (cm *CertManager) EnsureCertLoops(ctx context.Context, sc *ipn.ServeConfig) error

EnsureCertLoops ensures that, for all currently managed Service HTTPS endpoints, there is a cert loop responsible for issuing and ensuring the renewal of the TLS certs. ServeConfig must not be nil.

Jump to

Keyboard shortcuts

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