MFA for console access
-
Since you mentioned getting a 2-button OnlyKey for work, setting up Keycloak now is a great foundation if you ever want to expand SSO across other network services.
For XO specifically, you'll want to look at the auth-oidc or auth-saml plugins—XO doesn't do FIDO2 natively, so it hands off the hardware key prompt to Keycloak. Once that's working, you can use the exact same Keycloak instance to handle WebAuthn/MFA for other internal tools, pre-provision individualized keys/accounts for multiple users, and separate permissions by group. Just make sure to keep a local break-glass admin account on XO in case the Keycloak VM ever goes offline!
@dkmuir Currently can’t do MFA on a per host level (XCP-ng) worth adding as feedback to https://feedback.vates.tech. Though if you are trying to do this for Xen Orchestra see the above for Greg_E.
-
Quick clarification on the above: Keycloak doesn't have to run as a VM—in fact, running it on bare metal (or separate out-of-band hardware) is best practice here. That way, you avoid a chicken-and-egg lockout if the IdP VM is migrating or offline during a Rolling Pool Update (RPU) or host reboot.
Even better, running a pair or trio of bare-metal Keycloak instances in a cluster behind a load balancer eliminates any single point of failure—which is ideal if you ever scale SSO out across a broader network (like an academic or multi-service environment).
-
@poddingue If the above looks good and works as a best practice, it might be worth adding to the Xen Orchestra documentation. Alternatively, if this is already covered in the official Keycloak, Authentik, or Authelia docs, linking to or referencing those sections could be helpful.
-
Let me see what I can do, @john.c.
Thanks!
-
Let me see what I can do, @john.c.
Thanks!
Thanks @poddingue! Having it in the docs will be huge not just for VMware migrations, but for fresh setups too—making it easier for newcomers to get it right from day one, and giving everyone a clean link to point to whenever the question comes up in the future.
-
Most of it turns out to be in the XO docs already.

The passkeys section covers Keycloak, the WebAuthn flow and a Yubikey as second factor: https://docs.xen-orchestra.com/security/user-management/authentication-providers#enabling-passkeys-in-xoa-with-keycloak.
What I couldn't find on that page are your two operational points, keeping a local admin account for when the IdP is down and not hosting the IdP only on the pool XO manages.
I tried it on an XO built from sources with the OIDC plugin turned on: the login page still offers "Sign in with password" next to the OpenID Connect button, and a local admin could still log in, so a break-glass account should keep working, though I only had a dummy client, not a real Keycloak.
I'll see about getting a short note with those two points added to that page. @Greg_E, if a second factor without an IdP is enough for you, XO also does TOTP for local accounts (same page), though that's not a hardware key.
-
Most of it turns out to be in the XO docs already.

The passkeys section covers Keycloak, the WebAuthn flow and a Yubikey as second factor: https://docs.xen-orchestra.com/security/user-management/authentication-providers#enabling-passkeys-in-xoa-with-keycloak.
What I couldn't find on that page are your two operational points, keeping a local admin account for when the IdP is down and not hosting the IdP only on the pool XO manages.
I tried it on an XO built from sources with the OIDC plugin turned on: the login page still offers "Sign in with password" next to the OpenID Connect button, and a local admin could still log in, so a break-glass account should keep working, though I only had a dummy client, not a real Keycloak.
I'll see about getting a short note with those two points added to that page. @Greg_E, if a second factor without an IdP is enough for you, XO also does TOTP for local accounts (same page), though that's not a hardware key.
@poddingue Since Keycloak is already covered, it would also be worth mentioning (or linking to) newer, lightweight self-hosted IdPs—especially those written in Go or Rust—which have large, active user bases and are very easy to deploy as a dedicated duo or trio on bare metal separate from the Vates stack:
• Authelia (Go): https://authelia.com
• Pocket ID (Go): https://pocket-id.org
• Kanidm (Rust): https://kanidm.com
• authentik (Go/Python): https://goauthentik.io -
Thanks for the list.

From what I read of the plugin, XO's OIDC sign-in isn't tied to Keycloak: it asks for a discovery URL, a client ID and a secret, which I'd expect any standard OpenID Connect provider to hand out.
I haven't tried any of those four with it though, and I'd rather the docs didn't name a provider nobody has tested (call it my own caution more than anything), so I'll pass your list along with the note and let the docs folks decide.Have you already run XO against one of them? If so, a word on how it went would help a lot.
-
Thanks for the list.

From what I read of the plugin, XO's OIDC sign-in isn't tied to Keycloak: it asks for a discovery URL, a client ID and a secret, which I'd expect any standard OpenID Connect provider to hand out.
I haven't tried any of those four with it though, and I'd rather the docs didn't name a provider nobody has tested (call it my own caution more than anything), so I'll pass your list along with the note and let the docs folks decide.Have you already run XO against one of them? If so, a word on how it went would help a lot.
@poddingue Not yet. But at least worth testing in a lab, also likely to encounter at least one of them eventually. Most likely Authentik as there’s over 1 million installations of it, including several big names like for example CloudFlare and University of Utah, Der Spiegel, Orange Business and many others.
Especially if any of these installations are looking to migrate from VMware and are interested in Vates, for their infrastructure.
Though may also encounter Pocket ID as it’s a Passkey native, IdP that’s worth covering as there may be signs of it being used in Mattermost, maybe Discord but most likely Mattermost.
-
@poddingue One more thought on that—having a few of these IdPs in the official validation matrix would also help guide where improvements to XO's auth-oidc and auth-saml plugins should go.
Even though OIDC and SAML are open standards, testing against newer or widely deployed providers like authentik and Pocket ID is a great way to catch subtle real-world edge cases before customers hit them—things like:
• Group/role claim mapping—especially ensuring parity across both XO ACL v1 and the newer ACL v2 (RBAC) model in XO 6
• Stricter modern defaults (like mandatory PKCE or short-lived token refreshes)
• Redirect URI handling—especially how XO handles return flows and single logout (SLO) when no explicit post-logout redirect URI is configured or supported by the IdPValidating against a handful of popular self-hosted IdPs wouldn't just benefit the docs; it would give QA a clear baseline and help harden the auth plugins across both XO 5 and XO 6 for teams migrating over from VMware.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login