Commit Graph

3671 Commits

Author SHA1 Message Date
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
da61d63db8 Add Docker configuration authentication to Maven and Gradle plugins
Update the Maven and Gradle plugins to make use of the new Docker
configuration authentication support.

See gh-45269

Signed-off-by: Dmytro Nosan <dimanosan@gmail.com>
Co-authored-by: Phillip Webb <phil.webb@broadcom.com>
2025-04-24 21:56:14 -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
Stéphane Nicoll
238d83b318 Merge branch '3.4.x'
Closes gh-45242
2025-04-21 08:33:20 +02:00
Stéphane Nicoll
00d68399a7 Merge branch '3.3.x' into 3.4.x
Closes gh-45241
2025-04-21 08:32:14 +02:00
Claudio Nave
6a997d1026 Fix documentation links to buildpacks.io
See gh-45238

Signed-off-by: Claudio Nave <evaristegalois11@proton.me>
2025-04-21 08:30:35 +02:00
Phillip Webb
4bbbc0d687 Merge branch '3.4.x'
Closes gh-45193
2025-04-14 16:18:50 -07:00
Phillip Webb
b80bdbb182 Merge branch '3.3.x' into 3.4.x
Closes gh-45192
2025-04-14 16:18:41 -07:00
Johnny Lim
08c67cc353 Replace deprecated Project.task()
See gh-45009

Signed-off-by: Johnny Lim <izeye@naver.com>
2025-04-14 16:17:53 -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
Stéphane Nicoll
d6cdebe1fc Merge branch '3.4.x'
Closes gh-45101
2025-04-10 16:35:21 +02:00
Stéphane Nicoll
84128a81fa Merge branch '3.3.x' into 3.4.x
Closes gh-45100
2025-04-10 16:35:11 +02:00
Stéphane Nicoll
b4c6c55493 Allow ResourcesClassLoader to participate in CGLIB's cache
This commit updates ResourcesClassLoader to be a SmartClassLoader and
expose the original ClassLoader. This has the effect of making sure
proxies that are created by CGLIB can be reused against different tests
rather than having CGLIB trying to define the class again and fail.

Closes gh-45065
2025-04-10 16:22:14 +02:00
Phillip Webb
70e11de647 Merge branch '3.4.x'
Closes gh-45040
2025-04-08 15:09:38 -07:00
Phillip Webb
e29dc450a6 Merge branch '3.3.x' into 3.4.x
Closes gh-45039
2025-04-08 15:09:25 -07:00
Phillip Webb
46b14de6e9 Polish 'Handle generics with identical names in different positions'
See gh-45011
2025-04-08 15:07:51 -07:00
Dmytro Nosan
e24fd50615 Handle generics with identical names in different positions
Update `TypeUtils` to handle generics with identical names in different
positions.

See gh-45011

Signed-off-by: Dmytro Nosan <dimanosan@gmail.com>
2025-04-08 15:05:42 -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
Tran Ngoc Nhan
28bbb3ee10 Remove RECORD_COMPONENT target from @DefaultValue
See gh-44984

Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
2025-04-07 08:41:17 +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
Phillip Webb
88e8c17369 Update copyright year of changed files 2025-04-03 18:06:14 -07:00
Phillip Webb
bc91c35644 Merge branch '3.4.x'
Closes gh-44993
2025-04-03 18:05:13 -07:00
Phillip Webb
c96835bc9d Merge branch '3.3.x' into 3.4.x
Closes gh-44992
2025-04-03 18:02:57 -07:00
Andy Wilkinson
87dd03962c Merge branch '3.4.x'
Closes gh-44889
2025-03-25 17:06:19 +00:00
Andy Wilkinson
aa6d2f19fd Merge branch '3.3.x' into 3.4.x
Closes gh-44888
2025-03-25 17:06:06 +00:00
Andy Wilkinson
4f91d41666 Source version properties for Maven plugin tests from resolved bom
Closes gh-44886
2025-03-25 17:05:45 +00:00
Andy Wilkinson
5bab52df6d Merge branch '3.4.x'
Closes gh-44885
2025-03-25 16:35:08 +00:00