Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to add webauthn/passkey authentication for the web interface #20389

Open
ThatOneCalculator opened this issue Apr 28, 2024 · 5 comments
Open

Comments

@ThatOneCalculator
Copy link

Since right now all it takes to get in through the web interface is a username & password, being able to enforce the use of something like a Yubikey (like I do with my ssh keys) would be great.

@jelly
Copy link
Member

jelly commented Apr 29, 2024

We use PAM for authentication so if you configure totp with Yubikey you should be able to get 2fa in Cockpit. This is a duplicate of #15860

@jelly jelly closed this as completed Apr 29, 2024
@ThatOneCalculator
Copy link
Author

2FA/TOTP with a YubiKey isn't the same as using Webauthn with a Yubikey.

@jelly
Copy link
Member

jelly commented Apr 29, 2024

Overlooked that, but regardless implementing passkey/webauthn is a lot of work afaik there are no off the shelve solutions for this.

@ThatOneCalculator
Copy link
Author

Modern browsers provide a built in API https://developer.mozilla.org/en-US/docs/Web/API/Web_Authentication_API

@ThatOneCalculator
Copy link
Author

As for the backend, webauthn data is commonly sent as a JSON Web Token (JTW), and most modern backend web frameworks have a single-line solution to verify JWTs. https://jwt.io/libraries

@jelly jelly reopened this Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants