aws-mfa icon indicating copy to clipboard operation
aws-mfa copied to clipboard

Support for U2F keys

Open BastienM opened this issue 6 years ago • 8 comments

Hi,

AWS recently announced that Yubikeys can now be used as MFA solution, sadly aws-mfa does not support it yet. Is someone already working on that ?

BastienM avatar Sep 27 '18 13:09 BastienM

Really this topic should target generic FIDO compliant U2F devices, not just Yubikey brand devices. I just got my Google Titan keys and was disheartened to realize that aws-mfa doesn't try to use it. I guess I have to go back to using Authy =\

lhriley avatar Oct 12 '18 17:10 lhriley

Hi There! I anticipate this would not be a trivial change, especially since it looks like the command-line implementation will require some additional software. I'm definitely open to accepting PRs for anyone who would like to work on this!

broamski avatar Oct 12 '18 17:10 broamski

@lhriley : I didn't saw the update on their blog post. I updated the title to include all U2F keys.

@broamski : I will try drafting solutions in my spare time and put together a PR :)

BastienM avatar Oct 12 '18 18:10 BastienM

fyi, Looks like MFA using U2F is not supported yet via the CLI or API https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_mfa_u2f_supported_configurations.html

hallum avatar Oct 13 '18 15:10 hallum

Indeed. But it won't do any harm to prepare a PR ahead of time.

BastienM avatar Oct 14 '18 12:10 BastienM

Is there anything new to this?

RAYs3T avatar Sep 12 '19 10:09 RAYs3T

AWS still does not support 2FA keys for the cli sadly.

AWS currently supports using U2F security keys only in the AWS Management Console. Using U2F security keys for MFA is not currently supported in the AWS CLI and AWS API, or for access to MFA-protected API operations.

BastienM avatar Sep 12 '19 12:09 BastienM

There's a workaround posted by AWS here and another workaround on Github here. Both use ykman to generate OATH-TOTP keys (like the ones from Google Authenticator), as AWSCLI still doesn't work with U2F MFA.

mrg2k8 avatar Apr 21 '21 08:04 mrg2k8