- Package:
- yubikey-manager
- Source:
- yubikey-manager
- Submitter:
- Tobias Bengfort
- Date:
- 2022-06-20 03:33:15 UTC
- Severity:
- important
Dear Maintainer, $ ykman oath accounts add foo bar always results in AttributeError: 'OATH_TYPE' object has no attribute 'upper' The only way to prevent this is to explicitly pass both oath type and algorithm: $ ykman oath accounts -o TOTP -a SHA1 add foo bar
Hi Tobias, Can you try again with yubikey-manager 4.0.7-1 (currently in unstable and testing)? I'm unable to reproduce your issue there, and seem to be able to successfully add an account, once I figured out a valid format for the secret: $ echo '123456' | base64 MTIzNDU2Cg== $ ykman oath accounts add foo 'MTIzNDU2Cg==' $ echo $? 0 $ ykman oath accounts list foo Florian
I can verify that this issue does not existing in testing. Is it possible to packport a fix to stable? thanks tobias
Hi Tobias, thanks for confirming. I can probably upload version 4.0.7 to bullseye-backports, would that be useful for you? Updating the version in stable requires a targeted fix, and from a quick glance I fail to see where things go wrong in 4.0.0~a1-4 and what exactly has been fixed. (Are you sure this isn't just a fixed error message, or are you using something else as the value for SECRET?) Florian
I also checked and couldn't find a targeted fix. An upload to bullseye-backports would be very helpful though! thanks, tobias
close 1000187 thanks version 4.0.7-1 confirmed to fix issue, backport is now available as well