Yuvipanda has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/212909

Change subject: ssh: Allow temporary opt out from more secure ssh
......................................................................

ssh: Allow temporary opt out from more secure ssh

Complaints on IRC and in person about people unable to ssh to
labs, even on not-so-out-of-date OSes (Debian Squeeze). This allows
labs projects to opt out of the more secure ssh defaults temporarily
while announcements and user education is made.

Change-Id: Ib9f3c3ab8e69a6d5aeeb73bfc4c5d7578e6f0703
---
M modules/ssh/manifests/server.pp
M modules/ssh/templates/sshd_config.erb
2 files changed, 6 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/09/212909/1

diff --git a/modules/ssh/manifests/server.pp b/modules/ssh/manifests/server.pp
index 304558b..277544b 100644
--- a/modules/ssh/manifests/server.pp
+++ b/modules/ssh/manifests/server.pp
@@ -3,6 +3,8 @@
     $listen_address = undef,
     $permit_root = true,
     $authorized_keys_file = undef,
+    $disable_nist_kex = false, # Allow labs projects to temporarily opt out of 
nist kex disabling
+    $explicit_macs = false, # Allow labs projects to temporarily opt out of 
more secure MACs
 ) {
     package { 'openssh-server':
         ensure => latest;
diff --git a/modules/ssh/templates/sshd_config.erb 
b/modules/ssh/templates/sshd_config.erb
index 1927b01..36b50ac 100644
--- a/modules/ssh/templates/sshd_config.erb
+++ b/modules/ssh/templates/sshd_config.erb
@@ -20,11 +20,13 @@
 #Privilege Separation is turned on for security
 UsePrivilegeSeparation yes
 
+<%- if @disable_nist_kex -%>
 <% if scope.function_os_version(['debian >= jessie || ubuntu >= trusty']) %>
 KexAlgorithms [email protected],diffie-hellman-group-exchange-sha256
 <% elsif scope.function_os_version(['ubuntu == precise'])%>
 KexAlgorithms diffie-hellman-group-exchange-sha256
 <% end %>
+<%- end -%>
 
 # Lifetime and size of ephemeral version 1 server key
 KeyRegenerationInterval 3600
@@ -42,12 +44,14 @@
 PermitRootLogin no
 <% end %>
 
+<%- if @explicit_macs -%>
 # Message Authentication codes
 <% if scope.function_os_version(['debian >= jessie || ubuntu >= trusty']) %>
 MACs 
[email protected],[email protected],[email protected],hmac-sha2-512,hmac-sha2-256,[email protected]
 <% elsif scope.function_os_version(['ubuntu == precise'])%>
 MACs hmac-sha2-512,hmac-sha2-256
 <% end %>
+<%- end -%>
 
 StrictModes yes
 

-- 
To view, visit https://gerrit.wikimedia.org/r/212909
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib9f3c3ab8e69a6d5aeeb73bfc4c5d7578e6f0703
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Yuvipanda <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to