vaultutil

package module
v0.0.0-...-11f36fb Latest Latest
Warning

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

Go to latest
Published: May 11, 2018 License: BSD-3-Clause Imports: 8 Imported by: 0

README

vaultutil GoDoc

This is a Go package to make it easier to interact with vault from within Kubernetes.

Usage

password, err = vaultutil.InClusterSecret("path/to/secret", "key")

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KubernetesServiceAccountTokenFile = "/var/run/secrets/kubernetes.io/serviceaccount/token"
)

Constants (var for unit-testing)

Functions

func InClusterClient

func InClusterClient() (*api.Client, error)

InClusterClient returns a vault API client using environment variables passed to pods within a kubernetes cluster

func InClusterSecret

func InClusterSecret(path, field string) (string, error)

InClusterSecret is a helper function to retrieve a secret from vault from within kubernetes

Types

This section is empty.

Jump to

Keyboard shortcuts

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