From 351018ea65ad549b7b11b0d41978e2be0461e2bd Mon Sep 17 00:00:00 2001 From: YiXuan Ding <1328032567@qq.com> Date: Mon, 28 Oct 2024 23:21:22 +0800 Subject: [PATCH] Prevent auth header to be included in Docker API call See gh-42910 --- .../configuration/JsonEncodedDockerRegistryAuthentication.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/configuration/JsonEncodedDockerRegistryAuthentication.java b/spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/configuration/JsonEncodedDockerRegistryAuthentication.java index 6567cdec43..515b05afa7 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/configuration/JsonEncodedDockerRegistryAuthentication.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/configuration/JsonEncodedDockerRegistryAuthentication.java @@ -18,6 +18,7 @@ package org.springframework.boot.buildpack.platform.docker.configuration; import java.util.Base64; +import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.core.JsonProcessingException; import org.springframework.boot.buildpack.platform.json.SharedObjectMapper; @@ -30,6 +31,7 @@ import org.springframework.boot.buildpack.platform.json.SharedObjectMapper; */ class JsonEncodedDockerRegistryAuthentication implements DockerRegistryAuthentication { + @JsonIgnore private String authHeader; @Override