Insufficient logging when xmlsec binary is missing
Bug #1750917 reported by
Guang Yee
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Low
|
Lance Bragstad |
Bug Description
Keystone log is also unhelpful. All we got is
"ERROR idp _sign_assertion Error when signing assertion, reason: [Errno 2] No such file or directory"
When the xmlsec1 package is absent.
We may need to add a check here
https:/
to see if CONF.saml.
Steps to reproduce:
1. Install devstack and enable federation.
2. Uninstall the xmlsec1 package
3. Try to authenticate via federation and you'll get a HTTP 500 error and the corresponding log entry in keystone.log
Changed in keystone: | |
status: | New → Triaged |
importance: | Undecided → Low |
summary: |
- Keystone returns a HTTP 500 error if xmlsec CLI is missing + Insufficient logging when xmlsec binary is missing |
Changed in keystone: | |
milestone: | none → rocky-1 |
To post a comment you must log in.
Not sure what error code is better.
For the error message, it describes as 'Unable to sign SAML assertion. It is likely that this server does not have xmlsec1 installed or this is the result of misconfiguration. Reason %(reason)s.' It's clear enough. So maybe we should not override the SAMLSigningError error message for the OSError.