You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by sa...@apache.org on 2019/02/21 23:26:22 UTC

[geode] branch release/1.9.0 updated: GEODE-6438: Windows CI images to not consider administrators_authorized_keys

This is an automated email from the ASF dual-hosted git repository.

sai_boorlagadda pushed a commit to branch release/1.9.0
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/release/1.9.0 by this push:
     new fa372f4  GEODE-6438: Windows CI images to not consider administrators_authorized_keys
fa372f4 is described below

commit fa372f452a4cee3a738c080a58100742a25426f5
Author: Sai Boorlagadda <sb...@pivotal.io>
AuthorDate: Thu Feb 21 15:23:49 2019 -0800

    GEODE-6438: Windows CI images to not consider administrators_authorized_keys
    
       Comment the use in sshd_config_default in the installed directory
       which is copied to C:\ProgramData\ssh\sshd_config on the first run.
    
       (cherry picked from commit c8e5394)
---
 ci/images/google-windows-geode-builder/windows-packer.json | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ci/images/google-windows-geode-builder/windows-packer.json b/ci/images/google-windows-geode-builder/windows-packer.json
index 249797c..f392283 100644
--- a/ci/images/google-windows-geode-builder/windows-packer.json
+++ b/ci/images/google-windows-geode-builder/windows-packer.json
@@ -68,6 +68,8 @@
         "Get-ChildItem -Path \"C:\\Program Files\\Git\\bin\" -Recurse -Include *exe | %{ Set-ProcessMitigation -Name $_.Name -Disable ForceRelocateASLR,ForceRelocate }",
         "Get-ChildItem -Path \"C:\\ProgramData\\chocolatey\" -Recurse -Include *exe | %{ Set-ProcessMitigation -Name $_.Name -Disable ForceRelocateASLR,ForceRelocate }",
 
+        "write-output '>>>>>>>>>> Modify sshd config to comment use of administrators authorized key file <<<<<<<<<<'",
+        "(Get-Content \"C:\\Program Files\\OpenSSH-Win64\\sshd_config_default\") -replace '(Match Group administrators)', '#$1' -replace '(\\s*AuthorizedKeysFile.*)', '#$1' | Out-File \"C:\\Program Files\\OpenSSH-Win64\\sshd_config_default\" -encoding UTF8",
         "write-output '>>>>>>>>>> Adding openjdk docker image <<<<<<<<<<'",
         "docker pull openjdk:8u181-jdk-windowsservercore-1709",
         "write-output '>>>>>>>>>> Removing unused docker images <<<<<<<<<<'",