Prevent auth header to be included in Docker API call

See gh-42910
This commit is contained in:
YiXuan Ding 2024-10-28 23:21:22 +08:00 committed by Stéphane Nicoll
parent 9d6cfba278
commit 351018ea65
1 changed files with 2 additions and 0 deletions

View File

@ -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