Documentation
¶
Overview ¶
Package cawatch implements the CA auto-rotation scanner: a periodic watchdog that detects CAs approaching their expiry and automatically rotates them. This is an opt-in feature controlled by the ca_auto_rotate config section.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scanner ¶
type Scanner struct {
Store store.Store
Master *keystore.Master
Logger *slog.Logger
Threshold float64 // 0.20 default; fraction of CA lifetime when rotation is triggered
Interval time.Duration // 6*time.Hour default; how often to scan
}
Scanner is a periodic CA auto-rotation watchdog. Wire one up at server start, call StartLoop with a cancellable context, and it ticks every Interval until the context is canceled.
Click to show internal directories.
Click to hide internal directories.