Skip to content

builtree/Secret-Vault-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages