[SOLVED] Adding 2FA WebAuthn fails

LooneyTunes

Active Member
Jun 1, 2019
203
22
38
Hi,

I want to enable WebAuthn for Proxmox VE but recieves an error when doing so "no webauthn configuration available". If I go to the Realms menu I find Yubico as an alternative, but selecting that shows new fields asking for API id and API key. No idea what that should be, or even if that is neccessary to fill in?
Thanks
 
Oh, I missed that part, sorry. Thanks for pointing that out, will try immediately.
I configured the file and tried again, same issue. I am now rebooting Proxmox to see if that helps

Edit: Restart did not help, still same error when trying to add it...

In the log I found this now, so something is happening... :)
Code:
origin=https': property is not defined in schema and the schema does not allow additional properties

I did use the exact syntax from your example (modified to my domain of course);
Code:
webauthn:
rp=mypve.example.com,origin=https://mypve.example.com:8006,id=mypve.example.com
 
Last edited:
Code:
I did use the exact syntax from your example (modified to my domain of course);
can you try putting them in a single line? e.g. webauthn: id=localhost,origin=https://localhost:8006,rp=localhost

you can also do it on the GUI in case you don't want to manually edit the file; just go to Datacenter -> Options -> WebAuthn settings

edit: will send a fix for the syntax in the docs, thanks for the heads up!
 
can you try putting them in a single line? e.g. webauthn: id=localhost,origin=https://localhost:8006,rp=localhost

you can also do it on the GUI in case you don't want to manually edit the file; just go to Datacenter -> Options -> WebAuthn settings

edit: will send a fix for the syntax in the docs, thanks for the heads up!
Worked like a charm on one line!

Thank you!
 
  • Like
Reactions: oguz
How do you do this if you have two nodes in a cluster?
afaik - you need a name like: cluster.example.com and A and AAAA records with multiple IPs

e.g. for IPv4
cluster.example.com A 192.168.0.20
cluster.example.com A 192.168.0.30

same for IPv6
cluster.example.com AAAA fd20::20
cluster.example.com AAAA fd20::30

similiar with public IPv4/v6 addresses
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!