Documentation
¶
Overview ¶
Package trust builds CA bundles that combine the host's Public roots with the Instance CA (Section 7.4), for clients that read a single bundle file: SSL_CERT_FILE from `gcpemu env --trust` (FR-CORE-004), the bundle injected into GKE pods (FR-INT-007) and Cloud Build steps.
Index ¶
Constants ¶
const BundleFile = "ca-bundle.pem"
BundleFile is the combined bundle's name in the instance directory.
Variables ¶
This section is empty.
Functions ¶
func PublicRootPool ¶ added in v0.15.0
PublicRootPool returns a new pool of the Public roots, which the caller may add to.
func PublicRoots ¶ added in v0.15.0
func PublicRoots() []byte
PublicRoots returns the Public roots (PEM): the root CAs the host trusts for public sites, without any Instance CA (Instances trust each other only by Pairing), or nil when none are found. They are read once per process: a bundle file on Linux, the keychain on macOS, the ROOT certificate store on Windows. SSL_CERT_FILE is ignored so that a bundle produced by `gcpemu env --trust` is never folded into itself.
Types ¶
type Source ¶ added in v0.15.0
type Source struct {
// Where names the store or file they came from; "" when none was found.
Where string
// FallbackErr is why the OS's own store could not be read, when the
// Public roots came from a fallback file instead (macOS).
FallbackErr error
}
Source says where the Public roots were read from.
func PublicRootsSource ¶ added in v0.15.0
func PublicRootsSource() Source
PublicRootsSource says where PublicRoots came from.