bootstrap

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DpTokenRequired = errors.New("Dataplane Token is required. Generate token using 'kumactl generate dataplane-token > /path/file' and provide it via --dataplane-token-file=/path/file argument to Kuma DP")
View Source
var InvalidBootstrapVersion = errors.New(`Invalid BootstrapVersion. Available values are: "3"`)
View Source
var NotCA = errors.New("A data plane proxy is trying to verify the control plane using the certificate which is not a certificate authority (basic constraint 'CA' is set to 'false').\n" +
	"Provide CA that was used to sign a certificate used in the control plane by using 'kuma-dp run --ca-cert-file=file' or via KUMA_CONTROL_PLANE_CA_CERT_FILE")

Functions

func ISSANMismatchErr

func ISSANMismatchErr(err error) bool

func RegisterBootstrap

func RegisterBootstrap(rt core_runtime.Runtime) error

func SANMismatchErr

func SANMismatchErr(host string, sans []string) error

Types

type BootstrapGenerator

type BootstrapGenerator interface {
	Generate(ctx context.Context, request types.BootstrapRequest) (proto.Message, types.BootstrapVersion, error)
}

func NewDefaultBootstrapGenerator

func NewDefaultBootstrapGenerator(
	resManager core_manager.ResourceManager,
	config *bootstrap_config.BootstrapServerConfig,
	dpServerCertFile string,
	dpAuthEnabled bool,
	hdsEnabled bool,
) (BootstrapGenerator, error)

type BootstrapHandler

type BootstrapHandler struct {
	Generator BootstrapGenerator
}

func (*BootstrapHandler) Handle

func (b *BootstrapHandler) Handle(resp http.ResponseWriter, req *http.Request)

type SANSet

type SANSet map[string]bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳