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

Inform user when a passphrase-enabled Trezor is detected #490

Closed
gary-rowe opened this issue Apr 2, 2015 · 8 comments
Closed

Inform user when a passphrase-enabled Trezor is detected #490

gary-rowe opened this issue Apr 2, 2015 · 8 comments
Assignees
Labels
Milestone

Comments

@gary-rowe
Copy link
Contributor

At present when a passphrase-enabled Trezor is detected MultiBit HD locks up. The user should be given a message indicating that a device with passphrase is not currently supported, possibly with a link to the help detailing why this is currently the case.

This is related to MultiBit Hardware #4

@gary-rowe gary-rowe self-assigned this Apr 2, 2015
@gary-rowe gary-rowe added this to the Beta 8 milestone Apr 2, 2015
@jim618
Copy link
Contributor

jim618 commented Apr 2, 2015

We could bump this to Beta 9 in order to expedite Beta 8 (and get the Trezor firmware changes out earlier)

@jim618 jim618 added the hardware label Apr 2, 2015
@gary-rowe
Copy link
Contributor Author

I'll have more time to work on these over Easter and I think it'll be quick to implement (essentially an error path to the report screen). If it looks like more than 2hrs effort I'll bump it.

@jim618
Copy link
Contributor

jim618 commented Apr 2, 2015

Ok. Always nice to clear stuff earlier where possible.

@gary-rowe gary-rowe changed the title Inform user when an passphrase-enabled Trezor is detected Inform user when a passphrase-enabled Trezor is detected Apr 2, 2015
gary-rowe added a commit that referenced this issue Apr 2, 2015
Add support for FEST test for configuration with passphrase
@gary-rowe
Copy link
Contributor Author

Fairly hefty changes needed to meet this requirement. The decision to not support passphrase is essentially an "unsupported configuration" failure. At the time there was no good way to present this (it wasn't a security issue) so I've renamed security event and service handling throughout as "environment". This allows more flexibility when creating popovers so that the title can be changed between a "security alert" and simply "information".

Here are some screen shots of the new behaviour:

screen shot 2015-04-02 at 21 15 30

screen shot 2015-04-02 at 21 16 20

I've added a FEST test with supported firmware but unsupported configuration using our Trezor fixtures.

Ready for review and close.

@jim618
Copy link
Contributor

jim618 commented Apr 4, 2015

It is almost there but not quite 100%.
I tried plugging in a Trezor (with password) on the Credentials screen and I just see the 'Communicating with Trezor screen forever'. The Trezor is asking me to enter the password on the computer.

I see an error in the log:

[2015-04-04 11:23:21,074] DEBUG [safe-fixed-hardware-wallet-events-0] o.m.h.h.c.e.HardwareWalletEvents - Completed 'hardware wallet' event: SHOW_OPERATION_FAILED 
Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: Optional.get() cannot be called on an absent value
    at com.google.common.base.Absent.get(Absent.java:47)
    at org.multibit.hd.ui.views.wizards.credentials.CredentialsWizardModel.showOperationFailed(CredentialsWizardModel.java:306)
    at org.multibit.hd.ui.views.wizards.AbstractHardwareWalletWizard$8.run(AbstractHardwareWalletWizard.java:292)

If I plug in the Trezor AFTER I have gone through the credentials wizard I see a yellow alert telling me that the hardware is unsupported correctly.

If I do a switch wallet with the trezor still plugged in I see the yellow popup warning saying the same.

If the Trezor is plugged in BEFORE MBHD starts I see the popup warning correctly.

It is just if the Trezor is plugged in at the very first showing of the 'Enter Password' screen that seems problematic.

@jim618
Copy link
Contributor

jim618 commented Apr 5, 2015

I did an update from github today to retest if a password protected Trezor is detected on the first showing of the credentials now. It's not. You still get a 'communicating with Trezor' forever.

gary-rowe added a commit that referenced this issue Apr 6, 2015
…n credentials screen (requires MBHW update)
@gary-rowe
Copy link
Contributor Author

Added supporting to code to MBHW for passphrase request event. This makes it easier to handle rejection in MBHD.

To verify ensure you have the latest MBHW (pushed to staging repo). Start MBHD and proceed to password entry screen. Attach passphrase enabled Trezor and observe popover with unsupported message. Dismiss message and proceed to unlock device. Observe no further Trezor messages.

Ready for review and close.

@jim618
Copy link
Contributor

jim618 commented Apr 6, 2015

Successfully tried inserting a passphrase protected Trezor at the following times:

  • Before start of MBHD
  • On first appearance of credentials wizard
  • After password entered and wallet unlocked.

In all cases the 'Unsupported blah blah' message came up.

Closing

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

No branches or pull requests

2 participants