Don't check for client certs when talking to clair
This commit is contained in:
parent
4d0627f83d
commit
0c2ecec9a9
1 changed files with 1 additions and 4 deletions
|
@ -42,9 +42,6 @@ class SecurityScannerAPI(object):
|
||||||
self._security_config = config.get('SECURITY_SCANNER')
|
self._security_config = config.get('SECURITY_SCANNER')
|
||||||
self._target_version = self._security_config['ENGINE_VERSION_TARGET']
|
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):
|
def _get_image_url(self, image):
|
||||||
""" Gets the download URL for an image and if the storage doesn't exist,
|
""" 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):
|
with CloseForLongOperation(self.config):
|
||||||
logger.debug('%sing security URL %s', method.upper(), url)
|
logger.debug('%sing security URL %s', method.upper(), url)
|
||||||
return client.request(method, url, json=body, params=params, timeout=timeout,
|
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={
|
proxies={
|
||||||
'https': 'https://' + signer_proxy_url,
|
'https': 'https://' + signer_proxy_url,
|
||||||
'http': 'http://' + signer_proxy_url
|
'http': 'http://' + signer_proxy_url
|
||||||
|
|
Reference in a new issue