Description of problem: When adding providers using UI, specifying credentials is required. Using the REST API it's possible to add providers without specifying credentials. This behavior is documented in <http://manageiq.org/docs/reference/latest/api/appendices/resource_attributes.html#providers>, but it's inconsistent with how providers are added using UI.
*** Bug 1467694 has been marked as a duplicate of this bug. ***
PR: https://github.com/ManageIQ/manageiq/pull/15528
PR: https://github.com/ManageIQ/manageiq-api/pull/16
It's still possible to add provider without specifying credentials. Having empty "connection_configurations" or "credentials" is enough for the request to succeed.
I think that for this part, we may want to create a separate RFE. There are a lot of providers, and specific logic about what should be in the "connection_configurations" or "credentials" should really be done within the provider itself, not within the API controller. Does that work?
Makes sense, I agree. I'm marking this one as verified then.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:0380