Skip to content

Instantly share code, notes, and snippets.

@ragusa87
Last active July 27, 2018 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ragusa87/46621c34a52dad4bcdcf02ed632830a7 to your computer and use it in GitHub Desktop.
Save ragusa87/46621c34a52dad4bcdcf02ed632830a7 to your computer and use it in GitHub Desktop.
Wrench passbolt tool
!/keys/config.ini.dist
!/keys/key.private.dist
/keys/*

Run wrench on docker.

requirement

Docker is installed

install

  • Copy keys--config.ini.dist as key/config.ini
  • Copy keys--key.private.distas key/key.private
  • Edit both files with your data
  • Build docker image with docker build . -t wrench

Add an alias in your ~/.bash_alias and source it

alias wrench="docker run -it wrench wrench"

Run

wrench search liip

FROM python:3.7.0-stretch
ENV PATH="/root/.local/bin:${PATH}"
#ENV GPG_TTY=$(tty)
COPY requirements.txt /root/
COPY keys/* /root/.config/wrench/
RUN pip install -r /root/requirements.txt --user --upgrade
RUN pipsi install passbolt-wrench
RUN wrench import_key /root/.config/wrench/key.private
[auth]
server_url = https://passbolt.example.com
server_fingerprint = JustANExample
http_username = user
http_password = password
Insert your private PGP Key in this file
virtualenv
pipsi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment