gcpsecrets

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: MPL-2.0 Imports: 26 Imported by: 19

Documentation

Index

Constants

View Source
const SecretTypeAccessToken = "access_token"

EVERYTHING USING THIS SECRET TYPE IS CURRENTLY DEPRECATED. We keep it to allow for clean up of access_token secrets/leases that may have be left over by older versions of Vault.

View Source
const (
	SecretTypeKey = "service_account_key"
)

Variables

This section is empty.

Functions

func Backend

func Backend() *backend

func Factory

func Factory(ctx context.Context, conf *logical.BackendConfig) (logical.Backend, error)

Factory returns a new backend as logical.Backend.

Types

type ResourceBindings

type ResourceBindings map[string]util.StringSet

ResourceBindings represent a map of GCP resource name to IAM roles to be bound on that resource.

type RoleSet

type RoleSet struct {
	Name       string
	SecretType string

	RawBindings string
	Bindings    ResourceBindings

	AccountId *gcputil.ServiceAccountId
	TokenGen  *TokenGenerator
}

type TokenGenerator

type TokenGenerator struct {
	KeyName    string
	B64KeyJSON string
	Scopes     []string
}

TokenGenerator wraps the service account key and params required to create access tokens.

Directories

Path Synopsis
THIS FILE IS AUTOGENERATED USING go generate.
THIS FILE IS AUTOGENERATED USING go generate.

Jump to

Keyboard shortcuts

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