images

package
v1.19.3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: Apache-2.0 Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
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

func Extension

func Extension(imgs []ContainerImage) (pkix.Extension, bool, error)

Extension encodes the given images as a non-critical certificate extension. Returns false if the list is empty, meaning no extension should be added.

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.

type Role

type Role string

Role is the role of a container in a Dapr workload pod.

const (
	RoleDaprd Role = "daprd"
	RoleApp   Role = "app"
)

Jump to

Keyboard shortcuts

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