repositorypackage
0.0.0-20220525154551-1653de505156
Repository: https://github.com/sealbro/sealbro-cli.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# README
sealbro-cli
Helpful CLI makes your daily programming routine simpler and safer
go install -v github.com/sealbro/sealbro-cli@latest
sealbro-cli secrets -h
Stdout vault provider for git-secrets
How use?
- set environment variables
SEALBRO_PASSPHRASE
- (optional) passphrase for encryption keyVAULT_ADDR
- vault addressVAULT_TOKEN
- vault token
- install and setup git-secrets
- install on your macos/windows/linux
- macos
brew install git-secrets
- macos
- install git secrets for repository
cd <your repository path>
git secrets --install -f
- add
sealbro-cli
vault provider into git-secretsgit secrets --add-provider -- sealbro-cli secrets show --path /devops/ --exclude ansible_user --exclude url --exclude username --exclude private --exclude public
--path
- vault kv--exclude
- vault secret key name to exclude from output
- install on your macos/windows/linux
- or little easier after install
git-secrets
- use
secrets init
(clean prev providers / install git-secrets for repository / add new providers global) sealbro-cli secrets init --path /devops/ --exclude ansible_user --exclude url --exclude username --exclude private --exclude public
- use
Useful advices
- export variables from
.env
fileexport $(grep -v '^#' .env | xargs -0)
- macos set global environments zsh
echo "export SEALBRO_PASSPHRASE=<passphrase>" > ~/.zshenv
echo "export VAULT_ADDR=<address>" > ~/.zshenv
echo "export VAULT_TOKEN=<token>" > ~/.zshenv
echo "export GOPATH=$HOME/go" > ~/.zshenv
echo "export PATH="$GOPATH/bin:$PATH" > ~/.zshenv
- uninstall module after
go install
rm -rf $GOPATH/bin/sealbro-cli
- remove from git config
git config [--global] --unset secrets.providers
- location git config
- global
cat ~/.gitconfig
- local
cat ./.git/config
- global