Skip to content

Latest commit

 

History

History
84 lines (70 loc) · 1.9 KB

README.md

File metadata and controls

84 lines (70 loc) · 1.9 KB

Secret-Vault-Backend

image

Self hosted API Key / Secrets manager

Sign up (Limited to cURL and CLI)

/signup

curl -i -X POST \
   -H "Content-Type:application/json" \
   -d \
'{
  "username" : "your_username",
  "password" : "your_password"
}' \
 'https://secret-vault.herokuapp.com/signup'

Login (Limited to cURL and CLI)

/login

curl -i -X POST \
   -H "Content-Type:application/json" \
   -d \
'{
  "username" : "your_username",
  "password" : "your_password"
}' \
 'https://secret-vault.herokuapp.com/login'

Add a bucket (Limited to cURL and CLI)

/login

curl --request POST \
--url 'https://secret-vault.herokuapp.com/add_bucket' \
--header 'Content-Type: application/json' \
--header 'token: {your_token}' \
--data \
  '{
      "bucket_name" : "your_bucket_name",
      "username" : "your_username"
  }'

Get list of buckets (Limited to cURL and CLI)

/get_buckets/{username}

curl --request GET \
  --url 'https://secret-vault.herokuapp.com/get_buckets/{your_username}' \
  --header 'token: {your_token}'

Add an Item to Bucket (Limited to cURL and CLI)

/add_item

curl --request POST \
--url 'https://secret-vault.herokuapp.com/add_item' \
--header 'Content-Type: application/json' \
--header 'token: {your_token}' \
--data '{
	"username" : "your_username",
	"bucket_name" : "your_bucket_name",
	"name" : "item_name",
	"value" : "item_value"
}'

Get list of Items in a bucket (Limited to cURL and CLI)

/get_items/{username}/{bucket_name}

curl --request GET \
  --url 'https://secret-vault.herokuapp.com/get_items/{username}/{bucket_name}' \
  --header 'token: {your_token}'

System Design

image