Bug 2569003

Summary: nitropy cannot connect to Nitrokey NK3xN bootloader due to outdated udev rules
Product: [Fedora] Fedora Reporter: robin+redhat
Component: python-pynitrokeyAssignee: Daniel Milnes <daniel>
Status: ASSIGNED --- QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: agruen, daniel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2568563, 2577489    
Bug Blocks:    

Description robin+redhat 2026-11-09 09:19:45 UTC
pynitrokey uses the hidapi library to communicate with the NK3xN bootloader. The library supports two modes, hidraw and libusb. pynitrokey pins hidapi to a version using hidraw. Fedora ships a version using libusb and ignores the pin.

The old Nitrokey udev rules shipped with libnitrokey only supported hidraw. The rules have been moved to a [separate repository][1] in 2024 and received support for the libusb mode in 2025 with [v1.1.0][2]. Fedora still ships the old udev rules from libnitrokey.

[1]: https://github.com/Nitrokey/nitrokey-udev-rules
[2]: https://github.com/Nitrokey/nitrokey-udev-rules/releases/tag/v1.1.0

The combination of the two means that users installing pynitrokey via Fedora are not able to communicate with the NK3xN bootloader. I would recommend to replace the udev rules from libnitrokey with the new udev rules from nitrokey-udev-rules in a separate package. See also [this upstream issue][3].

[3]: https://github.com/Nitrokey/pynitrokey/issues/806

Reproducible: Always

Steps to Reproduce:
1. Connect NK3xN device.
2. Reboot to bootloader with `nitropy nk3 reboot --bootloader`.
3. Try to connect to the device, e. g. with `nitropy nk3 list` or `nitropy nk3 update`.
Actual Results:
```
nitrokey.trussed._bootloader.lpc55_upload.exceptions.SPSDKConnectionError: SPSDK: Unable to open device ' (0x20A0, 0x42DD)path=b'3-6:1.0''
```

Expected Results:
Device is used correctly.

Comment 1 Daniel Milnes 2026-11-19 21:24:18 UTC
Agreed with the plan to move the udev rules into their own RPM, I'll whip up a ticket for that now