Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

hoophq/plugin-secretsmanager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plugin Secrets Manager

This plugin integrates with external secrets manager

Secret Manager Plugin Doc

Publishing

# builds for linux/amd64 by default
PLUGIN_VERSION=vX.X.X make build
PLUGIN_VERSION=vX.X.X make publish

For testing purposes, like running the plugin locally for development:

GOOS=darwin GOARCH=arm64 PLUGIN_VERSION=vX.X.X make publish

Development

PLUGIN_NAME=secretsmanager
CONN=bash

# expect env: ENV_CONFIG='{"HOST": ""}'
hoop admin create conn $CONN --overwrite \
    -e HOST envjson:ENV_CONFIG:HOST
    -a test-agent -- bash

hoop admin create plugin $PLUGIN_NAME --overwrite \
    --source=path:/tmp/ \
    --connection "$CONN"

go build -o /tmp/$PLUGIN_NAME main.go

hoop exec $CONN -i 'env'