From 127fa7e0574cffe8a091a25e01f6a5dab5a9d8fd Mon Sep 17 00:00:00 2001 From: Ismail Alidzhikov Date: Fri, 15 Mar 2024 18:26:50 +0200 Subject: [PATCH] proxy: Do not configure HTTP secret for proxy registry Signed-off-by: Ismail Alidzhikov --- registry/handlers/app.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/registry/handlers/app.go b/registry/handlers/app.go index 2983176b..5a962082 100644 --- a/registry/handlers/app.go +++ b/registry/handlers/app.go @@ -155,7 +155,11 @@ func NewApp(ctx context.Context, config *configuration.Configuration) *App { panic(err) } - app.configureSecret(config) + // Do not configure HTTP secret for a proxy registry as HTTP secret + // is only used for blob uploads and a proxy registry does not support blob uploads. + if !app.isCache { + app.configureSecret(config) + } app.configureEvents(config) app.configureRedis(config) app.configureLogHook(config)