by nixcraft · 5y ago · 0 comments
If the wireguard core included any kind of timed partial delegation of authority through key signatures (similar to what SSH allows now with cert-authority/CertificateFile), that'd be enough to build SMS/HOTP/TOTP 2FA, security keys, and much more on top of it.
Another would be "Do one thing and do it well", which is Unix philosophy.
I do agree with your overall sentiment, though. The next step is to make a higher level protocol on top.
You are going to want to try to avoid that problem, while making your tool still useful. Wireguard hits the sweet spot particularly well.
"Oh, I'm afraid the EasySecureAuth wireguard server doesn't support the AndroidWireClient client when using a Yubikey version 1. Either use version 2 or switch to iOS."
Can you tell I’m a very happy customer?
But while they were on Windows, Tailscale worked perfectly on their machines too.
To achieve true MFA, it would need either a password, TOTP, or SMS in addition to the stored keys.
You could be hacking something together with a Nitrokey or maybe Yubikey, those can do Ed25519 signatures. But generally, you would need to fiddle a lot with the implementation, because currently signatures are done in the kernel module, and you'd need to get that into the USB-device for signing and back again. Not impossible, but not implemented yet.
Another way would (theoretically) be to implement different signature algorithms for the wireguard key exchange, ideally some that common smartcards do support. But wireguards author left out cryptographic agility on purpose, so any work in that direction will be incompatible with the original implementation, or at least a very ugly kludge.
There are programmable smartcards on which you can implement your own algorithm. ZeitControl sells cards you can program in a BASIC dialect: https://www.zeitcontrol.de/de/produkte/basiccard/basiccard-p...