Don't check for client certs when talking to clair

This commit is contained in:
Evan Cordell 2016-04-28 09:04:41 -05:00 committed by Jimmy Zelinskie
parent 4d0627f83d
commit 0c2ecec9a9

View file

@ -42,9 +42,6 @@ class SecurityScannerAPI(object):
self._security_config = config.get('SECURITY_SCANNER')
self._target_version = self._security_config['ENGINE_VERSION_TARGET']
self._certificate = config_validator.cert()
self._keys = config_validator.keypair()
def _get_image_url(self, image):
""" Gets the download URL for an image and if the storage doesn't exist,
@ -259,7 +256,7 @@ class SecurityScannerAPI(object):
with CloseForLongOperation(self.config):
logger.debug('%sing security URL %s', method.upper(), url)
return client.request(method, url, json=body, params=params, timeout=timeout,
cert=self._keys, verify='/conf/mitm.cert', headers=headers,
verify='/conf/mitm.cert', headers=headers,
proxies={
'https': 'https://' + signer_proxy_url,
'http': 'http://' + signer_proxy_url