openbao

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAuth

func WithAuth(cfg *config.Config) bastion.SSHAuthMethod

WithAuth returns a bastion-go SSHAuthMethod that signs the configured key with OpenBao and authenticates using the resulting certificate together with its matching private key.

Types

type SignedCert

type SignedCert struct {
	// Certificate is the signed certificate in authorized_keys format.
	Certificate string
	// PublicKey is the path to the public key that was signed.
	PublicKey string
	// PrivateKey is the path to the matching private key.
	PrivateKey string
}

SignedCert is the result of signing an SSH key with the OpenBao SSH engine.

func Sign

func Sign(cfg *config.Config) (*SignedCert, error)

Sign requests a signed SSH certificate for the configured public key from the OpenBao SSH secrets engine.

func (*SignedCert) Write

func (s *SignedCert) Write(cfg *config.Config) (string, func(), error)

Write writes the certificate to the configured output path, or to a temporary file if no path is configured. It returns the path to the written certificate and a cleanup function that removes the temporary file (a no-op for a configured path).

Jump to

Keyboard shortcuts

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