Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reggi/secure-store
🔐🏪 Securely save files in git repo in Keychain and write them back.
https://github.com/reggi/secure-store
Last synced: about 1 month ago
JSON representation
🔐🏪 Securely save files in git repo in Keychain and write them back.
- Host: GitHub
- URL: https://github.com/reggi/secure-store
- Owner: reggi
- Created: 2024-03-06T05:04:42.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-30T16:17:05.000Z (7 months ago)
- Last Synced: 2024-10-05T10:46:14.485Z (about 2 months ago)
- Language: Rust
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `secure-store`
I often find that I have a bunch of repositories on my machine with `.env` ignored from the repo (rightfully so), but I always want the ability to get rid of the repo and clone it and be ready to go. However, when this happens is I don't have the the `.env` file any more, and have to reassemble it from scratch and hunt down all the variables to get the app working again. What if there was a better way?
* With `secure-store store .env` the file gets saved to `Keychain Access` on mac.
* With `secure-store write .env` you can write the file back to the repo.This uses the first `commit hash` of the repo as a unique identifier for this repo, so there's no chance of retrieving the wrong `.env`.
```
Stores, retrieves, and manages files with the macOS KeychainUsage: secure-store
Commands:
cat Outputs the specified file content to stdout from the macOS Keychain
delete-all Deletes all files for this repo from the macOS Keychain.
delete Delete a file from the macOS Keychain.
hash Prints this repository's hash.
list Lists all the files for this repo that are in macOS Keychain.
store Adds the specified file in the macOS Keychain
write-all Writes all files for this repo from the macOS Keychain.
write Writes the specified file content to disk from the macOS Keychain
help Print this message or the help of the given subcommand(s)Options:
-h, --help Print help
-V, --version Print version
```