r/openstack • • Apr 12 '21

Keystone should not own the main user database.

In most organizations, you want to set up with LDAP as your source of truth. Keystone is only a translating later.

Since keystone was written, OpenID connect has pretty much become the norm protocol for web authorization.
Lots of Organizations do SAML still. They work essentially the same way, and when planning you workloads, you should be targeting one if them. Not Keystone.

If your organization already has an identity source you should be using that with Keystone, not duplicating it. Use Federated identify with Keycloak or ADFS. Both of those are actually more secure options than LDAP as the LDAP approach uses simple bind, which I consider a Major security issue. I originally tried to couple LDAP with Kerberos or X509, but the number of places that could make use of that was vanishingly small.

FreeIPA and Keycloak will work for this. However, most large organizations already have LDAP in the form of Active Directory, and you should use this if you can.

If you don't have an identity provider exposing OIDC or SAML, and you want to share identity information between the infrastructure and the web applications, use the ldap provider for Keystone. You can set up LDAP authentication to the vms and to the apps running on them. There are gotchas.

Full disclosure: I was a dev on FreeIPA and a on Keystone. I wrote the LDAP support back in the Essex release, and the working assumption was that a keystone was an adapter to an existing identity source. I worked on the Federated Identity support.

If you need OpenStack specific identity, you should consider usi g application credentials. The only Users stored in the keystone Database are the service users required for managing the OpenStack deployment itself.

16 Upvotes

2 comments sorted by

0

u/[deleted] Apr 13 '21

[deleted]

1

u/RsCrag Apr 13 '21

You are drilling into the details, and are not contradicting what I am saying, but rather complementing it. I agree with your points.

If you don't have ECP you don't have SAML support, not usable anyway. Same is true for OpenIDC that forces a web login.

Cryptographically secure login is a must. This is not an OpenStack specific constraint.

Without ECP support you have to resort to LDAP and simple bind. Lots of people do it. Does not make it right.

You need real support, not go get drills, from the people that manage your IdP.

As you said, App creds were a late add in OpenStack, and thus some things built earlier didn't really allow for the wide auth mechanisms that they need to support App Creds. Service users are your only option.

0

u/[deleted] Apr 13 '21

[deleted]

2

u/RsCrag Apr 13 '21

Yeah. Interactive usually means a graphical interface, but not always. ECP was a key necessity when we did SAMl support, based on the cases we needed to handle. There are cases where you don't need it. But without ECP you can't do some basic things, and you and your end users will end up frustrated.

And thanks for these additions. I think they are valuable clarifications.