vault

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signer

type Signer struct {
	Address  string
	Port     int
	UseTLS   bool
	RoleID   string
	SecretID string
	Path     string
	Role     string
	SignTTL  string
	// contains filtered or unexported fields
}

Signer struct represents Hashicorp Vault options for signing SSH Key.

func (*Signer) Init

func (v *Signer) Init(config *viper.Viper) error

Init method is used to ingest config of Signer

func (Signer) ReadCA

func (v Signer) ReadCA(ctx context.Context) (string, error)

ReadCA method read CA public cert from Hashicorp Vault backend

func (Signer) Sign

func (v Signer) Sign(ctx context.Context, payload []byte, id string, principals []string) (cert string, err error)

Sign method is used to sign passed SSH Key.

Jump to

Keyboard shortcuts

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