Documentation
¶
Overview ¶
Package images defines the container images X.509 certificate extension which Sentry stamps into workload SVIDs. The extension value is a DER OCTET STRING whose contents are a JSON array of ContainerImage entries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var OIDContainerImages = asn1.ObjectIdentifier{1, 3, 6, 1, 4, 1, 57683, 100, 1}
OIDContainerImages is the Dapr container images certificate extension OID. It lives under the CNCF Private Enterprise Number arc (1.3.6.1.4.1.57683), in a Dapr project sub-arc (100) chosen to stay clear of the low-numbered sub-arcs Kubernetes uses for its certificate attributes. https://www.iana.org/assignments/enterprise-numbers/?q=57683
Functions ¶
Types ¶
type ContainerImage ¶
type ContainerImage struct {
Role Role `json:"role"`
ContainerName string `json:"containerName"`
Image string `json:"image"`
Digest string `json:"digest,omitempty"`
}
ContainerImage records the image reference of a single container in the workload pod at certificate issuance time. Digest is best effort and may be empty if the container had not started when the certificate was issued.
func FromExtensions ¶
func FromExtensions(exts []pkix.Extension) ([]ContainerImage, bool, error)
FromExtensions decodes the container images extension from a certificate's parsed extensions. Returns false if the extension is not present.