[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
13/13: time-machine: Add ‘--no-check-certificate’.
From: |
guix-commits |
Subject: |
13/13: time-machine: Add ‘--no-check-certificate’. |
Date: |
Wed, 25 Dec 2024 17:53:36 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit e16cdcf37d8223b3634ec5e658356c3b7f154859
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Wed Dec 11 00:26:05 2024 +0100
time-machine: Add ‘--no-check-certificate’.
This can be tested with:
guix shell libfaketime -- faketime 2019-01-01 \
guix time-machine -q --no-check-certificate
* guix/scripts/time-machine.scm (%options, show-help): Add
‘--no-check-certificate’.
(%default-options): Add ‘verify-certificate?’ key.
(guix-time-machine): Honor it.
Change-Id: I25a29d03d4df78d1618c6a416ec85fd8e90fec6c
---
guix/scripts/time-machine.scm | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/guix/scripts/time-machine.scm b/guix/scripts/time-machine.scm
index 21145239d4..0fd2d15eb5 100644
--- a/guix/scripts/time-machine.scm
+++ b/guix/scripts/time-machine.scm
@@ -70,6 +70,9 @@ If COMMAND is not provided, print path to the time-machine
profile.\n"))
(display (G_ "
--disable-authentication
disable channel authentication"))
+ (display (G_ "
+ --no-check-certificate
+ do not validate the certificate of HTTPS servers"))
(newline)
(show-build-options-help)
(newline)
@@ -101,6 +104,9 @@ If COMMAND is not provided, print path to the time-machine
profile.\n"))
(option '("disable-authentication") #f #f
(lambda (opt name arg 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 '(#\h "help") #f #f
(lambda args
(leave-on-EPIPE (show-help))
@@ -120,6 +126,7 @@ If COMMAND is not provided, print path to the time-machine
profile.\n"))
(print-extended-build-trace? . #t)
(multiplexed-build-output? . #t)
(authenticate-channels? . #t)
+ (verify-certificate? . #t)
(graft? . #t)
(debug . 0)
(verbosity . 1)))
@@ -180,7 +187,8 @@ to %OLDEST-POSSIBLE-COMMIT is not that of an ancestor."
(command-line (assoc-ref opts 'exec))
(ref (assoc-ref opts 'ref))
(substitutes? (assoc-ref opts 'substitutes?))
- (authenticate? (assoc-ref opts 'authenticate-channels?)))
+ (authenticate? (assoc-ref opts 'authenticate-channels?))
+ (verify-certificate? (assoc-ref opts 'verify-certificate?)))
(let* ((directory
(with-store store
(with-status-verbosity (assoc-ref opts 'verbosity)
@@ -195,7 +203,9 @@ to %OLDEST-POSSIBLE-COMMIT is not that of an ancestor."
#:reference-channels
%reference-channels
#:validate-channels
- validate-guix-channel)))))
+ validate-guix-channel
+ #:verify-certificate?
+ verify-certificate?)))))
(executable (string-append directory "/bin/guix")))
(if command-line
(apply execl (cons* executable executable command-line))
- 04/13: gnu: ngtcp2: Update to 1.10.0., (continued)
- 04/13: gnu: ngtcp2: Update to 1.10.0., guix-commits, 2024/12/25
- 02/13: gnu: mygnuhealth: Update to 2.2.1., guix-commits, 2024/12/25
- 03/13: gnu: nano: Update to 8.3., guix-commits, 2024/12/25
- 01/13: services: syslog: fix configuration file argument, guix-commits, 2024/12/25
- 09/13: guix download: Honor ‘--no-check-certificate’ for ‘--git’., guix-commits, 2024/12/25
- 10/13: channels: Add #:verify-certificate? and honor it., guix-commits, 2024/12/25
- 11/13: pull: Add ‘--no-check-certificate’., guix-commits, 2024/12/25
- 06/13: services: rootless-podman: Fix PATH lookup for Shepherd services., guix-commits, 2024/12/25
- 08/13: git: Allow X.509 certificate verification to be disabled., guix-commits, 2024/12/25
- 12/13: inferior: Add #:verify-certificate? to ‘cached-channel-instance’., guix-commits, 2024/12/25
- 13/13: time-machine: Add ‘--no-check-certificate’.,
guix-commits <=