Crates.io | keybin |
lib.rs | keybin |
version | 0.1.3 |
source | src |
created_at | 2023-11-14 14:44:43.155308 |
updated_at | 2023-11-16 00:56:17.356138 |
description | A simple cli tool that stores your secret api keys securly on Panega vault and retrives them whenever you require |
homepage | https://github.com/cyai/keybin#readme |
repository | https://github.com/cyai/keybin |
max_upload_size | |
id | 1034864 |
size | 71,090 |
keybin
is a command-line interface tool built with Rust and CLAP for secure management of API and secret keys using the Panega Vault service.
To install keybin
, use Cargo:
$ cargo install keybin
Before using keybin
, you need to perform the initial setup to configure your Panega Vault API token.
Get Panega Vault API Token:
Create .env File:
.env
in the root directory of your project..env
file in a text editor.Add API Token to .env:
Inside the .env
file, add the following line, replacing YOUR_API_TOKEN
with your actual Panega Vault API token:
PANEGA_VAULT_API_TOKEN=YOUR_API_TOKEN
Save and close the .env
file.
Now, your keybin
tool is configured with the Panega Vault API token, and you can start using the commands described below.
To access command-specific help or general information:
$ keybin help [COMMAND]
Replace [COMMAND]
with the command you need help with.
Add a secret to the vault.
$ keybin add [NAME]
Prompts:
Retrieve a secret from the vault.
$ keybin get [NAME]
This command will copy the value associated with the specified secret to your clipboard.
List all secrets stored in the vault.
$ keybin list
Delete a specific secret from the vault.
$ keybin delete [NAME]
Update the information of a stored secret.
$ keybin update [NAME]
Prompts will allow modifications to the secret's details.
This tool has been published on crate marketplace here: keybin