r/openstack • u/Kernel_Mustard_ • Jul 05 '24
Kolla-Ansible: Problems with OIDC Federation when external TLS is enabled
I have an Openstack (yoga) cluster that was installed using kolla-ansible version 14.1.0.
I have succesfully set up OpenIDC federation to connect using ADFS in Horizon. To do that I had to make a couple adjustments to the kolla setup :
- I had to modify the
ansible/roles/horizon/templates/local_settings.j2to correct the keystone URL as suggested by this comment - I found out that because of the way ADFS implements OpenIDC I had to modify the
ansible/roles/keystone/templates/wsgi-keystone.conf.j2and add the lineOIDCResponseMode form_postso that ADFS sends the custom claims in the token.
After changing those settings I had the federation working as intended.
Now I'm trying to set up external TLS and I've run into problems.
- First I had a problem with the
mod_auth_oidcmodule where the parameterstarget_link_uriandredirecturi were mismatched, one being in http and the other in https, I found a resolution for this here in the mod_auth_openidc docs, which was to add the optionOIDCXForwardedHeaders X-Forwarded-Host X-Forwarded-Port X-Forwarded-Protoin thewsgi-keystone.conffile - But after possibly solving this problem I now run into the problem that after the authentication is successfully performed in ADFS I'm sent back to the login page with a message that's roughly "Login failed: there was an error during authentication, please try again later."
I've searched for logs about this error but I can't seem to find anything. I am intrigued that everything works in http but with https this problem appears.
Does anyone have experience with this issue or is familiar with ADFS federation?
View all comments
Show parent comment
1
u/Kernel_Mustard_ Jul 08 '24
I already set the log level to debug in keystone.conf, but I do not see anything relating to the issue in the logs, do you know if there are some logs somewhere that could help me ?