Documentation
¶
Overview ¶
Package pemutil sanitizes PEM certificate bundles for projection into actors, the way kubelet does for clusterTrustBundle projected volumes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SanitizeCertificateBundle ¶
SanitizeCertificateBundle re-encodes a PEM bundle keeping only CERTIFICATE blocks, with block headers stripped and exact duplicates (by DER bytes) removed. It returns an error if the input contains no CERTIFICATE blocks at all — an empty trust bundle is never what a workload should silently receive.
The anchors are deliberately shuffled, as in kubelet's clustertrustbundle manager: order carries no meaning, and a scrambled order keeps consumers from growing a dependence on it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.