Project

ccli

0.0
Low commit activity in last 3 years
No release in over a year
CCLI is the Cryptopus Command Line Interface. It allows to fetch encryptable data and list teams from Cryptopus. One of the main functionality is backing up secrets from cluster services (currently: openshift, kubernetes) to Cryptopus and restoring them as well.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 4.5, >= 4.5.2
~> 0.1
 Project Readme

ccli

Command Line Client for Cryptopus

Installation

gem install ccli

This will install the cry command including its dependencies

Features

  • Fetch encryptable data from Cryptopus
  • List accessable teams in Cryptopus

Usage

Receiving the login token from Cryptopus

Commands

  Command:           Summary:

  encryptable        Fetches an encryptable by the given id
  folder             Selects the Cryptopus folder by id
  help               Display global or [command] help documentation
  login              Logs in to the ccli
  logout             Logs out of the ccli
  teams              Lists all available teams
  use                Select the current folder

Show more specific documentation by calling cry help <command>

Account

Logging in

Use the ccli login copy button from the UI or do it manually:

user=<my-user>
token=<my-token>
url=https://cryptopus.example.com

cry login $(echo -n "$user:$token" | base64)@$url

Retrieving

To retreive encryptable data as yaml:

cry encryptable 42 > encryptable.yaml

Retreiving encryptable's password and assign it to a variable:

PASSWORD=$(cry encryptable 42 --password)

Updating

not supported yet by ccli

Development

Prerequisites

You will need the following things properly installed on your computer:

Setup

  • rvm install 2.6.0
  • gem install bundler
  • bundle install

Running tests

bundle exec rspec