myapp — minimal secure CLI demo (test only)
Project description
myapp — minimal secure CLI demo (test only)
This is a small demo CLI you can install locally and use to test encrypted storage with MongoDB.
NOT production-ready. Intended for quick testing.
Setup
-
Make sure you have Python 3.9+ and MongoDB running locally (or set
MONGO_URI). -
Install dev tools (optional) and the package in editable mode:
# from project root (myapp-project/)
python -m pip install --upgrade pip
python -m pip install build wheel
python -m pip install -e .
Initialize the master key (stored in your OS keyring):
myapp init
Add a credential (you will be prompted for the secret):
myapp add-cred github_token
Retrieve a credential (for testing only — prints the secret):
myapp get-cred github_token
Add and list devices:
myapp add-device aa:bb:cc:dd:ee:ff 192.168.1.42 server-01
myapp list-devices
Environment
MONGO_URI— optional environment variable to point to MongoDB (defaults to mongodb://localhost:27017).
Warnings & next steps
This demo stores secrets in MongoDB encrypted with a symmetric key stored in your OS keyring. For production:
- Use KMS (AWS KMS / GCP KMS / HashiCorp Vault) or a secure HSM.
- Add authentication and audit logging.
- Rotate keys, protect logs, and never print secrets in plain text.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file myapp_secure_cli-0.1.0.tar.gz.
File metadata
- Download URL: myapp_secure_cli-0.1.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5343a19dcca77f1cce9c87ffdae528f4d5a7b7c59f795cf3c4dae6eca4bfb196
|
|
| MD5 |
ecc1c1b83cbb1ac9e662b1ee7a250501
|
|
| BLAKE2b-256 |
05fbc011ab834adc80420d41d1757c4f8bc797b4d091576f3e97a8d728eb77f5
|
File details
Details for the file myapp_secure_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: myapp_secure_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97647b3d51e47e9fa8dba24001ccaa0fad7ca61b24604b253610302869546aad
|
|
| MD5 |
9c0ea9c1baf7ca31efceaca7e836f040
|
|
| BLAKE2b-256 |
edc146764e1bbacae10ab2ef18b7a1e4a8fdb569763439355f7ff82a1823f3dc
|