pe-st / garmin-connect-export

Download a copy of your Garmin Connect data, including stats and GPX tracks.
MIT License
364 stars 75 forks source link

Integration with Password Managers #83

Open bxsx opened 2 years ago

bxsx commented 2 years ago

Summary

This PR integrates garmin-connect-export with password managers. Currently supported managers:

A newly added option --passmanager PASSWORD_MANAGER enables integration for the selected manager.

Pitch

Garmin Connect requires login and password for authentication. These credentials are passed to the app as a plain text via program arguments such as --username and --password. This can lead to potential leakage of credentials in the event of unsecured storage (like in plain text files).

This integration allows you to get the credentials directly from Password Manager and pass them to the application.

Requirements

Usage

Use --passmanager PASSWORD_MANAGER to look up garmin.com item for credentials.

Examples

python gcexport.py --passmanager BitWarden

Notes

--passmanager option cannot be mixed with --username or --password.

bxsx commented 5 months ago

@pe-st any plans to merge it? I can update the branch and resolve conflicts..

pe-st commented 5 months ago

Hello @bxsx, I will not be able to test your PR (not using these 2 password managers, and the ones I uses don't have CLI (yet)), but if it's helpful I'm sure other people will like it. So yes, go ahead :-)