Description
First of all, thanks for your great work!
I wrote an extension to make aws-vault work with the latest nitrocli dev version using otp-cache. It automatically calls nitrocli otp-cache
and uses the returned MFA-token. Unfortunately setup is currently quite complicated and not very stable.
The reason is this: aws-vault is only able to pass a string of the format arn:aws:iam::[account-id]:mfa/[your-iam-username]
to nitrocli as an identifier for the needed OTP. At first I thought to simply change the slot name of an nitrokey entry to this format (this is the current solution for yubikeys), but then I learned that the identifier is too long (The provided slot name is too long (actual length: 39 bytes, maximum length: 15 bytes)
).
To make it work I therefore manually added an entry into the file in ~/.cache/nitrocli-otp-cache
.
e.g.
[[totp]]
name = "aws"
id = 0
[[totp]]
name = "arn:aws:iam::123456123456:mfa/testuser"
id = 0
This works, but is not a very stable solution, as it gets deleted when I update the entries in the cache.
Therefore my question: Do you think it would be possible/useful to have a feature for persistent aliases in nitrocli otp-cache?
e.g. instead of the above one could have:
[[totp]]
name = "aws"
alias = "arn:aws:iam::123456123456:mfa/testuser"
id = 0
Sorry for the long text!
Activity