vault

package
v2.0.0-...-2d05721 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientCredentials

type ClientCredentials struct {
	ClientID string `json:"clientId"`     //nolint:tagliatelle // json tag required as is
	Secret   string `json:"clientSecret"` //nolint:tagliatelle // json tag required as is
}

DSV is the namespace for mage tasks related to DSV, such as client credential creation.

type DSV

type DSV mg.Namespace

DSV is the namespace for mage tasks related to DSV, such as client credential creation.

func (DSV) ConvertClientToCredentials

func (DSV) ConvertClientToCredentials() error

ConvertClientToCredentials reads the client credentials created in .cache and converts to the format the helm chart/injector expect.

func (DSV) CreateSecret

func (DSV) CreateSecret() error

🔐 CreateSecret creates a secret for usage with this specific client, policy, and role setup. This probably needs refactoring to allow input via pterm or via file. At time of creation (2023-04) it's a draft task to help with better test setup for developers wanting to test and have isolated permissions for just this specific secret path, role, client. It's all hard coded but can improve in the future.

func (DSV) Destroy

func (DSV) Destroy()

🗑️ Destroy tears down the test credentials hard setup by this automation only

func (DSV) SetupDSV

func (DSV) SetupDSV() error

➕ SetupDSV creates the policy, role, and client credentials.

Jump to

Keyboard shortcuts

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