DataDog / yubikey

YubiKey at Datadog
MIT License
495 stars 36 forks source link

Fix FIPS detection on YubiKey 5C Nano #97

Closed turettn closed 2 years ago

turettn commented 2 years ago

On my newly issued YubiKey, the device type is YubiKey 5C Nano FIPS. When I first ran the script, it showed that this wasn't a FIPS key.

To decide if the YubiKey is FIPS-compliant, the script looks for the substring YubiKey FIPS, which it doesn't find. Instead, this PR looks for r/YubiKey.*FIPS/, matching both the old and new device-type styles.