All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Madieu <john.madieu@gmail.com>
To: meta-virtualization@lists.yoctoproject.org
Cc: bruce.ashfield@gmail.com, John Madieu <john.madieu@gmail.com>
Subject: [meta-virtualization][PATCH 2/2] container-registry: default to insecure only without a secure registry
Date: Sun, 29 Nov 2026 22:48:19 +0100	[thread overview]
Message-ID: <20261129214819.2587429-3-john.madieu@gmail.com> (raw)
In-Reply-To: <20261129214819.2587429-1-john.madieu@gmail.com>

container-registry.conf sets CONTAINER_REGISTRY_INSECURE ?= "1" and
its header says to override CONTAINER_REGISTRY_SECURE = "1" for a TLS
registry. Doing just that leaves both variables at 1, and parsing
stops with "CONTAINER_REGISTRY_SECURE and CONTAINER_REGISTRY_INSECURE
cannot both be set to '1'", so CONTAINER_REGISTRY_INSECURE = "0" has
to be set as well.

Derive the default of CONTAINER_REGISTRY_INSECURE from
CONTAINER_REGISTRY_SECURE, so that the documented override is enough.
An explicit CONTAINER_REGISTRY_INSECURE still wins.

Signed-off-by: John Madieu <john.madieu@gmail.com>
---
 conf/distro/include/container-registry.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/conf/distro/include/container-registry.conf b/conf/distro/include/container-registry.conf
index 357e7913..1ab512f5 100644
--- a/conf/distro/include/container-registry.conf
+++ b/conf/distro/include/container-registry.conf
@@ -24,6 +24,6 @@
 
 CONTAINER_REGISTRY_URL ?= "localhost:5000"
 CONTAINER_REGISTRY_NAMESPACE ?= "yocto"
-CONTAINER_REGISTRY_INSECURE ?= "1"
+CONTAINER_REGISTRY_INSECURE ?= "${@'0' if d.getVar('CONTAINER_REGISTRY_SECURE') == '1' else '1'}"
 
 IMAGE_FEATURES:append = " container-registry"
-- 
2.25.1


  parent reply	other threads:[~2026-11-29 21:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29 21:48 [meta-virtualization][PATCH 0/2] docker-moby, container-registry: fix check-config and registry defaults John Madieu
2026-11-29 21:48 ` [meta-virtualization][PATCH 1/2] docker-moby: drop the check-config patch for MEMCG_SWAP John Madieu
2026-11-30  5:04   ` Bruce Ashfield
2026-11-29 21:48 ` John Madieu [this message]
2026-11-30  5:04   ` [meta-virtualization][PATCH 2/2] container-registry: default to insecure only without a secure registry Bruce Ashfield
2026-11-30 11:04     ` john madieu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261129214819.2587429-3-john.madieu@gmail.com \
    --to=john.madieu@gmail.com \
    --cc=bruce.ashfield@gmail.com \
    --cc=meta-virtualization@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.