vaultcas

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VaultCAS

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

VaultCAS implements a Certificate Authority Service using Hashicorp Vault.

func New

func New(ctx context.Context, opts apiv1.Options) (*VaultCAS, error)

New creates a new CertificateAuthorityService implementation using Hashicorp Vault

func (*VaultCAS) CreateCertificate

CreateCertificate signs a new certificate using Hashicorp Vault.

func (*VaultCAS) GetCertificateAuthority

GetCertificateAuthority returns the root certificate of the certificate authority using the configured fingerprint.

func (*VaultCAS) RenewCertificate

RenewCertificate will always return a non-implemented error as renewals are not supported yet.

func (*VaultCAS) RevokeCertificate

RevokeCertificate revokes a certificate by serial number.

func (*VaultCAS) Type added in v0.26.0

func (v *VaultCAS) Type() apiv1.Type

Type returns the type of this CertificateAuthorityService.

type VaultOptions

type VaultOptions struct {
	PKIMountPath   string          `json:"pkiMountPath,omitempty"`
	PKIRoleDefault string          `json:"pkiRoleDefault,omitempty"`
	PKIRoleRSA     string          `json:"pkiRoleRSA,omitempty"`
	PKIRoleEC      string          `json:"pkiRoleEC,omitempty"`
	PKIRoleEd25519 string          `json:"pkiRoleEd25519,omitempty"`
	AuthType       string          `json:"authType,omitempty"`
	AuthMountPath  string          `json:"authMountPath,omitempty"`
	Namespace      string          `json:"namespace,omitempty"`
	AuthOptions    json.RawMessage `json:"authOptions,omitempty"`
}

VaultOptions defines the configuration options added using the apiv1.Options.Config field.

Directories

Path Synopsis
auth
aws

Jump to

Keyboard shortcuts

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