mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
pull: Add ‘--no-check-certificate’.
This can be tested with: guix shell libfaketime -- faketime 2019-01-01 \ guix pull -q --no-check-certificate -p /tmp/p * guix/scripts/pull.scm (%options, show-help): Add ‘--no-check-certificate’. (%default-options): Add ‘verify-certificate?’ key. (guix-pull): Honor it. * doc/guix.texi (Invoking guix pull): Document it. Change-Id: Ia9d7af1c64156b112e86027fb637e2e02dae6e3c
This commit is contained in:
parent
e168d31819
commit
7d235a6799
2 changed files with 21 additions and 3 deletions
|
@ -4643,6 +4643,14 @@ Make sure you understand its security implications before using
|
||||||
@option{--disable-authentication}.
|
@option{--disable-authentication}.
|
||||||
@end quotation
|
@end quotation
|
||||||
|
|
||||||
|
@item --no-check-certificate
|
||||||
|
Do not validate the X.509 certificates of HTTPS servers.
|
||||||
|
|
||||||
|
When using this option, you have @emph{absolutely no guarantee} that you
|
||||||
|
are communicating with the authentic server responsible for the given
|
||||||
|
URL. Unless the channel is authenticated, this makes you vulnerable to
|
||||||
|
``man-in-the-middle'' attacks.
|
||||||
|
|
||||||
@item --system=@var{system}
|
@item --system=@var{system}
|
||||||
@itemx -s @var{system}
|
@itemx -s @var{system}
|
||||||
Attempt to build for @var{system}---e.g., @code{i686-linux}---instead of
|
Attempt to build for @var{system}---e.g., @code{i686-linux}---instead of
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2013-2015, 2017-2023 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2013-2015, 2017-2024 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
|
;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
|
||||||
;;; Copyright © 2020, 2021 Tobias Geerinckx-Rice <me@tobias.gr>
|
;;; Copyright © 2020, 2021 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||||
;;;
|
;;;
|
||||||
|
@ -77,6 +77,7 @@
|
||||||
(debug . 0)
|
(debug . 0)
|
||||||
(verbosity . 1)
|
(verbosity . 1)
|
||||||
(authenticate-channels? . #t)
|
(authenticate-channels? . #t)
|
||||||
|
(verify-certificate? . #t)
|
||||||
(validate-pull . ,ensure-forward-channel-update)))
|
(validate-pull . ,ensure-forward-channel-update)))
|
||||||
|
|
||||||
(define (show-help)
|
(define (show-help)
|
||||||
|
@ -98,6 +99,9 @@ Download and deploy the latest version of Guix.\n"))
|
||||||
(display (G_ "
|
(display (G_ "
|
||||||
--disable-authentication
|
--disable-authentication
|
||||||
disable channel authentication"))
|
disable channel authentication"))
|
||||||
|
(display (G_ "
|
||||||
|
--no-check-certificate
|
||||||
|
do not validate the certificate of HTTPS servers"))
|
||||||
(display (G_ "
|
(display (G_ "
|
||||||
-N, --news display news compared to the previous generation"))
|
-N, --news display news compared to the previous generation"))
|
||||||
(display (G_ "
|
(display (G_ "
|
||||||
|
@ -183,6 +187,9 @@ Download and deploy the latest version of Guix.\n"))
|
||||||
(option '("disable-authentication") #f #f
|
(option '("disable-authentication") #f #f
|
||||||
(lambda (opt name arg result)
|
(lambda (opt name arg result)
|
||||||
(alist-cons 'authenticate-channels? #f result)))
|
(alist-cons 'authenticate-channels? #f result)))
|
||||||
|
(option '("no-check-certificate") #f #f
|
||||||
|
(lambda (opt name arg result)
|
||||||
|
(alist-cons 'verify-certificate? #f result)))
|
||||||
(option '(#\p "profile") #t #f
|
(option '(#\p "profile") #t #f
|
||||||
(lambda (opt name arg result)
|
(lambda (opt name arg result)
|
||||||
(alist-cons 'profile (canonicalize-profile arg)
|
(alist-cons 'profile (canonicalize-profile arg)
|
||||||
|
@ -845,7 +852,8 @@ Use '~/.config/guix/channels.scm' instead."))
|
||||||
(profile (or (assoc-ref opts 'profile) %current-profile))
|
(profile (or (assoc-ref opts 'profile) %current-profile))
|
||||||
(current-channels (profile-channels profile))
|
(current-channels (profile-channels profile))
|
||||||
(validate-pull (assoc-ref opts 'validate-pull))
|
(validate-pull (assoc-ref opts 'validate-pull))
|
||||||
(authenticate? (assoc-ref opts 'authenticate-channels?)))
|
(authenticate? (assoc-ref opts 'authenticate-channels?))
|
||||||
|
(verify-certificate? (assoc-ref opts 'verify-certificate?)))
|
||||||
(cond
|
(cond
|
||||||
((assoc-ref opts 'query)
|
((assoc-ref opts 'query)
|
||||||
(process-query opts profile))
|
(process-query opts profile))
|
||||||
|
@ -877,7 +885,9 @@ Use '~/.config/guix/channels.scm' instead."))
|
||||||
#:validate-pull
|
#:validate-pull
|
||||||
validate-pull
|
validate-pull
|
||||||
#:authenticate?
|
#:authenticate?
|
||||||
authenticate?)))
|
authenticate?
|
||||||
|
#:verify-certificate?
|
||||||
|
verify-certificate?)))
|
||||||
(format (current-error-port)
|
(format (current-error-port)
|
||||||
(N_ "Building from this channel:~%"
|
(N_ "Building from this channel:~%"
|
||||||
"Building from these channels:~%"
|
"Building from these channels:~%"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue