vault

package
v1.3.1119 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ServiceAccountRoles = []string{"roles/storage.objectAdmin",
		"roles/cloudkms.admin",
		"roles/cloudkms.cryptoKeyEncrypterDecrypter",
	}
)

Functions

func BucketName

func BucketName(vaultName string) string

BucketName creates a Bucket name for a given vault name and cluster name

func CreateBucket

func CreateBucket(vaultName, clusterName, projectID, zone string, recreate bool, batchMode bool, in terminal.FileReader, out terminal.FileWriter, outErr io.Writer) (string, error)

CreateBucket Creates a bucket in GKE to store the backend (encrypted) data for vault

func CreateGCPServiceAccount

func CreateGCPServiceAccount(kubeClient kubernetes.Interface, vaultName, namespace, clusterName, projectId string) (string, error)

CreateGCPServiceAccount creates a service account in GCP for the vault service

func GcpServiceAccountSecretName

func GcpServiceAccountSecretName(vaultName string) string

GcpServiceAccountSecretName builds the secret name where the GCP service account is stored

func KeyName

func KeyName(vaultName string) string

KeyName creates a key name for a given vault and cluster name

func KeyringName

func KeyringName(vaultName string) string

KeyringName creates a keyring name for a given vault and cluster name

func ServiceAccountName

func ServiceAccountName(vaultName string) string

ServiceAccountName creates a service account name for a given vault and cluster name

Types

type KmsConfig

type KmsConfig struct {
	Keyring  string
	Key      string
	Location string
	// contains filtered or unexported fields
}

KmsConfig keeps the configuration for Google KMS service

func CreateKmsConfig

func CreateKmsConfig(vaultName, clusterName, projectId string) (*KmsConfig, error)

CreateKmsConfig creates a KMS config for the GKE Vault

Jump to

Keyboard shortcuts

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