Hide Forgot
If you have Candlepin setup to use OAuth for Katello: module.config.katello=org.fedoraproject.candlepin.katello.KatelloModule candlepin.auth.oauth.enabled = true and try to access the webservice API with something like curl you get a misleading error message: $ curl -k -u admin:admin https://somebox.example.com:8443/candlepin/status {"displayMessage":"Error contacting user service"} ideally this would say something like: {"displayMessage":"Candlepin is configured for OAuth access only, username and password not allowed."}
This is due to basic auth being enabled in the katello install. Full information can be seen at: https://github.com/Katello/katello/pull/1256 I am moving this to the installer component of System Engine.
Created attachment 663207 [details] Patch taken from the pull request.
Ok I will test this for you :-)
Merged the https://github.com/Katello/katello/pull/1256
commit ba2d5131de181dcffc833aeb80ea3fde55754a55 Author: Bryan Kearney <bkearney> Date: Thu Dec 13 16:30:19 2012 -0500 758813: Disable basic and trusted auth in the candlepin engine since it is not required. This manifested as an an error seen by curl which when using basic auth there was an error contacting the user service. Basic auth should never be used. With these settings, the output is [root@samdev ~]# curl -k -u admin:admin https://localhost:8443/candlepin/owners {"displayMessage":"Invalid credentials."} Note, this will make development harder since people may use curl to access candlepin. Developers can set these to true and then restart candlepin
These bugs have been resolved in upstream projects for a period of months so I'm mass-closing them as CLOSED:UPSTREAM. If this is a mistake feel free to re-open.