Skip to content

Commit 31a198d

Browse files
committed
<fix>: add '@JsonIgnore' to avoid authHeader be serialization.
1 parent 24202a0 commit 31a198d

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
@@ -22,6 +22,7 @@
2222

2323
import org.springframework.boot.buildpack.platform.json.SharedObjectMapper;
2424

25+
import com.fasterxml.jackson.annotation.JsonIgnore;
2526
/**
2627
* {@link DockerRegistryAuthentication} that uses a Base64 encoded auth header value based
2728
* on the JSON created from the instance.
@@ -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)