<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/nitrocli, branch v0.3.5</title>
<subtitle>A command line tool for interacting with Nitrokey devices (GitHub mirror)
</subtitle>
<id>https://git.ireas.org/mirrors/nitrocli/atom?h=v0.3.5</id>
<link rel='self' href='https://git.ireas.org/mirrors/nitrocli/atom?h=v0.3.5'/>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/nitrocli/'/>
<updated>2021-01-11T05:01:12Z</updated>
<entry>
<title>Bump version to 0.3.5</title>
<updated>2021-01-11T05:01:12Z</updated>
<author>
<name>Daniel Mueller</name>
<email>deso@posteo.net</email>
</author>
<published>2021-01-11T05:01:12Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/nitrocli/commit/?id=a4f43e20faf5b3490da989932151514fe6c97cbc'/>
<id>urn:sha1:a4f43e20faf5b3490da989932151514fe6c97cbc</id>
<content type='text'>
This change bumps the version of the crate to 0.3.5. The following
notable changes have been made since 0.3.4:
- Added support for configuration files
  - Added support for configuration files that can be used to set
    default values for some arguments
  - Added toml dependency in version 0.5.6
  - Added serde dependency in version 1.0.114
  - Added envy dependency in version 0.4.2
  - Added merge dependency in version 0.1.0
  - Added directories dependency in version 3.0.1
- Reworked connection handling for multiple attached Nitrokey devices:
  - Fail if multiple attached devices match the filter options (or no filter
    options are set)
  - Added --serial-number option that restricts the serial number of the
    device to connect to
  - Added --usb-path option that restricts the USB path of the device to
    connect to
- Bumped structopt dependency to 0.3.17
</content>
</entry>
<entry>
<title>Update man page after change to base32 default OTP format</title>
<updated>2020-10-04T13:51:10Z</updated>
<author>
<name>Daniel Mueller</name>
<email>deso@posteo.net</email>
</author>
<published>2020-10-04T13:51:10Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/nitrocli/commit/?id=a992925f7dcee6a27404df0a56b47c09faed5265'/>
<id>urn:sha1:a992925f7dcee6a27404df0a56b47c09faed5265</id>
<content type='text'>
When we switched the default OTP format from hexadecimal to base32 we
missed that the manual was providing examples of the otp set command
that were implicitly making use of the default format -- leading to a
mismatch between what the example is meant to do and what it actually
does.
This change fixes this oversight in the manual by adjusting the examples
accordingly.
</content>
</entry>
<entry>
<title>Shorten some error handling paths</title>
<updated>2020-09-30T03:31:50Z</updated>
<author>
<name>Daniel Mueller</name>
<email>deso@posteo.net</email>
</author>
<published>2020-09-30T03:31:50Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/nitrocli/commit/?id=1af85ad50523427384234313fe00aa8bfa89135f'/>
<id>urn:sha1:1af85ad50523427384234313fe00aa8bfa89135f</id>
<content type='text'>
When we originally switched over to using anyhow for error handling, we
evidently missed to take advantage of its context support in a couple of
error paths. The result was that we ended up with rather long winded
  &gt; result.ok_or_else(|| anyhow::anyhow!(...))
constructs.
This change shortens them, making use of the anyhow::Context trait.
</content>
</entry>
<entry>
<title>Fix number of password safe slots mentioned in the man page</title>
<updated>2020-10-04T13:30:03Z</updated>
<author>
<name>Daniel Mueller</name>
<email>deso@posteo.net</email>
</author>
<published>2020-10-04T13:30:03Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/nitrocli/commit/?id=4d779638826bee5e4ee5c7ea2ed2fc8d0d7275be'/>
<id>urn:sha1:4d779638826bee5e4ee5c7ea2ed2fc8d0d7275be</id>
<content type='text'>
The man page mentions a password safe slot count of 20 for both the
Nitrokey Pro and the Nitrokey Storage devices. This count is incorrect,
as both devices can store only 16 entries each, as is evident from the
corresponding technical details for each device. With this change we
correct said number.
</content>
</entry>
<entry>
<title>Update README.md</title>
<updated>2021-01-11T01:37:57Z</updated>
<author>
<name>Szczepan Zalega</name>
<email>szszszsz@users.noreply.github.com</email>
</author>
<published>2020-09-23T09:43:54Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/nitrocli/commit/?id=5ce99eeecdae7fc6c76c5339d2ddd9e1727cb1f0'/>
<id>urn:sha1:5ce99eeecdae7fc6c76c5339d2ddd9e1727cb1f0</id>
<content type='text'>
Update company name to Nitrokey GmbH
</content>
</entry>
<entry>
<title>Rename device path to USB path in list output</title>
<updated>2021-01-11T01:37:57Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2020-09-09T11:03:44Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/nitrocli/commit/?id=b39663bf381cbc1079fed08fbd3d0fe665151e90'/>
<id>urn:sha1:b39663bf381cbc1079fed08fbd3d0fe665151e90</id>
<content type='text'>
For consistency with the --usb-path option, this path renames the device
path column in the output of the list command to USB path.
</content>
</entry>
<entry>
<title>Add --usb-path option to select device</title>
<updated>2021-01-11T01:37:57Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2020-09-08T16:23:30Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/nitrocli/commit/?id=9593dfd03a6ca085d649ca090b6ec5e5f0104e78'/>
<id>urn:sha1:9593dfd03a6ca085d649ca090b6ec5e5f0104e78</id>
<content type='text'>
This patch adds the --usb-path option as an additional way to filter the
Nitrokey device to connect to.  While the serial number is a better
identifier in theory, the Nitrokey Storage devices do not send their
serial number in the USB device descriptor.  Having the --usb-path
options allows users to select one of multiple Nitrokey Storage devices.

While we could directly call the nitrokey::Manager::connect_path
function with the specified path, we integrate the --usb-path option
into the existing find_device function for consistent error messages and
to avoid having to duplicate the --model and --serial-number checks.
</content>
</entry>
<entry>
<title>Add test cases for new connection logic</title>
<updated>2021-01-11T01:37:56Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2020-09-07T18:47:41Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/nitrocli/commit/?id=9975f8810399d5e535f2e2fd62b4dc56b313f955'/>
<id>urn:sha1:9975f8810399d5e535f2e2fd62b4dc56b313f955</id>
<content type='text'>
This patch adds test cases for the new connection logic:
- connect_multiple checks that nitrocli aborts if more than one Nitrokey
  device is connected and no filter is set.
- connect_serial_number checks that we can use the --serial-number
  option to connect to all supported Nitrokey devices.
- connect_wrong_serial_number checks that nitrocli aborts if it can’t
  find a device with the requested serial number.
- connect_model checks that we can use the --model option to select the
  Nitrokey device to connect to, and that nitrocli aborts if it finds no
  matching device or multiple matching devices.
</content>
</entry>
<entry>
<title>Update structopt dependency to 0.3.17</title>
<updated>2020-08-26T05:29:43Z</updated>
<author>
<name>Daniel Mueller</name>
<email>deso@posteo.net</email>
</author>
<published>2020-08-26T05:29:43Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/nitrocli/commit/?id=ddc6f47970011e2092b3e068198072c18a4a5fb6'/>
<id>urn:sha1:ddc6f47970011e2092b3e068198072c18a4a5fb6</id>
<content type='text'>
This change updates the structopt crate to version 0.3.17. We need this
version as it fixes a compilation error [0] when using the
external_subcommand enum variant annotation provided by the crate. This
functionality will be used in a follow up change that enables usage of
user provided extensions.

[0]: https://github.com/TeXitoi/structopt/issues/424
</content>
</entry>
<entry>
<title>Add --serial-number option</title>
<updated>2021-01-11T01:37:56Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2020-01-25T19:33:57Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/nitrocli/commit/?id=6ce6dc4f3db67c3f6b6148b1fb03644e91900291'/>
<id>urn:sha1:6ce6dc4f3db67c3f6b6148b1fb03644e91900291</id>
<content type='text'>
This patch adds the --serial-number option that allows the user to
filter the attached Nitrokey devices by serial number.  As the Nitrokey
Storage does not include its serial number in the USB device descriptor
and as we don't want to connect to it just to query the serial number,
this option only works for Nitrokey Storage devices.
</content>
</entry>
</feed>
