Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PIN support #20

Open
nickray opened this issue Apr 8, 2019 · 5 comments
Open

Add PIN support #20

nickray opened this issue Apr 8, 2019 · 5 comments
Labels
good first issue Good for newcomers

Comments

@nickray
Copy link
Member

nickray commented Apr 8, 2019

There are two parts:

  • allow passing -p/--pin <PIN> in all subcommands that might need it
  • implement subcommands solo pin set/reset to set/change the PIN

There is working code in https://github.com/solokeys/solo/blob/master/tools/testing/tests/fido2.py https://github.com/solokeys/fido2-tests/tree/master/tests/standard/fido2 to guide this.

The actual code should be added to client.py, which the CLI just calls.

@nickray nickray added the good first issue Good for newcomers label Apr 8, 2019
@szszszsz
Copy link
Contributor

szszszsz commented Jun 7, 2019

Hi!
I would argue, whether users should be encouraged to provide PIN in the command line. Perhaps support the environment variable instead?

@nickray
Copy link
Member Author

nickray commented Aug 7, 2019

I agree it would be nice to (more generally) have a framework to read solo CLI arguments out of environment variables. Maybe this is a separate task though?

Not sure how much more secure this is, won't most people type export SOLO_PIN=xxx? :)

@szszszsz
Copy link
Contributor

szszszsz commented Aug 8, 2019

Sounds like a generic thing to do. I remember some CLI frameworks have such feature available - hasn't click support that already?

I think the idea back then was to avoid cluttering the shell's history with the raw PIN, which is written to user's hard drive in plaintext. I agree, that using export or env while executing command defeats that.

This was referenced Aug 16, 2019
@cuongnv
Copy link
Contributor

cuongnv commented Oct 30, 2019

I add change pin feature to solo tool. Please take a look
#42

@My1
Copy link
Contributor

My1 commented Nov 9, 2019

might it not just be better to ask the PIN inside the running command? similar like ssh-keygen or whatever it was called does?

because env vars are semi annoying to use and most importantly annoying when dealing with multiple keys when you have different PINs, also browsers and stuff probably have a reason why they always ask for the pin and not store it somewhere...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants