gopass-summon-provider

command module
v1.15.12 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 12 Imported by: 0

README

Using gopass as summon provider

What is summon?

Summon is a command-line tool to inject secrets as environment variables. It is used to execute a process and inject secrets from a separate store. Using gopass can be useful in (local) development

Summon Provider

The gopass repository contains the cmd/gopass-summon-provider tool, that can be used as summon provider.

To make use of gopass-summon-provider to retrieve the test/db-password secret, you can call summon with full provider path

summon -p /usr/local/bin/gopass-summon-provider --yaml 'DBPASS: !var test/db-password' bash -c 'echo $DBPASS'

or link gopass-summon-provider to /usr/local/lib/summon/gopass and just use gopass

summon -p gopass --yaml 'DBPASS: !var test/db-password' bash -c 'echo $DBPASS'

or export SUMMON_PROVIDER=gopass as default provider

summon --yaml 'DBPASS: !var test/db-password' bash -c 'echo $DBPASS'

With the appropriate secrets.yml, it's as easy as running

summon ./my-command-to-run

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
helpers

Jump to

Keyboard shortcuts

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