Skip to content
/ keybin Public

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.

License

Notifications You must be signed in to change notification settings

cyai/keybin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

keybin

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.

Installation

To install keybin, use Cargo:

$ cargo install keybin

Initial Setup

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

  1. Get Panega Vault API Token:

    • Go to Panega Vault.
    • Obtain your API token from the dashboard.
  2. Create .env File:

    • Create a new file named .env in the root directory of your project.
    • Open the .env file in a text editor.
  3. 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.

Usage

Getting Help

To access command-specific help or general information:

$ keybin help [COMMAND]

Replace [COMMAND] with the command you need help with.

Adding a Secret

Add a secret to the vault.

$ keybin add [NAME]

Prompts:

  • Enter the name/key for this secret: [user input]
  • Enter the value for this secret: [user input]

Getting a Secret

Retrieve a secret from the vault.

$ keybin get [NAME]

This command will copy the value associated with the specified secret to your clipboard.

Listing All Secrets

List all secrets stored in the vault.

$ keybin list

Deleting a Secret

Delete a specific secret from the vault.

$ keybin delete [NAME]

Updating a Secret

Update the information of a stored secret.

$ keybin update [NAME]

Prompts will allow modifications to the secret's details.

Crate Publish

This tool has been published on crate marketplace here: keybin

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages