Rant about AWS credentials

Does anyone else find it frankly absurd and annoying that in 2022, you can still only add one MFA token to an IAM user account?

This makes hardware tokens effectively worthless since it’s not possible to add a second/backup token – especially egregious for the root account.

Anyone catch wind of AWS planning to right this anytime soon?

//edit: thanks all for the pointers to AWS SSO. The last time I looked it was pretty lacking, looks like they’ve put some effort in.

Not really considering IAM Best Practices advise against using IAM Users and you hardly ought to use the root account.

https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html

For IAM Users this shouldn’t be a problem.
Why would you need to use multiple MFA for one IAM User?

For the root user I do see the use case.
At least for HW MFA, which should be used.
For the Master/Root Account this would be useful.

Most of our clients do use SW MFA on their root user as well and use multiple MFA devices with one SW QR code or do even print out the code and store it somewhere safe.

You shouldn’t have more than one MFA token… that degrades the effectiveness of MFA. You also shouldn’t be using the root account casually. It’s entirely possible to backup a single MFA token - there’s no technical reason you’d need more than one.

Our workaround is AWS SSO is integrated with an upstream iDP that supports multiple MFA options.

You have no clue what you are talking about, at all.

Hardware tokens cannot be backed up. That’s the entire point of a hardware token — the private key is locked to the hardware.

What makes MFA less effective is using a less effective MFA. Your posture is only as strong as your weakest MFA. If you have multiple hardware tokens, which is the recommendation, you still have the full protection of hardware-based MFA.

Yeah, I’ve read the doc, but there are times (read: one man shop) where that kind of hoop jumping just doesn’t make sense. Google and Microsoft recognize this, was hoping AWS would too.

Yeah, I’m a one-man shop at the moment. Was trying to avoid the extra layer of complexity.

It’s entirely possible to backup a single MFA token

Not if you’re using hardware keys. Which is most secure.

https://www.yubico.com/spare/

The recommendation for hardware tokens is to have multiple to avoid loss of access in case one is lost or damaged. To your point, centralized control solves this for end users but not the root user, which is frankly even more important.

It’s a glaring hole that has been there since AWS first announced hardware token MFA five years ago that Azure and GCP are much more up to date on.

More hardware tokens = increased risk through custody tracking. I’m perfect aware of how hardware tokens work.

I don’t disagree. Which means those hardware tokens should be in a safe. Software tokens can be backed up, though there are similar custody concerns. Accounts like root accounts should not be used in “other than emergency” cases. Having more than one person with the ability to manage users negates the necessary for re-enrolling tokens using the root account. This is not a technical problem. It’s a process problem.

Which means those hardware tokens should be in a safe.

Sure, and you have a second one somewhere else, so a house fire or bank robbery or whatnot doesn’t leave you unable to access your root account.

Pretty much every other hardware token supporting service I’ve used - Google, Cloudflare, hell even Facebook - permits multiple tokens, and recommend having a spare as a best practice.

AWS has an MFA reset process. As long as your contact and account info is in order (it reflects other identification you have that shows you’re the owner), they’ll remove MFA for you in these cases.

even for a one man shop, you supposed to have an iam user. so you have a backup, namely the root. i trust you don’t use root for daily operations.

Yes, I use an IAM user, hence the question.

Hoop jumping more in regards to setting up IdP/federation.

I’m perfect aware of how hardware tokens work.

It’s entirely possible to backup a single MFA token

ahem.

In any case, for FIDO as 2FA, the custody tracking argument honestly doesn’t hold water, given that the credential does not identify the device. Now if we’re talking smart cards, then yeah, that makes a ton of sense. Not FIDO tokens.

As noted in other comments, this is a one-man shop right now, which further diminishes the custody concern.

It is absolutely standard when providing hardware token auth to allow adding multiple hardware tokens. AWS is to my knowledge the only major service currently not offering the ability to add multiple hardware tokens to an account. I’m not wrong to call this out.

Then move to Azure or GCP if it’s an absolute requirement. Whilst I don’t disagree with what you’re saying, unless it’s absolutely critical to your compliance then there’s probably bigger things to worry about.

Set up an IAM user with the root account, then lock away the root MFA key into a safe. And for an IAM user you can have a backup user with a second key. There is nothing special about the user. Don’t really see the problem unless you think about cloud infra as long lived instead of cattle.

And: Set up federation and AWS SSO. Don’t mess around with long lived IAM user access keys.

You can use SSO without needing to integrate with an external IdP. SSO supports its own user database, and those users can add multiple MFA devices.

This setup should literally take no longer than 15 minutes to set up - I just recently did it on my own personal account(s).