vaultcerts

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = &bootstrap.Module{
	Name:       "certs-vault",
	Precedence: bootstrap.TlsConfigPrecedence,
	Options: []fx.Option{
		fx.Provide(FxProvider()),
	},
}

Functions

func FxProvider

func FxProvider() fx.Annotated

func NewVaultProvider

func NewVaultProvider(ctx context.Context, vc *vault.Client, p SourceProperties) certs.Source

func Use

func Use()

Types

type IssueCertificateRequest

type IssueCertificateRequest struct {
	CommonName string         `json:"common_name,omitempty"`
	TTL        utils.Duration `json:"ttl,omitempty"`
	AltNames   string         `json:"alt_names,omitempty"`
	IpSans     string         `json:"ip_sans,omitempty"`
}

type SourceProperties

type SourceProperties struct {
	MinTLSVersion    string         `json:"min-version"`
	Path             string         `json:"path"`
	Role             string         `json:"role"`
	CN               string         `json:"cn"`
	IpSans           string         `json:"ip-sans"`
	AltNames         string         `json:"alt-names"`
	TTL              utils.Duration `json:"ttl"`
	MinRenewInterval utils.Duration `json:"min-renew-interval"`
	CachePath        string         `json:"cache-path"`
}

type VaultProvider

type VaultProvider struct {
	// contains filtered or unexported fields
}

func (*VaultProvider) Close

func (v *VaultProvider) Close() error

func (*VaultProvider) Files

func (*VaultProvider) LazyInit

func (v *VaultProvider) LazyInit(ctx context.Context) error

func (*VaultProvider) RootCAs

func (v *VaultProvider) RootCAs(ctx context.Context) (*x509.CertPool, error)

func (*VaultProvider) TLSConfig

func (v *VaultProvider) TLSConfig(ctx context.Context, _ ...certs.TLSOptions) (*tls.Config, error)

Jump to

Keyboard shortcuts

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