all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#42381] [PATCH 0/3] 'reconfigure' disallows downgrades by default
@ 2020-07-15 22:15 Ludovic Courtès
  2020-07-15 23:18 ` [bug#42381] [PATCH 1/3] git: Factorize 'resolve-reference' Ludovic Courtès
  2020-07-22 22:34 ` bug#42381: [PATCH 0/3] " Ludovic Courtès
  0 siblings, 2 replies; 5+ messages in thread
From: Ludovic Courtès @ 2020-07-15 22:15 UTC (permalink / raw)
  To: 42381; +Cc: Ludovic Courtès

Hello!

This patch series changes ‘guix system reconfigure’ so that it errors
out when attempting to downgrade the system, which could (re)introduce
security vulnerability and/or cause problems with stateful services
(we experienced the latter a couple of weeks ago on berlin.guix.gnu.org
actually).  Having this sanity check is pretty much a prerequisite for
unattended upgrades IMO (patch coming soon!).

It works by comparing the commits shown by ‘guix describe’ to those
shown by ‘guix system describe’, essentially.  Apart from that, it
is similar to what ‘guix pull’ does.  There’s a bit of redundancy
with code in ‘guix pull’, but that seemed unavoidable (it’s mostly
UI stuff).

Thoughts?

Thanks,
Ludo’.

Ludovic Courtès (3):
  git: Factorize 'resolve-reference'.
  git: 'update-cached-checkout' has a new #:check-out? parameter.
  guix system: 'reconfigure' disallows downgrades by default.

 doc/guix.texi                       | 35 +++++++++--
 guix/git.scm                        | 90 ++++++++++++++------------
 guix/scripts/system.scm             | 15 ++++-
 guix/scripts/system/reconfigure.scm | 97 ++++++++++++++++++++++++++++-
 4 files changed, 192 insertions(+), 45 deletions(-)

-- 
2.27.0





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-07-22 22:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-15 22:15 [bug#42381] [PATCH 0/3] 'reconfigure' disallows downgrades by default Ludovic Courtès
2020-07-15 23:18 ` [bug#42381] [PATCH 1/3] git: Factorize 'resolve-reference' Ludovic Courtès
2020-07-15 23:18   ` [bug#42381] [PATCH 2/3] git: 'update-cached-checkout' has a new #:check-out? parameter Ludovic Courtès
2020-07-15 23:18   ` [bug#42381] [PATCH 3/3] guix system: 'reconfigure' disallows downgrades by default Ludovic Courtès
2020-07-22 22:34 ` bug#42381: [PATCH 0/3] " Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.