Skip to content

Commit

Permalink
Added verify_ssl to the list of valid attributes
Browse files Browse the repository at this point in the history
When we add a provider it might be using self signed certs
We need a way to disable the certificate check with verify_ssl.
The UI provides a check box to disable certifcate check we would
need something similar for REST API
  • Loading branch information
mkanoor committed Jul 25, 2018
1 parent d1ce671 commit fb0b2fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/api/providers_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class ProvidersController < BaseController
AUTH_TYPE_ATTR = "auth_type".freeze
DEFAULT_AUTH_TYPE = "default".freeze
CONNECTION_ATTRS = %w(connection_configurations).freeze
ENDPOINT_ATTRS = %w(hostname url ipaddress port security_protocol certificate_authority).freeze
ENDPOINT_ATTRS = %w(verify_ssl hostname url ipaddress port security_protocol certificate_authority).freeze
RESTRICTED_ATTRS = [TYPE_ATTR, CREDENTIALS_ATTR, ZONE_ATTR, "zone_id"].freeze

include Subcollections::Policies
Expand Down

0 comments on commit fb0b2fc

Please sign in to comment.