gcpsecrets

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MPL-2.0 Imports: 32 Imported by: 19

Documentation

Index

Constants

View Source
const SecretTypeAccessToken = "access_token"

THIS SECRET TYPE IS DEPRECATED - future secret requests returns a response with no framework.Secret We are keeping them as part of the created framework.Secret to allow for clean up of access_token secrets and leases from 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 ImpersonatedAccount added in v0.15.0

type ImpersonatedAccount struct {
	Name string
	gcputil.ServiceAccountId

	TokenScopes []string
	Ttl         int
}

type PluginIdentityTokenSupplier added in v0.19.0

type PluginIdentityTokenSupplier struct {
	// contains filtered or unexported fields
}

func (*PluginIdentityTokenSupplier) SubjectToken added in v0.19.0

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 StaticAccount added in v0.10.1

type StaticAccount struct {
	Name        string
	SecretType  string
	RawBindings string
	Bindings    ResourceBindings
	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