From 0c2ecec9a957645ee028cb0b9fbd83f4dfa837e4 Mon Sep 17 00:00:00 2001 From: Evan Cordell Date: Thu, 28 Apr 2016 09:04:41 -0500 Subject: [PATCH] Don't check for client certs when talking to clair --- util/secscan/api.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/util/secscan/api.py b/util/secscan/api.py index d6ae31502..344865e9c 100644 --- a/util/secscan/api.py +++ b/util/secscan/api.py @@ -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