xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Anthony PERARD <anthony.perard@citrix.com>
To: xen-devel@lists.xenproject.org
Cc: Anthony PERARD <anthony.perard@citrix.com>,
	Ian Jackson <ian.jackson@eu.citrix.com>
Subject: [OSSTEST PATCH v14 05/24] ts-openstack-deploy: set CURL_CA_BUNDLE
Date: Fri, 28 Jul 2017 14:56:06 +0100	[thread overview]
Message-ID: <20170728135625.30263-6-anthony.perard@citrix.com> (raw)
In-Reply-To: <20170728135625.30263-1-anthony.perard@citrix.com>

From: Ian Jackson <ian.jackson@eu.citrix.com>

This overrides pip's attempt to specify a specific certificate bundle,
and is necessary if we have a MITM SSL proxy.

The security implications are not ideal, because the MITM proxy will
allow any X.509 cert from any CA, whereas pip would only allow an
expected cert.  But we got pip via plain https to start with...

CC: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
 ts-openstack-deploy | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ts-openstack-deploy b/ts-openstack-deploy
index d2971f5..6d7de1c 100755
--- a/ts-openstack-deploy
+++ b/ts-openstack-deploy
@@ -137,7 +137,10 @@ END
 
 sub deploy() {
     my $httpproxy = http_proxy_envsettings($ho);
-
+    my $mitmcert = target_https_mitm_proxy_cert_path($ho);
+    $httpproxy .=
+        "\n        CURL_CA_BUNDLE=$mitmcert; export CURL_CA_BUNDLE"
+        if $mitmcert;
     target_cmd($ho, <<END, 1800);
         set -e
         $httpproxy
-- 
Anthony PERARD


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  parent reply	other threads:[~2017-07-28 13:56 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-28 13:56 [OSSTEST PATCH v14 00/24] Have OpenStack tested on top of xen's master and libvirt's master Anthony PERARD
2017-07-28 13:56 ` [OSSTEST PATCH v14 01/24] ts-openstack-deploy: Deploy OpenStack on a host with devstack Anthony PERARD
2017-07-28 13:56 ` [OSSTEST PATCH v14 02/24] ts-openstack-tempest: Run Tempest to check OpenStack Anthony PERARD
2017-07-28 13:56 ` [OSSTEST PATCH v14 03/24] ts-openstack-deploy: Set http proxy Anthony PERARD
2017-07-28 13:56 ` [OSSTEST PATCH v14 04/24] TestSupport: provide target_https_mitm_proxy_cert_path Anthony PERARD
2017-07-28 13:56 ` Anthony PERARD [this message]
2017-07-28 13:56 ` [OSSTEST PATCH v14 06/24] ts-openstack-deploy: Keep CURL_CA_BUNDLE when sudo is called Anthony PERARD
2017-07-28 13:56 ` [OSSTEST PATCH v14 07/24] ts-openstack-deploy: Try to disable use of SYSTEMD Anthony PERARD
2017-07-28 13:56 ` [OSSTEST PATCH v14 08/24] ts-kernel-build: Enable network related modules for Neutron Anthony PERARD
2017-07-28 13:56 ` [OSSTEST PATCH v14 09/24] ts-openstack-deploy: Switch to Neutron for network Anthony PERARD
2017-07-28 13:56 ` [OSSTEST PATCH v14 10/24] ts-openstack-deploy: Increase open fd limit for RabbitMQ Anthony PERARD
2017-07-28 13:56 ` [OSSTEST PATCH v14 11/24] ts-openstack-deploy: Apply a Tempest patch Anthony PERARD
2017-07-28 13:56 ` [OSSTEST PATCH v14 12/24] ts-openstack-deploy: Ignore libvirt-python version and use latest Anthony PERARD
2017-07-28 13:56 ` [OSSTEST PATCH v14 13/24] ts-openstack-tempest: Fix tempest invocation Anthony PERARD
2017-07-28 13:56 ` [OSSTEST PATCH v14 14/24] ts-openstack-tempest: Update list of skipped tests Anthony PERARD
2017-07-28 13:56 ` [OSSTEST PATCH v14 15/24] ts-openstack-deploy: Move logs to /var/log/openstack Anthony PERARD
2017-07-28 13:56 ` [OSSTEST PATCH v14 16/24] ts-logs-capture: Capture OpenStack logs Anthony PERARD
2017-07-28 13:56 ` [OSSTEST PATCH v14 17/24] ts-openstack-deploy: Increase devstack timeout Anthony PERARD
2017-07-28 13:56 ` [OSSTEST PATCH v14 18/24] TestSupport: Introduce target_cmd_stashed Anthony PERARD
2017-07-28 14:19   ` Ian Jackson
2017-07-28 13:56 ` [OSSTEST PATCH v14 19/24] TestSupport: Implement target_subunit_cmd a subunit stream parser into substeps Anthony PERARD
2017-07-28 14:21   ` Ian Jackson
2017-07-28 13:56 ` [OSSTEST PATCH v14 20/24] ts-openstack-tempest: Use target_subunit_cmd Anthony PERARD
2017-07-28 13:56 ` [OSSTEST PATCH v14 21/24] make-flight: Prepare devstack jobs on "openstack*" branches only Anthony PERARD
2017-07-28 14:27   ` Ian Jackson
2017-07-28 13:56 ` [OSSTEST PATCH v14 22/24] New branch openstack-ocata Anthony PERARD
2017-07-28 14:26   ` Ian Jackson
2017-07-28 13:56 ` [OSSTEST PATCH v14 23/24] make-flight: Increase dom0_mem for openstack flight Anthony PERARD
2017-07-28 13:56 ` [OSSTEST PATCH v14 24/24] openstack tests: Don't run them on arm* Anthony PERARD

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170728135625.30263-6-anthony.perard@citrix.com \
    --to=anthony.perard@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).