Skip to main content

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

  1. Make sure you have Python 3.9+ and MongoDB running locally (or set MONGO_URI).

  2. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

myapp_secure_cli-0.1.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

myapp_secure_cli-0.1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

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

Hashes for myapp_secure_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5343a19dcca77f1cce9c87ffdae528f4d5a7b7c59f795cf3c4dae6eca4bfb196
MD5 ecc1c1b83cbb1ac9e662b1ee7a250501
BLAKE2b-256 05fbc011ab834adc80420d41d1757c4f8bc797b4d091576f3e97a8d728eb77f5

See more details on using hashes here.

File details

Details for the file myapp_secure_cli-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for myapp_secure_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 97647b3d51e47e9fa8dba24001ccaa0fad7ca61b24604b253610302869546aad
MD5 9c0ea9c1baf7ca31efceaca7e836f040
BLAKE2b-256 edc146764e1bbacae10ab2ef18b7a1e4a8fdb569763439355f7ff82a1823f3dc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page