Skip to main content

keybin is a command-line interface tool built with python for secure management of API and secret keys using the Panega Vault service.

Project description

KeyBin

keybin is a command-line interface tool built with python for secure management of API and secret keys using the Panega Vault service.

Initial Setup

Before using keybin, you need to perform the initial setup to configure your Panega Vault API token.

Get Panega Vault API Token:

  • Go to Panega Vault.
  • Obtain your API token from the dashboard.

MongoDb Token:

  • Get you MongoDb URL
  • Add it in the .env file with the name of URL

Installation

Install my-project with npm

pip install keybin

Features

  • 🔐 Secure Secret Management: Store, retrieve, update, and delete secrets securely.
  • 🛠️ Flexible Metadata: Add and update metadata in key-value pairs.
  • 🏷️ Tag Management: Categorize secrets with tags for easy retrieval and management

General Guide

Initinializing your API key

Use init command to intialize your API key

Guide to Update and Delete

  • Get the id of your secret which you want to update or delete from 'getid' command
  • Now use to id with commands

Usage

Getting Help

keybin --help [COMMAND]

Repale [COMMAND] with the command you need help with

Adding a Secret

Add a secret to the vault

keybin store <SECRET_VALUE> [-n <SECRET_NAME>] [-k <KEY_TYPE>] [-f <FOLDER>] [-m <METADATA>] [-t <TAGS>]
  • Arguments
    • value: The secret value to store.
    • -n, --name: A unique name to identify the secret.
    • -k, --key_type: The type of the key (default is 'secret').
    • -f, --folder: The folder where the secret will be stored.
    • -m, --metadata: Additional metadata for the secret in the format key:value (e.g., [name:abc,product:xcompany]).
    • -t, --tags: Tags to categorize the secret, separated by commas (e.g., [tags1,tags2]).

Listing the Secrets

keybin list [-f <FOLDER>] [-t <TAGS>] [-n <NAME_CONTAINS>] [-c <CREATED_AT>] [-s <SIZE>] [-o <ORDER>] [-ob <ORDER_BY>] [-l <LAST>] [-i <INCLUDE_SECRETS>]
  • Arguments
    • -f, --folder: The folder containing the secrets.
    • -t, --tags: Tags to filter the secrets by, separated by commas (e.g., [tags1,tags2]).
    • -n, --name_contains: Filter by secrets whose names contain this value.
    • -c, --created_at: Filter by secrets created after this date (ISO format).
    • -s, --size: Maximum number of items to return (default is 50).
    • -o, --order: Order of results (asc or desc).
    • -ob, --order_by: Property to order the results by (e.g., created_at, name).
    • -l, --last: ID of the last item from a previous query, for pagination.
    • -i, --include_secrets: Whether to include the secret values in the results (true or false).

Getting Id of a secret

keybin getid --name <SECRET_NAME>
  • Arguments
    • --name: The name of the secret you want to retrieve

Updating Secret

keybin update <ID> [-n <NAME>] [-f <FOLDER>] [-m <METADATA>] [-t <TAGS>]
  • Arguments
    • id: The ID of the secret to update.
    • -n, --name: New name for the secret.
    • -f, --folder: New folder to move the secret to.
    • -m, --metadata: New metadata for the secret in the format key:value (e.g., [name:abc,product:xcompany]).
    • -t, --tags: New tags to assign to the secret, separated by commas (e.g., [tags1,tags2]).

Deleting Secret

keybin delete <ID>
  • Arguments
    • id: The ID of the secret to delete.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

keybin-1.0.0.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

keybin-1.0.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file keybin-1.0.0.tar.gz.

File metadata

  • Download URL: keybin-1.0.0.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for keybin-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0258c82f37eb386361587dd22b8201175ff19d6c30a10984f409f94a07b8114e
MD5 cfdcd48c1fb34a04bfbb1db043e599ca
BLAKE2b-256 7777c69db26cff2a4c29901f107aba01cdd2a94bf6ec8c14e8b5c7e4a15abf36

See more details on using hashes here.

File details

Details for the file keybin-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: keybin-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for keybin-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8759047dc9f0a437612c058497934ac4030dc7ed46c0695eb0967720890e9d3a
MD5 9a6693dbf9360579b326cb6cb7b155cd
BLAKE2b-256 0b9eb0b1468446775ee33c17e0145a7c8c889d6e8aa60bc152d28b6bdd488088

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page