unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: [bug#70314] [PATCH] guix: scripts: environment: add tls certs to networked containers
       [not found]   ` <871q1zsbry.fsf@freakingpenguin.com>
@ 2024-09-15 21:39     ` Ludovic Courtès
  2024-09-16  0:04       ` Ryan Prior via Guix-patches via
  0 siblings, 1 reply; 2+ messages in thread
From: Ludovic Courtès @ 2024-09-15 21:39 UTC (permalink / raw)
  To: Richard Sent
  Cc: Josselin Poiret, Simon Tournier, Mathieu Othacehe,
	Tobias Geerinckx-Rice, Ricardo Wurmus, Christopher Baines, 70314,
	guix-devel

Hi Richard,

Cc: guix-devel to get more feedback: this is about adding ‘nss-certs’ by
default in ‘guix shell -CN’ containers, along with a ‘--no-tls’ option
to opt out:

  https://issues.guix.gnu.org/70314

Richard Sent <richard@freakingpenguin.com> skribis:

> Ludovic Courtès <ludo@gnu.org> writes:
>
>> Instead of adding the ‘nss-certs’ package, I would rather expose
>> /etc/ssl/certs (when it exists), for two reasons: (1) the system-chosen
>> certificates will be used, and (2) it’s less expensive than having to
>> compute the derivation of ‘nss-certs’.
>
> There is an issue with this that's cropped up in the past. The files in
> /etc/ssl/certs/* are symlinks to store items. Because containers only
> see a subset of store items that are in that container's profile, it
> often sees the symlinks to store items but not the target file.

Oh, indeed.

[...]

>> Users who definitely want Guix’s ‘nss-certs’ can always add it to the
>> shell and it will take precedence over /etc/ssl/certs, assuming
>> SSL_CERT_{FILE,DIR} is defined.
>
> True, although at present anyone who wants to use nss-certs must set
> SSL_CERT_{FILE,DIR} manually (or coincidentally install a package that
> registers the search path).

Right.

[...]

> My thoughts are if we have to decide between
>
> 1. Users who want TLS with standard public endpoints
> 2. Users who want TLS with custom private endpoints
>
> it's better to prioritize a good experience for 1 and let 2 opt-out of
> the "hand holding" defaults. But perhaps it's possible to make everyone
> happy.

You’ve convinced me.

That it’s opt-out sounds reasonable to me.  ‘--no-tls’ sounds reasonable
too as a name (I thought about ‘--no-x509-certificates’ but that’s
actually less accurate since there are the SSL_* variables in addition
to the certificates themselves).

I have some comments about the patch and I’d like others to weigh in too
before we commit this change.

Thank you!

Ludo’.


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

* [bug#70314] [PATCH] guix: scripts: environment: add tls certs to networked containers
  2024-09-15 21:39     ` [bug#70314] [PATCH] guix: scripts: environment: add tls certs to networked containers Ludovic Courtès
@ 2024-09-16  0:04       ` Ryan Prior via Guix-patches via
  0 siblings, 0 replies; 2+ messages in thread
From: Ryan Prior via Guix-patches via @ 2024-09-16  0:04 UTC (permalink / raw)
  To: Ludovic Courtès
  Cc: Josselin Poiret, Simon Tournier, Mathieu Othacehe, Richard Sent,
	Tobias Geerinckx-Rice, Ricardo Wurmus, guix-devel,
	Christopher Baines, 70314


On Sunday, September 15th, 2024 at 4:39 PM, Ludovic Courtès <ludo@gnu.org> wrote:

> You’ve convinced me.
> 
> That it’s opt-out sounds reasonable to me. ‘--no-tls’ sounds reasonable
> too as a name


Agreed on all points. Even though I'm aware of the need, I've forgotten to add tls-certs many times. Removing a known footgun for containers is a great plan.

Thanks!
Ryan




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

end of thread, other threads:[~2024-09-16  0:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <82121e1e6f3144f54d4a8e6d4276bb4581b627d2.1712689529.git.richard@freakingpenguin.com>
     [not found] ` <87jzfree6t.fsf@gnu.org>
     [not found]   ` <871q1zsbry.fsf@freakingpenguin.com>
2024-09-15 21:39     ` [bug#70314] [PATCH] guix: scripts: environment: add tls certs to networked containers Ludovic Courtès
2024-09-16  0:04       ` Ryan Prior via Guix-patches via

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).