Search and commands

↑ ↓ to select · Enter to open · Esc to close

Type to search packages.

spiffe

v1.85.0
google.golang.org/grpc/internal/credentials/spiffe

Documentation

pkg.go.dev ↗

Table of contents

↓ to select · Enter to jump· Shift+Enter for source

3 matches

Top ↑

Package spiffe defines APIs for working with SPIFFE Bundle Maps.

All APIs in this package are experimental.

Functions

BundleMapFromBytes

func BundleMapFromBytes(bundleMapBytes []byte) (map[string]*spiffebundle.Bundle, error)

BundleMapFromBytes parses bytes into a SPIFFE Bundle Map. See the SPIFFE Bundle Map spec for more detail - https://github.com/spiffe/spiffe/blob/main/standards/SPIFFE_Trust_Domain_and_Bundle.md#4-spiffe-bundle-format If duplicate keys are encountered in the JSON parsing, Go's default unmarshal behavior occurs which causes the last processed entry to be the entry in the parsed map.

GetRootsFromSPIFFEBundleMap

func GetRootsFromSPIFFEBundleMap(bundleMap map[string]*spiffebundle.Bundle, leafCert *x509.Certificate) (*x509.CertPool, error)

GetRootsFromSPIFFEBundleMap returns the root trust certificates from the SPIFFE bundle map for the given trust domain from the leaf certificate.

Dependency graph