pemutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

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

func SanitizeCertificateBundle(in []byte) ([]byte, error)

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.

Jump to

Keyboard shortcuts

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