neptune-client icon indicating copy to clipboard operation
neptune-client copied to clipboard

Feature Request: Alternative interface for credentials/API token

Open francois-rozet opened this issue 5 months ago • 3 comments

Is your feature request related to a problem? Please describe.

Using a environment variable to provide the API token is not convenient. It is not always possible/desirable to edit config files (~/.bashrc, ~/.bash_profile, ~/.profile, ...) to export the API token. Consequently, I am forced to either

  1. export my API token manually in every new terminal or
  2. add my API token in clear in my scripts, which is a safety hazard.

Describe the solution you'd like

A way to login/save credentials from the CLI, that saves a file somewhere in the user space (~).

Describe alternatives you've considered

None.

Additional context

Currently, the quick guides in a new project show that it is possible to provide your API token in the (Python) code. I think this is not a good idea as beginners will very likely push that code to some repository.

francois-rozet avatar Sep 09 '24 15:09 francois-rozet