https://github.com/nullobsi/pass-secrets
Use pass to store your application secrets!
https://github.com/nullobsi/pass-secrets
Last synced: about 1 year ago
JSON representation
Use pass to store your application secrets!
- Host: GitHub
- URL: https://github.com/nullobsi/pass-secrets
- Owner: nullobsi
- License: gpl-3.0
- Created: 2021-03-22T20:58:02.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-06-08T17:40:48.000Z (about 2 years ago)
- Last Synced: 2025-04-05T07:33:08.947Z (about 1 year ago)
- Language: C++
- Homepage:
- Size: 441 KB
- Stars: 34
- Watchers: 4
- Forks: 4
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pass-secrets
CLI Application that provides the Freedesktop Secret Service using Pass as its backend!
## Status
Currently working to store secrets with protonmail-bridge. I have not done tests with other applications; if it doesn't work, please open an issue!
## How to build
pass-secrets requires pass and sdbus-c++ to be installed on your machine. Rapidjson and nanoid are included in the repo.
```
cd pass-secrets
mkdir build
cd build
cmake ..
make
```
You can then install with `sudo make install` and uninstall with `sudo xargs rm < install_manifest.txt`. This will by default install a systemd user service that can be dbus-activated when enabled.
```
sudo make install
systemctl --user enable pass-secrets
```
Alternatively, you can run it in the background in your bashrc/xinitrc.
```
...
/usr/local/bin/pass-secrets &
...
```
If you're running pass-secrets on a BSD, or possibly a non-systemd Linux system, you'll need to start a DBus session bus before starting pass-secrets. For instance, your ~/.bash_profile could contain:
```
if ! pgrep -qf -U ${USER:-$(id -u)} dbus.\*--session; then
dbus-daemon --session --fork --address=unix:runtime=yes 2>/dev/null
export DBUS_SESSION_BUS_ADDRESS=unix:path=$XDG_RUNTIME_DIR/bus
fi
```
See [this issue](https://github.com/nullobsi/pass-secrets/issues/11) for more details.