Red Hat Bugzilla – Bug 1467692
credentials not required when adding provider using the REST API
Last modified: 2017-10-24 11:21:55 EDT
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. ***
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.