ccli
Cryptopus Command Line Client
Installation
gem install ccli
This will install the cry
command including its dependencies
Features
- Fetch account data from Cryptopus
- List accessable teams in Cryptopus
- Sync Openshift/Kubernetes Secrets to Cryptopus
- Sync Secrets from Cryptopus to Openshift/Kubernetes
Usage
Receiving the login token from Cryptopus
Kubernetes/Openshift
Required tools
First you'll have to install either oc or kubectl depending on your usage
Labeling secret to be synced
So that a secret even gets considered by the ccli
, you have to add the cryptopus-sync=true
label to your secret:
oc: oc label secret <secret-name> cryptopus-sync=true
kubectl: kubectl label secret <secret-name> cryptopus-sync=true
Commands
Command: Summary:
account Fetches an account by the given id
folder Selects the Cryptopus folder by id
help Display global or [command] help documentation
k8s-secret-pull Pulls secret from Kubectl to Cryptopus
k8s-secret-push Pushes secret from Cryptopus to Kubectl
login Logs in to the ccli
logout Logs out of the ccli
ose-secret-pull Pulls secret from Openshift to Cryptopus
ose-secret-push Pushes secret from Cryptopus to Openshift
teams Lists all available teams
use Select the current folder
Show more specific documentation by calling cry help <command>
Development
Prerequisites
You will need the following things properly installed on your computer:
Setup
rvm install 2.6.0
gem install bundler
bundle install