Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultRotator ¶
type DefaultRotator struct {
// contains filtered or unexported fields
}
DefaultRotator performs simple on-disk certificate rotation for the server/node certificate described by config.PKIConfig. It renews when the current certificate is within the RenewBefore window. If the cluster CA material is available via PLOY_SERVER_CA_CERT and PLOY_SERVER_CA_KEY, it reissues a certificate with the same subject and SANs using the existing private key. Otherwise, it logs a structured warning so operators can rotate out-of-band.
func NewDefaultRotator ¶
func NewDefaultRotator(logger *slog.Logger) *DefaultRotator
NewDefaultRotator creates a new DefaultRotator instance.
type RenewalTask ¶
type RenewalTask struct {
// contains filtered or unexported fields
}
RenewalTask checks the active certificate at the configured renewal interval.
func (*RenewalTask) Interval ¶
func (t *RenewalTask) Interval() time.Duration
func (*RenewalTask) Name ¶
func (t *RenewalTask) Name() string
Click to show internal directories.
Click to hide internal directories.