Skip to content

Commit 351018e

Browse files
wickdynexsnicoll
authored andcommitted
Prevent auth header to be included in Docker API call
See gh-42910
1 parent 9d6cfba commit 351018e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/configuration/JsonEncodedDockerRegistryAuthentication.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import java.util.Base64;
2020

21+
import com.fasterxml.jackson.annotation.JsonIgnore;
2122
import com.fasterxml.jackson.core.JsonProcessingException;
2223

2324
import org.springframework.boot.buildpack.platform.json.SharedObjectMapper;
@@ -30,6 +31,7 @@
3031
*/
3132
class JsonEncodedDockerRegistryAuthentication implements DockerRegistryAuthentication {
3233

34+
@JsonIgnore
3335
private String authHeader;
3436

3537
@Override

0 commit comments

Comments
 (0)