feat(docker): introduce Java 26 dev/build container and build-secret challenge - #2650
feat(docker): introduce Java 26 dev/build container and build-secret challenge#2650sandeshkuldharme1 wants to merge 5 commits into
Conversation
| @@ -0,0 +1,18 @@ | |||
| { | |||
| "name": "OWASP WrongSecrets Dev Container (JDK 22)", | |||
There was a problem hiding this comment.
Updated to Java 26 (eclipse-temurin:26-jdk-jammy)! Thanks for the review.
There was a problem hiding this comment.
Can you add node js26 as well please?
| ] | ||
| } | ||
| }, | ||
| "remoteUser": "root" |
There was a problem hiding this comment.
Hi @sandeshkuldharme1 ! I think we are missing a few components voor a devcontainer yet. Can you add those please?
|
Hi @commjoen, I've updated the devcontainer to Java 26 (eclipse-temurin:26-jdk-jammy), added the missing components (forwarded ports, docker-in-docker, Maven postCreate setup), and fixed the UTF-8 BOM encoding issue. Thanks! |
|
just to make sure: how can we now use the devcontainer to build the app completely :) ? |
|
Hi @commjoen, Here is how you can use the Dev Container to build and run the entire application completely: 1. Open in Dev Container
(The container will automatically set up Java, Docker-in-Docker, forwarded ports, and run the Maven setup). 2. Build the Complete AppInside the integrated Dev Container terminal, run: ./mvnw clean install |
Can you add this to the contributing.md please? |
|
|
||
| /** Challenge for finding secrets leaked in build container layers. */ | ||
| @Component | ||
| public class ChallengeBuildContainer extends Challenge { |
There was a problem hiding this comment.
It looks like a few more components are missing for a challenge. Can you please have a look at the other challenges to make it complete?
This PR introduces a standardized JDK 22 development/build container bundling
wrongsecrets-binaries, and adds a new challenge demonstrating secret leakage in build container layers and intermediate stages.Motivation
wrongsecrets-binaries, preventing local JDK version mismatches across contributor machines.ARGor intermediate build layers in multi-stage Docker builds.Proposed Changes
.devcontainer/devcontainer.jsonconfigured with JDK 22 and docker-in-docker.ChallengeBuildContainer.javaunder Docker challenges.ChallengeBuildContainerTest.java.challenge_build_container.htmlwith remediation guidance.Testing Done
./mvnw clean testChecklist