From 4b55bc282522b4738fac03d4b8acf1fae72a3830 Mon Sep 17 00:00:00 2001 From: Lukas Zapletal Date: Mon, 2 Dec 2024 16:43:49 +0100 Subject: [PATCH] cloudapi: carry ostree MTLS secret over --- internal/cloudapi/v2/server.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/internal/cloudapi/v2/server.go b/internal/cloudapi/v2/server.go index 53245fe6d1..5909d45a46 100644 --- a/internal/cloudapi/v2/server.go +++ b/internal/cloudapi/v2/server.go @@ -654,13 +654,7 @@ func serializeManifest(ctx context.Context, manifestSource *manifest.Manifest, w Ref: resultSpec.Ref, URL: resultSpec.URL, Checksum: resultSpec.Checksum, - } - if resultSpec.RHSM { - // NOTE: Older workers don't set the Secrets string in the result - // spec so let's add it here for backwards compatibility. This - // should be removed after a few versions when all workers have - // been updated. - resultSpec.Secrets = "org.osbuild.rhsm.consumer" + Secrets: resultSpec.Secrets, } } ostreeCommitSpecs = map[string][]ostree.CommitSpec{