Bug #8646
closedForeman will refuse reports from proxies that are not Puppet/Chef proxies
Description
Proxies are allowed to use the create action here: https://github.com/theforeman/foreman_abrt/blob/master/app/controllers/api/v2/abrt_reports_controller.rb#L8
However it is required that the proxy has Puppet or Chef feature: https://github.com/theforeman/foreman/blob/develop/app/controllers/concerns/foreman/controller/smart_proxy_auth.rb#L22
Reported by Ivan Nečas
Updated by Ivan Necas almost 10 years ago
I've reported the same issue against the openscap plugin https://github.com/OpenSCAP/foreman_openscap/issues/22. As I wrote there, one possible solution would be to extract the list of features to be checked into a method, and override this method from within the plugin controller.
Updated by Stephen Benjamin almost 10 years ago
I do this in the Salt plug-in...quite ugly.
https://github.com/theforeman/foreman_salt/blob/master/app/controllers/foreman_salt/concerns/smart_proxy_auth_extensions.rb
#8484 makes the situation better, if the PR is accepted.
Updated by Stephen Benjamin almost 10 years ago
- Related to Feature #8484: Make SmartProxyAuth concern more useful to plugins added
Updated by Anonymous almost 10 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset foreman_abrt|fe0003ee2c4453f48a7991237a8a265d321b1a9e.