istioca

package
v0.0.0-...-7973e12 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCertIstio

func GetCertIstio(ctx context.Context, ma *meshauth.MeshAuth,
	dest *meshauth.Dest, ttlSec int, certSigner string) ([]string, error)

GetCertIstio implements the basic Istio gRPC protocol as client, getting a cert for the primary key in MeshAuth.

The 'dest' must be configured with

  • TokenSource reading the istio-ca mounted token
  • K8S token source returning "istio-ca" certs (using cluster, kubeconfig or other user creds)
  • An existing certificate
  • A long-lived certificate

Types

type IstioCA

type IstioCA struct {

	// Map of issuers to trust domains.
	TrustDomains map[string]string
	CA           *meshauth.CA
	Auth         *meshauth.MeshAuth
}

Reflective CA. Will accept any valid JWT and return a cert for the same identity. Trust domain is based on the JWT issuer.

func New

func New(ctx context.Context, ma *meshauth.MeshAuth) *IstioCA

func (*IstioCA) CreateCertificate

func (X *IstioCA) CreateCertificate(ctx context.Context, r *connect.Request[auth.IstioCertificateRequest]) (*connect.Response[auth.IstioCertificateResponse], error)

Jump to

Keyboard shortcuts

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