Commit Graph

3693 Commits

Author SHA1 Message Date
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
Phillip Webb
736ff7e3e2 Merge branch '3.4.x' 2025-04-28 12:20:19 -07:00
Phillip Webb
f172c2ca8f Merge branch '3.3.x' into 3.4.x 2025-04-28 12:20:08 -07:00
Phillip Webb
b2e691be02 Update copyright year of changed files 2025-04-28 12:20:02 -07:00
Phillip Webb
ba690d24d4 Merge branch '3.4.x' 2025-04-28 12:18:40 -07:00
Phillip Webb
708062ec1d Merge branch '3.3.x' into 3.4.x 2025-04-28 12:15:47 -07:00
Phillip Webb
428fa6d941 Fix copyright headers to consistently start with project inception year 2025-04-28 12:15:32 -07: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
Andy Wilkinson
c6045c3111 Merge branch '3.4.x'
Closes gh-45301
2025-04-25 15:53:18 +01:00
Andy Wilkinson
e47d87f54a Merge branch '3.3.x' into 3.4.x
Closes gh-45300
2025-04-25 15:53:09 +01:00
Andy Wilkinson
8869f769c1 Polish "Fix changelog generator missing directly removed properties"
See gh-45267
2025-04-25 15:51:29 +01:00
yybmion
30a679872c Fix changelog generator missing directly removed properties
The changelog generator did not detect properties that were added to a new
version with error-level deprecation (indicating immediate removal). This
commonly occurs when upgrading dependencies like Flyway 10, where properties
are removed without prior deprecation.

Modified the computeDifferences method to detect properties that only exist
in the new metadata with error-level deprecation and properly mark them as
DELETED in the changelog.

See gh-45267

Signed-off-by: yybmion <yunyubin54@gmail.com>
2025-04-25 15:48:24 +01:00
Andy Wilkinson
67d23d5ec4 Merge branch '3.4.x' 2025-04-25 14:38:57 +01:00
Andy Wilkinson
468a33e72a Merge branch '3.3.x' into 3.4.x 2025-04-25 14:38:36 +01:00
Andy Wilkinson
c420786eed Upgrade to Gradle 8.14 2025-04-25 14:33:32 +01: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
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