Federation Protocol saml2 fails on Rocky

Bug #1793845 reported by Michael Rice
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Triaged
Medium
Unassigned

Bug Description

In previous releases when setting up federation one could do the following:

openstack federation protocol create saml2 --mapping mymapping --identity-provider myidp

Then in the keystone.conf you could add:

[auth]
methods = password,token,saml2
saml2 = keystone.auth.plugins.mapped.Mapped

That is not the case on Rocky. This will give you a 500 with the following error:
stevedore.named [-] Could not load keystone.auth.plugins.mapped.Mapped

To work around this issue I had to delete my mapping called "saml2", remake it naming it "mapped" then update horizon, and apache configs accordingly. Then in the keystone.conf file I had to remove the "methods" line and the "saml2" line. Once I restarted apache then Federation worked as expected.

Im not sure if this is a bug or if the way I was doing it before was hanging around as legacy from when "saml2" had been removed but I couldnt find anything release notes wise about the change, and the docs examples still reference "saml2"...

Tags: federation
Revision history for this message
Colleen Murphy (krinkle) wrote :

You should not need to add the `saml2 = ...` line, as saml2 is already configured as an entrypoint for the Mapped plugin: http://git.openstack.org/cgit/openstack/keystone/tree/setup.cfg?h=14.0.0#n97

This still would be useful for configuring arbitrary auth method names. I think https://review.openstack.org/350815 is the change that removed support for this, we might want to think about reverting it.

Revision history for this message
Morgan Fainberg (mdrnstm) wrote :

Do we want to revert the change or continue forward with this plan? Marking as incomplete waiting for Colleen or the reporter to follow up. If this expires, my assumption is we will roll with the changes we have and not move forward on a revert.

Changed in keystone:
status: New → Incomplete
Revision history for this message
Michael Rice (michael-rice) wrote :

I think its up to y'all. My vote is to let it work like it did before because that wasnt hurting anything from my point of view but I dont know what kind of overhead it is to maintain code wise.

Revision history for this message
Colleen Murphy (krinkle) wrote :

I think we should revert for another cycle, because the way it is we don't have a workaround for this anymore: https://bugs.launchpad.net/keystone/+bug/1724645 (hoping to get an outreachy intern to work on that pretty soon)

Changed in keystone:
status: Incomplete → Triaged
importance: Undecided → Medium
Colleen Murphy (krinkle)
tags: added: federation
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.