secrets

package
v1.0.0-beta3 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	/*
		TODO(ilackarms): document the expected structure of secrets (required for VirtualMeshes  using a user-provided root CA)
	*/
	// CaCertID is the CA certificate chain file.
	CaCertID = "ca-cert.pem"
	// CaPrivateKeyID is the private key file of CA.
	CaPrivateKeyID = "ca-key.pem"
	// CertChainID is the ID/name for the certificate chain file.
	CertChainID = "cert-chain.pem"
	// RootPrivateKeyID is the ID/name for the private key file.
	// Unfortunately has to be `key.pem`, not `root-key.pem` to match istio :(
	RootPrivateKeyID = "key.pem"
	// RootCertID is the ID/name for the CA root certificate file.
	RootCertID = "root-cert.pem"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IntermediateCAData

type IntermediateCAData struct {
	RootCAData
	CertChain    []byte
	CaCert       []byte
	CaPrivateKey []byte
}

The intermediate CA derived from the root CA of the MeshGroup

func IntermediateCADataFromSecretData

func IntermediateCADataFromSecretData(data map[string][]byte) IntermediateCAData

func (IntermediateCAData) ToSecretData

func (d IntermediateCAData) ToSecretData() map[string][]byte

type RootCAData

type RootCAData struct {
	PrivateKey []byte
	RootCert   []byte
}

The root CA from the perspective of the MeshGroup A user supplied root cert may be itself derived from another CA, but that is irrelevant for the MeshGroup.

func RootCADataFromSecretData

func RootCADataFromSecretData(data map[string][]byte) RootCAData

func (*RootCAData) ToSecretData

func (c *RootCAData) ToSecretData() map[string][]byte

Jump to

Keyboard shortcuts

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