- Notifications
You must be signed in to change notification settings - Fork72
Share Environnment Variables Securely
License
chronark/envshare
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
EnvShare is a simple tool to share environment variables securely. It usesAES-GCM to encrypt your data before sending it to the server. The encryptionkey never leaves your browser.
- Shareable Links: Share your environment variables securely by sending alink
- End-to-End Encryption: AES-GCM encryption is used to encrypt your databefore sending it to the server
- Limit number of reads: Limit the number of times a link can be read
- Auto Expire: Automatically expire links and delete data after a certaintime
- Next.js
- tailwindcss
- Deployed onVercel
- Data stored onUpstash
Detailed instructions can be foundhere
All you need is a Redis database on Upstash and a Vercel account. Click thebutton below to clone and deploy:
![]()
|
ENABLE_VERCEL_ANALYTICS Any truthy value will enable Vercel Analytics. This is turned off by default
This repository usespnpm to manage dependencies. Install it usingnpm install -g pnpm
Please runpnpm fmt before committing to format the code.
Docs in the README are temporary and will be moved to the website soon.
PLEASE NEVER EVER UPLOAD UNENCRYPTED SECRETS.
This endpoint is only meant to storealready encrypted secrets. Theencrypted secrets are stored in plain text.
$curl -XPOST -s https://envshare.dev/api/v1/secret -d"already-encrypted-secret"You can add optional headers to configure the ttl and number of reads.
$curl -XPOST -s https://envshare.dev/api/v1/secret -d"already-encrypted-secret" -H"envshare-ttl: 3600" -H"envshare-reads: 10"- Omitting the
envshare-ttlheader will set a default of 30 days. Disable thettl by setting it to 0. (envshare-ttl: 0) - Omitting the
envshare-readsheader will simply disable it and allow readingfor an unlimited number of times.
This endpoint returns a JSON response with the secret id:
{"data": {"id":"HdPbXgpvUvNk43oxSdK97u","ttl":86400,"reads":2,"expiresAt":"2023-01-19T20:47:28.383Z","url":"http://envshare.dev/api/v1/secret/HdPbXgpvUvNk43oxSdK97u" }}You need an id to retrieve a secret. The id is returned when you store a secret.
$curl -s https://envshare.dev/api/v1/secret/HdPbXgpvUvNk43oxSdK97u{"data": {"secret":"Hello","remainingReads":1 }}About
Share Environnment Variables Securely
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors7
Uh oh!
There was an error while loading.Please reload this page.

