planetscale

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: MPL-2.0 Imports: 11 Imported by: 0

README

vault-plugin-secrets-planetscale

Generate @planetscale usernames and passwords using vault.

Usage

Setup Endpoint
  1. Download and enable plugin locally (TODO)

  2. Configure the plugin

    vault write /planetscale/config/root service_token=<service_token> service_token_name=<service_token_id>
    
  3. Add one or more policies

Configure Policies
vault write planetscale/roles/fjord organization=bloominlabs database=bloominlabs role=admin branch=main

you can then read from the role using

vault read /planetscale/creds/<role-name>

Development

The provided Earthfile (think makefile, but using docker) is used to build, test, and publish the plugin. See the build targets for more information. Common targets include

# build a local version of the plugin
$ earthly +build

# start vault and enable the plugin locally
earthly +dev

Documentation

Index

Constants

View Source
const (
	SecretTokenType = "token"
)

Variables

This section is empty.

Functions

func Factory

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

Factory configures and returns Mock backends

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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