jx: github.com/jenkins-x/jx/pkg/cloud/gke/vault Index | Files

package vault

import "github.com/jenkins-x/jx/pkg/cloud/gke/vault"

Index

Package Files

vault_backend.go

Constants

const (

    //DefaultVaultAbbreviation is vault service accounts suffix
    DefaultVaultAbbreviation = "vt"
)

Variables

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

func CreateBucket Uses

func CreateBucket(gcloud gke.GClouder, vaultName, bucketName string, projectID, zone string, recreate bool, batchMode bool, handles util.IOFileHandles) (string, error)

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

func CreateVaultGCPServiceAccount Uses

func CreateVaultGCPServiceAccount(gcloud gke.GClouder, kubeClient kubernetes.Interface, vaultName, namespace, clusterName, projectID string) (string, error)

CreateGCPServiceAccount creates a service account in GCP for the vault service

func GetGoogleProjectID Uses

func GetGoogleProjectID(kubeClient kubernetes.Interface, ns string) string

GetGoogleProjectID returns the Google project ID as registered in the install values during the Jenkins X install process. If the project ID cannot be read the empty string is returned.

func GetGoogleZone Uses

func GetGoogleZone(kubeClient kubernetes.Interface, ns string) string

GetGoogleZone returns the Google zone as registered in the install values during the Jenkins X install process. If the zone cannot be read the empty string is returned.

type KmsConfig Uses

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

KmsConfig keeps the configuration for Google KMS service

func CreateKmsConfig Uses

func CreateKmsConfig(gcloud gke.GClouder, vaultName, keyringName string, keyName string, projectID string) (*KmsConfig, error)

CreateKmsConfig creates a KMS config for the GKE Vault

Package vault imports 7 packages (graph) and is imported by 1 packages. Updated 2020-06-29. Refresh now. Tools for package owners.