Commit Graph

512 Commits

Author SHA1 Message Date
Phillip Webb
17df773913 Reduce number of test dependencies
Reduce the number of direct test dependencies and instead rely on
transitive test support dependencies.
2025-06-13 20:06:16 -07:00
Andy Wilkinson
7a4c437f64 Upgrade to Commons Compress 1.27.1
Closes gh-45926
2025-06-12 14:13:40 +01:00
Andy Wilkinson
5141620615 Merge branch '3.4.x'
Closes gh-45913
2025-06-12 10:07:30 +01:00
Andy Wilkinson
ec3eeb7185 Merge branch '3.3.x' into 3.4.x
Closes gh-45912
2025-06-12 10:06:22 +01:00
Andy Wilkinson
ca21600fae Use Framework's StreamUtils instead of Commons Compress's IOUtils
Closes gh-45911
2025-06-12 10:00:30 +01:00
Andy Wilkinson
d1673ad664 Merge branch '3.4.x'
Closes gh-45611
2025-05-20 11:38:36 +01:00
Andy Wilkinson
aa9e75ed3c Merge branch '3.3.x' into 3.4.x
Closes gh-45610
2025-05-20 11:32:26 +01:00
Andy Wilkinson
5ed981df9c Migrate from gcr.io to docker.io for Paketo images
Closes gh-45609
2025-05-20 11:23:28 +01:00
Stéphane Nicoll
e1ff4fbaf9 Upgrade to Jackson Bom 2.19.0
Closes gh-45542
2025-05-14 12:38:43 +02:00
Phillip Webb
e3cf078fee Merge branch '3.4.x' 2025-05-08 12:25:34 -07:00
Phillip Webb
fa5d94fb4d Merge branch '3.3.x' into 3.4.x 2025-05-08 12:25:22 -07:00
Phillip Webb
39a402b5ef Update copyright year of changed files 2025-05-08 12:24:57 -07:00
Andy Wilkinson
c8cf91ad6f Polish 2025-05-07 08:29:56 +01:00
Stéphane Nicoll
05e4262a25 Polish 2025-05-02 15:37:47 +02:00
Dmytro Nosan
439dd2299e Use serverUrl from the image as a fallback for the Credentials helper
Before this commit, the credential helper used the serverUrl from
the Map.Entry<String,Auth> as a fallback. However, the helper only uses
the email from the auths.

See gh-45345

Signed-off-by: Dmytro Nosan <dimanosan@gmail.com>
2025-05-02 15:13:35 +02:00
Dmytro Nosan
3f22d4b308 Align DockerRegistryConfigAuthentication with Docker CLI
See gh-45292

Signed-off-by: Dmytro Nosan <dimanosan@gmail.com>
2025-04-29 13:40:10 +02:00
Moritz Halbritter
14f9a1e67b Merge branch '3.4.x'
Closes gh-45330
2025-04-29 13:38:27 +02:00
Moritz Halbritter
66b255573d Merge branch '3.3.x' into 3.4.x
Closes gh-45329
2025-04-29 13:37:52 +02:00
Johnny Lim
9a0f7a4013 Add more tests for Image.getOs()
See gh-45305

Signed-off-by: Johnny Lim <izeye@naver.com>
2025-04-29 13:35:22 +02:00
Dmytro Nosan
d1ee8bab48 Polish
See gh-45291

Signed-off-by: Dmytro Nosan <dimanosan@gmail.com>
2025-04-29 12:06:05 +02:00
Andy Wilkinson
21a9732b59 Polish 2025-04-28 14:31:23 +01:00
Dmytro Nosan
e69de966b7 Trim "\x00" from a decoded Docker Registry password
See gh-45290

Signed-off-by: Dmytro Nosan <dimanosan@gmail.com>
2025-04-28 14:19:51 +02:00
Phillip Webb
ef11a0849e Fix accidentally introduced Docker credential issues
Attempt to fix a few issues that were accidentally introduced
by missing some code from the original pull-request.

See gh-45269
2025-04-24 23:08:53 -07:00
Phillip Webb
79f7529efd Align credential helper logic with Docker CLI
See gh-45269
2025-04-24 22:45:15 -07:00
Dmytro Nosan
e6fbccef7e Support Docker configuration authentication including helper support
Add `DockerRegistryAuthentication` implementation that uses standard
Docker config to authenticate requests.

Prior to this commit, we only supported username/password and token
based authentication. This commit allows authentication based on
the contents of the Docker configuration file, including support
for executing credential helpers.

See gh-45269

Signed-off-by: Dmytro Nosan <dimanosan@gmail.com>
Co-authored-by: Phillip Webb <phil.webb@broadcom.com>
2025-04-24 21:54:08 -07:00
Phillip Webb
2a9e30a358 Polish 'Update DockerConfigurationMetadata to support credentials'
See gh-45269
2025-04-24 21:49:17 -07:00
Dmytro Nosan
958e28d890 Update DockerConfigurationMetadata to support credentials
Update `DockerConfigurationMetadata` with support for `credsStore`,
`credHelpers` and `auth` sections. These values will be required to
support credential helper based authentication.

See gh-45269

Signed-off-by: Dmytro Nosan <dimanosan@gmail.com>
2025-04-24 21:47:04 -07:00
Phillip Webb
dd49de03ee Relocate DockerConfiguration and refactor buildpack platform code
Relate `DockerConfiguration` from `...platform.docker` to
`...platform.build` since it contains build specific concepts.

This commit also refactors a few other areas of the code to make it
easier to support credential helpers in the future.

Closes gh-45283
2025-04-24 21:29:46 -07:00
Moritz Halbritter
0fb369e8b8 Use paketobuildpacks/builder-noble-java-tiny as the default image builder
Closes gh-42711
2025-04-24 15:21:22 +02:00
Phillip Webb
89a89a11a7 Merge branch '3.4.x'
Closes gh-45257
2025-04-22 19:13:29 -07:00
Phillip Webb
f526666e4e Merge branch '3.3.x' into 3.4.x
Closes gh-45256
2025-04-22 19:12:57 -07:00
Phillip Webb
f6dae1397d Add application directory layer to ephemeral builder for Podman support
Update `EphemeralBuilder` so that it adds an additional layer that
containing an empty application (aka workspace) directory owned by
the build user.

Prior to this commit, the directory was only bound. This could cause
issues on Podman where, unlike Docker, the bound directory is owned
by `root`.

Fixes gh-45233
2025-04-22 19:11:45 -07:00
Phillip Webb
a8c9abd5f9 Merge branch '3.4.x' 2025-04-11 10:19:25 -07:00
Phillip Webb
a506d2bdb5 Fix merge commit error in header 2025-04-11 10:19:03 -07:00
Phillip Webb
75824bb9c7 Merge branch '3.4.x' 2025-04-11 09:42:20 -07:00
Phillip Webb
35dc8e6f88 Merge branch '3.3.x' into 3.4.x 2025-04-11 09:42:13 -07:00
Phillip Webb
2143d702f2 Polish boolean members that can use the default false value 2025-04-11 09:32:35 -07:00
Phillip Webb
0d4b1dc9a4 Merge branch '3.4.x'
Closes gh-45167
2025-04-11 09:19:47 -07:00
Phillip Webb
ef9ad41b0a Merge branch '3.3.x' into 3.4.x
Closes gh-45166
2025-04-11 09:19:32 -07:00
Yanming Zhou
0a1c9060c5 Polish ternary operator
See gh-45156

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
2025-04-11 09:19:01 -07:00
Phillip Webb
068f621967 Merge branch '3.4.x' 2025-04-10 16:30:09 -07:00
Phillip Webb
96899e08d4 Merge branch '3.3.x' into 3.4.x 2025-04-10 16:30:04 -07:00
Phillip Webb
935d759754 Fix 'Protect against empty OS string in Docker Image' logic
See gh-45152
2025-04-10 16:29:59 -07:00
Phillip Webb
14f46f374a Merge branch '3.4.x'
Closes gh-45154
2025-04-10 16:09:07 -07:00
Phillip Webb
5a3fc4a48b Merge branch '3.3.x' into 3.4.x
Closes gh-45153
2025-04-10 16:08:56 -07:00
Phillip Webb
c071f56653 Protect against empty OS string in Docker Image
Update `Image` to protect against `os` being `null` or and empty
String.

Fixes gh-45152
2025-04-10 15:47:55 -07:00
Moritz Halbritter
5c32890f43 Merge branch '3.4.x'
Closes gh-45035
2025-04-08 15:28:23 +02:00
Moritz Halbritter
97ed923e50 Explicitly set Host header when using LocalHttpClientTransport
Closes gh-45028
2025-04-08 14:29:16 +02:00
Phillip Webb
39ef5ae2d5 Merge branch '3.4.x' 2025-04-03 18:06:48 -07:00
Phillip Webb
fc9937d05a Merge branch '3.3.x' into 3.4.x 2025-04-03 18:06:33 -07:00