mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 13:28:12 -05:00
Revert "services: openssh: Warn about 'password-authentication?' default."
This reverts commit aecd2a13cb
for two
reasons:
1. The warning would fire every time (gnu services ssh) is loaded;
2. There's still no clear consensus on the approach to follow as
discussed in <https://issues.guix.gnu.org/44808>.
This commit is contained in:
parent
26b1030012
commit
d8051557ae
2 changed files with 4 additions and 22 deletions
|
@ -1,6 +1,6 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2018 Mathieu Othacehe <m.othacehe@gmail.com>
|
||||
;;; Copyright © 2019, 2020 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2019 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
|
@ -93,11 +93,7 @@ (define %system-services
|
|||
(system-service
|
||||
(name (G_ "OpenSSH secure shell daemon (sshd)"))
|
||||
(type 'networking)
|
||||
(snippet '((service openssh-service-type
|
||||
(openssh-configuration
|
||||
;; Currently the default is #t but it's considered
|
||||
;; unsafe. Explicitly pass #f.
|
||||
(password-authentication? #f))))))
|
||||
(snippet '((service openssh-service-type))))
|
||||
(system-service
|
||||
(name (G_ "Tor anonymous network router"))
|
||||
(type 'networking)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2016 David Craven <david@craven.ch>
|
||||
;;; Copyright © 2016 Julien Lepiller <julien@lepiller.eu>
|
||||
;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
|
||||
|
@ -33,9 +33,6 @@ (define-module (gnu services ssh)
|
|||
#:use-module (guix gexp)
|
||||
#:use-module (guix records)
|
||||
#:use-module (guix modules)
|
||||
#:use-module ((guix i18n) #:select (G_))
|
||||
#:use-module ((guix diagnostics) #:select (warning source-properties->location))
|
||||
#:use-module ((guix memoization) #:select (mlambda))
|
||||
#:use-module (srfi srfi-1)
|
||||
#:use-module (srfi srfi-26)
|
||||
#:use-module (ice-9 match)
|
||||
|
@ -279,16 +276,6 @@ (define* (lsh-service #:key
|
|||
;;; OpenSSH.
|
||||
;;;
|
||||
|
||||
(define true-but-soon-false
|
||||
(mlambda (loc)
|
||||
;; The plan is to change the default 'password-authentication?' to #f in
|
||||
;; Guix 1.3.0 or so. See <https://issues.guix.gnu.org/44808>.
|
||||
(warning (source-properties->location loc)
|
||||
(G_ "The default value of the 'password-authentication?'
|
||||
field of 'openssh-configuration' will change from #true to #false in the
|
||||
future. Explicitly set it to #true to allow password authentication.~%"))
|
||||
#t))
|
||||
|
||||
(define-record-type* <openssh-configuration>
|
||||
openssh-configuration make-openssh-configuration
|
||||
openssh-configuration?
|
||||
|
@ -309,8 +296,7 @@ (define-record-type* <openssh-configuration>
|
|||
(default #f))
|
||||
;; Boolean
|
||||
(password-authentication? openssh-configuration-password-authentication?
|
||||
(default (true-but-soon-false
|
||||
(current-source-location))))
|
||||
(default #t))
|
||||
;; Boolean
|
||||
(public-key-authentication? openssh-configuration-public-key-authentication?
|
||||
(default #t))
|
||||
|
|
Loading…
Reference in a new issue