You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by rh...@apache.org on 2020/04/06 20:16:44 UTC
[geode] branch develop updated: GEODE-7950: Force TLS1.2 for
installing PackageProvider=NuGet (#4908)
This is an automated email from the ASF dual-hosted git repository.
rhoughton pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to refs/heads/develop by this push:
new e7f6faf GEODE-7950: Force TLS1.2 for installing PackageProvider=NuGet (#4908)
e7f6faf is described below
commit e7f6faf637fc77daa1ca4bd942be0c10e9577dc7
Author: Robert Houghton <rh...@pivotal.io>
AuthorDate: Mon Apr 6 13:16:11 2020 -0700
GEODE-7950: Force TLS1.2 for installing PackageProvider=NuGet (#4908)
Would be nice to set the default TLS for all PowerShell sessions, but
that seems to be unsupported.
---
ci/images/google-windows-geode-builder/build_image.sh | 3 ++-
ci/images/google-windows-geode-builder/windows-packer.json | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/ci/images/google-windows-geode-builder/build_image.sh b/ci/images/google-windows-geode-builder/build_image.sh
index 741e21b..2c2fd96 100755
--- a/ci/images/google-windows-geode-builder/build_image.sh
+++ b/ci/images/google-windows-geode-builder/build_image.sh
@@ -18,7 +18,7 @@
PACKER=${PACKER:-packer}
PACKER_ARGS="${*}"
-INTERNAL=${INTERNAL:-true}
+INTERNAL=${INTERNAL:-false}
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
SCRIPTDIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
@@ -46,6 +46,7 @@ if [[ -n "${MY_NAME}" ]]; then
GCP_NETWORK=${GCP_NETWORK##*/}
GCP_SUBNETWORK=$(echo ${NETWORK_INTERFACE_INFO} | jq -r '.networkInterfaces[0].subnetwork')
GCP_SUBNETWORK=${GCP_SUBNETWORK##*/}
+ INTERNAL=true
fi
if [[ -z "${GCP_PROJECT}" ]]; then
diff --git a/ci/images/google-windows-geode-builder/windows-packer.json b/ci/images/google-windows-geode-builder/windows-packer.json
index 17d0542..20e169b 100644
--- a/ci/images/google-windows-geode-builder/windows-packer.json
+++ b/ci/images/google-windows-geode-builder/windows-packer.json
@@ -53,6 +53,7 @@
"inline": [
"$ErrorActionPreference = \"Stop\"",
"Set-ExecutionPolicy Bypass -Scope Process -Force",
+ "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12",
"Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force",
"Install-Module DockerMsftProvider -Force",
"Install-Package Docker -ProviderName DockerMsftProvider -Force",