Documentation
¶
Overview ¶
Package servingcert keeps a self-signed CA and a serving cert for an in-cluster Service in a Secret, and renews them.
Index ¶
- Constants
- func Check(data map[string][]byte, hosts []string, validUntil time.Time) error
- func Covers(trusted, bundle []byte) bool
- func Generate(hosts []string, notBefore, notAfter time.Time) (map[string][]byte, error)
- func WriteFileIfChanged(path string, data []byte) (bool, error)
- type Result
- type Service
Constants ¶
View Source
const ( // CAKey is the Secret key holding the PEM CA. CAKey = "ca" // CAKeyKey is the Secret key holding the PEM private key of the CA. CAKeyKey = "ca.key" // CertKey is the Secret key holding the PEM serving cert. CertKey = "tls.crt" // KeyKey is the Secret key holding the PEM private key of the serving cert. KeyKey = "tls.key" // PreviousCAKey is the Secret key holding the CA that was replaced last. PreviousCAKey = "ca.previous" // PreviousCAUntilAnnotation is the time until which PreviousCAKey is trusted. PreviousCAUntilAnnotation = "servingcert.oam.dev/previous-ca-until" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.