WasatchPhotonics / ENLIGHTEN

Open-source spectroscopy application for controlling and taking measurements from Wasatch Photonics spectrometers.
https://wasatchphotonics.com/product-category/software/
MIT License
3 stars 6 forks source link

Add --password command-line arg (or environment variable) #408

Open mzieg opened 1 month ago

mzieg commented 1 month ago

User request: would allow people to edit their own desktop shortcuts to automatically open ENLIGHTEN with the production password.

Obviously putting clear-text passwords on the command-line is insecure (they typically appear in process listings, especially on POSIX), yet this is also a very common mechanism with database clients and the like.

An alternative would be to check for an environment variable (export ENLIGHTEN_PASSWORD=foo).

I'm ambivalent on the mechanism, but agree it's a valid request.