From 057d05f163f498427f3d1cc7f60b3c8a66f67d2d Mon Sep 17 00:00:00 2001 From: Jeroen Willemsen Date: Wed, 18 Nov 2026 08:00:35 +0100 Subject: [PATCH 01/17] Upgrade to go 1.27.4 and java 27 --- .devcontainer/.windsurfrules | 2 +- .devcontainer/Dockerfile | 2 +- .github/workflows/build-devcontainer.yml | 16 +++++++------- .github/workflows/codeql-analysis.yml | 4 ++-- .github/workflows/container_test.yml | 4 ++-- .github/workflows/dast-zap-test.yml | 4 ++-- .../workflows/desktop-container-publish.yml | 4 ++-- .github/workflows/github-pages-preview.yml | 4 ++-- .github/workflows/java_swagger_doc.yml | 4 ++-- .github/workflows/main.yml | 12 +++++----- .../workflows/master-container-publish.yml | 4 ++-- .github/workflows/pr-preview.yml | 12 +++++----- .github/workflows/pre-commit.yml | 4 ++-- .github/workflows/version-sync-check.yml | 4 ++-- .github/workflows/visual-diff.yml | 8 +++---- .pre-commit-config.yaml | 2 +- CONTRIBUTING.md | 8 +++---- Dockerfile | 4 ++-- README.md | 6 ++--- aws/go.mod | 2 +- aws/go.sum | 22 ++----------------- azure/go.mod | 2 +- azure/go.sum | 22 ++----------------- docs/ARCHITECTURE_OVERVIEW.md | 2 +- docs/DEVELOPMENT_PATTERNS.md | 2 +- docs/SPRING_BOOT_4_ADOPTION_CHECKLIST.md | 2 +- gcp/go.mod | 2 +- pom.xml | 8 +++---- 28 files changed, 68 insertions(+), 104 deletions(-) diff --git a/.devcontainer/.windsurfrules b/.devcontainer/.windsurfrules index 33b84cf733..b4b58ee17b 100644 --- a/.devcontainer/.windsurfrules +++ b/.devcontainer/.windsurfrules @@ -1,6 +1,6 @@ # Windsurf rules -- Use the Java 26 toolchain that ships with the dev container. +- Use the Java 27 toolchain that ships with the dev container. - Run `./mvnw test -Dtest=ChallengeNNTest` for the challenge you touched. - Follow the challenge conventions documented in `AGENTS.md`. - Do not commit real credentials. The staging deploy helper expects the shared diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 94e4fcccab..88795d792a 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,4 +1,4 @@ -FROM eclipse-temurin:26-jdk-resolute +FROM eclipse-temurin:27.0.1.0-jdk-resolute LABEL org.opencontainers.image.title="WrongSecrets Dev Container" LABEL org.opencontainers.image.description="Development environment for OWASP WrongSecrets" diff --git a/.github/workflows/build-devcontainer.yml b/.github/workflows/build-devcontainer.yml index ecba20423b..a9d539efbf 100644 --- a/.github/workflows/build-devcontainer.yml +++ b/.github/workflows/build-devcontainer.yml @@ -71,18 +71,18 @@ jobs: platforms: ${{ matrix.platform }} load: true tags: | - ${{ env.IMAGE_NAME }}:26-resolute-base-${{ matrix.arch }}-${{ github.sha }} + ${{ env.IMAGE_NAME }}:27-resolute-base-${{ matrix.arch }}-${{ github.sha }} cache-from: type=gha,scope=devcontainer-base-${{ matrix.arch }} cache-to: type=gha,mode=max,scope=devcontainer-base-${{ matrix.arch }} - # The devcontainer.json refers to 26-resolute-base. + # The devcontainer.json refers to 27-resolute-base. # Make the architecture-specific base image available # locally under that exact name. - name: Tag base image run: | docker tag \ - "${IMAGE_NAME}:26-resolute-base-${{ matrix.arch }}-${{ github.sha }}" \ - "${IMAGE_NAME}:26-resolute-base" + "${IMAGE_NAME}:27-resolute-base-${{ matrix.arch }}-${{ github.sha }}" \ + "${IMAGE_NAME}:27-resolute-base" # Build the actual Dev Container. # @@ -135,11 +135,11 @@ jobs: if: github.event_name != 'pull_request' run: | docker tag \ - "${IMAGE_NAME}:26-resolute-base-${{ matrix.arch }}-${{ github.sha }}" \ - "${IMAGE_NAME}:26-resolute-base-${{ matrix.arch }}" + "${IMAGE_NAME}:27-resolute-base-${{ matrix.arch }}-${{ github.sha }}" \ + "${IMAGE_NAME}:27-resolute-base-${{ matrix.arch }}" docker push \ - "${IMAGE_NAME}:26-resolute-base-${{ matrix.arch }}" + "${IMAGE_NAME}:27-resolute-base-${{ matrix.arch }}" manifest: name: Create multi-arch manifest @@ -165,7 +165,7 @@ jobs: - name: Create final Dev Container manifest run: | docker buildx imagetools create \ - --tag "${IMAGE_NAME}:26-resolute" \ + --tag "${IMAGE_NAME}:27-resolute" \ --tag "${IMAGE_NAME}:${GITHUB_SHA}" \ "${IMAGE_NAME}:amd64-${GITHUB_SHA}" \ "${IMAGE_NAME}:arm64-${GITHUB_SHA}" diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 3f7ce2a7bc..665ab63cd2 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -69,10 +69,10 @@ jobs: #- run: | # make bootstrap # make release - - name: Set up JDK 26 + - name: Set up JDK 27 uses: actions/setup-java@v5 with: - java-version: "26" + java-version: "27" distribution: "temurin" cache: maven - name: run mvn clean package diff --git a/.github/workflows/container_test.yml b/.github/workflows/container_test.yml index 504fb979d7..d14f71f280 100644 --- a/.github/workflows/container_test.yml +++ b/.github/workflows/container_test.yml @@ -23,10 +23,10 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - uses: actions/checkout@v7 - - name: Set up JDK 26 + - name: Set up JDK 27 uses: actions/setup-java@v5 with: - java-version: "26" + java-version: "27" distribution: "temurin" cache: "maven" - name: Navigate to test script and run diff --git a/.github/workflows/dast-zap-test.yml b/.github/workflows/dast-zap-test.yml index 7b40694c50..833d9164b2 100644 --- a/.github/workflows/dast-zap-test.yml +++ b/.github/workflows/dast-zap-test.yml @@ -17,10 +17,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 - - name: Set up JDK 26 + - name: Set up JDK 27 uses: actions/setup-java@v5 with: - java-version: "26" + java-version: "27" distribution: "temurin" cache: maven - name: Clean install diff --git a/.github/workflows/desktop-container-publish.yml b/.github/workflows/desktop-container-publish.yml index 6a6c25d257..f219c398db 100644 --- a/.github/workflows/desktop-container-publish.yml +++ b/.github/workflows/desktop-container-publish.yml @@ -29,10 +29,10 @@ jobs: - name: Checkout code uses: actions/checkout@v7 - - name: Set up JDK 26 + - name: Set up JDK 27 uses: actions/setup-java@v5 with: - java-version: "26" + java-version: "27" distribution: "temurin" cache: "maven" diff --git a/.github/workflows/github-pages-preview.yml b/.github/workflows/github-pages-preview.yml index ac1f98f797..90a8bc927e 100644 --- a/.github/workflows/github-pages-preview.yml +++ b/.github/workflows/github-pages-preview.yml @@ -35,10 +35,10 @@ jobs: - name: Checkout uses: actions/checkout@v7 - - name: Set up JDK 26 + - name: Set up JDK 27 uses: actions/setup-java@v5 with: - java-version: "26" + java-version: "27" distribution: "temurin" cache: "maven" diff --git a/.github/workflows/java_swagger_doc.yml b/.github/workflows/java_swagger_doc.yml index e0faa9e7a8..3eea4c9f08 100644 --- a/.github/workflows/java_swagger_doc.yml +++ b/.github/workflows/java_swagger_doc.yml @@ -19,10 +19,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 - - name: Set up JDK 26 + - name: Set up JDK 27 uses: actions/setup-java@v5 with: - java-version: "26" + java-version: "27" distribution: "temurin" cache: maven - name: Clean install diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1fc2b706c8..8e84a465ed 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,10 +30,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 - - name: Set up JDK 26 + - name: Set up JDK 27 uses: actions/setup-java@v5 with: - java-version: "26" + java-version: "27" distribution: "temurin" cache: "maven" - name: checkstyle with Maven @@ -44,10 +44,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 - - name: Set up JDK 26 + - name: Set up JDK 27 uses: actions/setup-java@v5 with: - java-version: "26" + java-version: "27" distribution: "temurin" cache: "maven" - name: spotbugs with Maven @@ -60,10 +60,10 @@ jobs: contents: read steps: - uses: actions/checkout@v7 - - name: Set up JDK 26 + - name: Set up JDK 27 uses: actions/setup-java@v5 with: - java-version: "26" + java-version: "27" distribution: "temurin" cache: "maven" - name: Test with Maven diff --git a/.github/workflows/master-container-publish.yml b/.github/workflows/master-container-publish.yml index 58468ef3f2..cfbfef963a 100644 --- a/.github/workflows/master-container-publish.yml +++ b/.github/workflows/master-container-publish.yml @@ -20,10 +20,10 @@ jobs: - name: Checkout code uses: actions/checkout@v7 - - name: Set up JDK 26 + - name: Set up JDK 27 uses: actions/setup-java@v5 with: - java-version: "26" + java-version: "27" distribution: "temurin" cache: "maven" diff --git a/.github/workflows/pr-preview.yml b/.github/workflows/pr-preview.yml index 72f8ddc157..a8be3e6c1a 100644 --- a/.github/workflows/pr-preview.yml +++ b/.github/workflows/pr-preview.yml @@ -28,10 +28,10 @@ jobs: - name: Checkout code uses: actions/checkout@v7 - - name: Set up JDK 26 + - name: Set up JDK 27 uses: actions/setup-java@v5 with: - java-version: "26" + java-version: "27" distribution: "temurin" cache: "maven" @@ -248,10 +248,10 @@ jobs: ref: master path: main-code - - name: Set up JDK 26 for PR build + - name: Set up JDK 27 for PR build uses: actions/setup-java@v5 with: - java-version: "26" + java-version: "27" distribution: "temurin" cache: "maven" @@ -277,10 +277,10 @@ jobs: docker build --build-arg argBasedVersion="${{ steps.extract-pr-version.outputs.docker_version }}" -t wrongsecrets-pr . echo "PR Docker image built successfully" - - name: Set up JDK 26 for main + - name: Set up JDK 27 for main uses: actions/setup-java@v5 with: - java-version: "26" + java-version: "27" distribution: "temurin" cache: "maven" diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index ae9d10aa17..a50c7bdd92 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -26,12 +26,12 @@ jobs: uses: psf/black@stable - uses: actions/setup-node@v6 with: - node-version: 26 + node-version: 27 cache: "npm" - uses: actions/setup-java@v5 with: distribution: "temurin" - java-version: "26" + java-version: "27" cache: maven - name: Install npm dependencies run: npm install diff --git a/.github/workflows/version-sync-check.yml b/.github/workflows/version-sync-check.yml index ea0fce3d97..744feec8cb 100644 --- a/.github/workflows/version-sync-check.yml +++ b/.github/workflows/version-sync-check.yml @@ -16,10 +16,10 @@ jobs: - name: Checkout code uses: actions/checkout@v7 - - name: Set up JDK 26 + - name: Set up JDK 27 uses: actions/setup-java@v5 with: - java-version: "26" + java-version: "27" distribution: "temurin" cache: "maven" diff --git a/.github/workflows/visual-diff.yml b/.github/workflows/visual-diff.yml index 089b3326e3..70a12236ee 100644 --- a/.github/workflows/visual-diff.yml +++ b/.github/workflows/visual-diff.yml @@ -25,10 +25,10 @@ jobs: ref: master path: main-code - - name: Set up JDK 26 for PR build + - name: Set up JDK 27 for PR build uses: actions/setup-java@v5 with: - java-version: "26" + java-version: "27" distribution: "temurin" cache: "maven" @@ -53,10 +53,10 @@ jobs: docker build --build-arg argBasedVersion="${{ steps.extract-pr-version.outputs.docker_version }}" -t wrongsecrets-pr . echo "PR Docker image built successfully" - - name: Set up JDK 26 for main build + - name: Set up JDK 27 for main build uses: actions/setup-java@v5 with: - java-version: "26" + java-version: "27" distribution: "temurin" cache: "maven" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 56c67ca94a..d5d397bf48 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -61,4 +61,4 @@ repos: rev: 26.10.1 hooks: - id: black - language_version: python3.15 + language_version: python3.17 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3541cc00db..b5262ef923 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -170,7 +170,7 @@ Pull requests should be as small/atomic as possible. Large, wide-sweeping change The project includes a fully configured Dev Container for **VS Code** and **GitHub Codespaces**. You do not need to install Java, Maven, Node.js, Python, or Terraform tools locally on your machine—everything is self-contained inside the Dev Container. The Dev Container environment automatically provides: -- **JDK 26** & **Maven Wrapper** (`./mvnw`) +- **JDK 27** & **Maven Wrapper** (`./mvnw`) - **Node.js 26** & **npm** (for commitlint, ESLint, and frontend build) - **Python 3** & **pre-commit** hooks - **Terraform**, **tflint**, and **terraform-docs** (for pre-commit validation) @@ -267,8 +267,8 @@ Please be sure to take a careful look at our [Code of Conduct](https://github.co 2. **Node.Js 26** [_Node.Js_](https://nodejs.org/en/) is an open-source library and a cross-platform JavaScript **runtime environment** specifically for running web applications outside one's browser. -3. **JDK-26** - [_JDK_](https://www.oracle.com/java/technologies/downloads/#java26) is a tool used in development and testing programs written in the Java programming language. +3. **JDK-27** + [_JDK_](https://www.oracle.com/java/technologies/downloads/#java27) is a tool used in development and testing programs written in the Java programming language. 4. **IntelliJ IDEA** [_IntelliJ IDEA_](https://www.jetbrains.com/idea/download) is an integrated development environment basically an **IDE** written in Java for developing software written in Java, Kotlin, Groovy etc. @@ -334,7 +334,7 @@ Select **_google-java-format Settings_** and click enable. Open **_File > Project structure _**. -In the tab `Project` make sure that an SDK of version `26` is selected (e.g. `openjdk-26`, `oraclejdk-26` or just `26` depending on which Java JDK variant you installed). +In the tab `Project` make sure that an SDK of version `27` is selected (e.g. `openjdk-27`, `oraclejdk-27` or just `27` depending on which Java JDK variant you installed). In the tab `SDKs` make sure that an SDK of version `26` is selected. diff --git a/Dockerfile b/Dockerfile index a37d7d5873..48cf8ee379 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM bellsoft/liberica-openjre-debian:26-cds AS builder +FROM bellsoft/liberica-openjre-debian:27-cds AS builder WORKDIR /builder ARG argBasedVersion="1.15.0RC1" @@ -6,7 +6,7 @@ ARG argBasedVersion="1.15.0RC1" COPY --chown=wrongsecrets target/wrongsecrets-${argBasedVersion}-SNAPSHOT.jar application.jar RUN java -Djarmode=tools -jar application.jar extract --layers --destination extracted -FROM eclipse-temurin:26-jre-alpine +FROM eclipse-temurin:27.0.1.0-jre-alpine WORKDIR /application LABEL org.opencontainers.image.title="OWASP WrongSecrets" diff --git a/README.md b/README.md index fd607591a2..bc8753d617 100644 --- a/README.md +++ b/README.md @@ -686,11 +686,11 @@ See [Dependency-Check Maven Plugin Documentation](https://jeremylong.github.io/D ### Get the project started in IntelliJ IDEA -Requirements: make sure you have the following tools installed: [Docker](https://www.docker.com/products/docker-desktop/), [Java26 JDK](https://jdk.java.net/26/), [NodeJS 26](https://nodejs.org/en/download/current) and [IntelliJ IDEA](https://www.jetbrains.com/idea/download). +Requirements: make sure you have the following tools installed: [Docker](https://www.docker.com/products/docker-desktop/), [Java27 JDK](https://jdk.java.net/26/), [NodeJS 26](https://nodejs.org/en/download/current) and [IntelliJ IDEA](https://www.jetbrains.com/idea/download). 1. Fork and clone the project as described in the [documentation](https://github.com/OWASP/wrongsecrets/blob/master/CONTRIBUTING.md). 2. Import the project in IntelliJ (e.g. import as mvn project / local sources) -3. Go to the project settings and make sure it uses Java26 (And that the JDK can be found) +3. Go to the project settings and make sure it uses Java27 (And that the JDK can be found) 4. Go to the IDE settings>Language & Frameworks > Lombok and make sure Lombok processing is enabled 5. Open the Maven Tab in your IDEA and run "Reload All Maven Projects" to make the system sync and download everything. Next, in that same tab use the "install" option as part of the OWASP WrongSecrets Lifecycle to genereate the asciidoc and such. 6. Now run the `main` method in `org.owasp.wrongsecrets.WrongSecretsApplication.java`. This should fail with a stack trace. @@ -822,7 +822,7 @@ If you want to run WrongSecrets but without certain challenges you don't want to *_NOTE_* Please note that we do not deliver any support to your fork when you follow the process below. Please understand that license and copyright of the original application remain intact for your Fork. Requirements: -- Have the JDK of Java 26 installed; +- Have the JDK of Java 27 installed; - Have an account at a registry to which you can push your variant of the WrongSecrets container; Here are the steps you have to follow to create your own release of WrongSecrets with certain challenges disabled: diff --git a/aws/go.mod b/aws/go.mod index 800ae827b0..741bdacf4a 100644 --- a/aws/go.mod +++ b/aws/go.mod @@ -1,6 +1,6 @@ module wrongsecrets -go 1.26.10 +go 1.27.4 require github.com/gruntwork-io/terratest v0.56.0 diff --git a/aws/go.sum b/aws/go.sum index 6ad243c732..c27d8d8c41 100644 --- a/aws/go.sum +++ b/aws/go.sum @@ -19,8 +19,6 @@ github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ= github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= -github.com/hashicorp/go-getter/v2 v2.2.5 h1:kfj7TeF3Mpq6UZcZxXfz7sgig85sTmPYwfGHd8UfTII= -github.com/hashicorp/go-getter/v2 v2.2.5/go.mod h1:aZFhc+xmYUqWNxvBhlVi5ZJinWvSjelAFIeCDE5uIkM= github.com/hashicorp/go-getter/v2 v2.2.6 h1:YPh3bAPQPFKYBu0i253xalk/dxZyoUnC4HbwDYPCYZw= github.com/hashicorp/go-getter/v2 v2.2.6/go.mod h1:ijhzM8T7li5y5Jl3E6FZG7wajPtg/6XCI7w0U0DPo80= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= @@ -35,8 +33,6 @@ github.com/hashicorp/terraform-json v0.29.0 h1:ZggVL0YzGj5zdbafX4+rDcROM7EvVU0eX github.com/hashicorp/terraform-json v0.29.0/go.mod h1:PJIRf+Yzu5iLb52c/xYp1tUOL4jzMzfIAB5gvWWKIWE= github.com/jinzhu/copier v0.4.0 h1:w3ciUoD19shMCRargcpm0cm91ytaBhDvuRpz1ODO/U8= github.com/jinzhu/copier v0.4.0/go.mod h1:DfbEm0FYsaqBcKcFuvmOZb218JkPGtvSHsKg8S8hyyg= -github.com/klauspost/compress v1.20.3 h1:zWNoFqq/lSuYQRim3dUXlXeA0IqwuZGicdG5ZTfY5j4= -github.com/klauspost/compress v1.20.3/go.mod h1:LUdAzn7YLVvxLpc7y3V1m40wESHTgc1422pwwBSKYuI= github.com/klauspost/compress v1.20.4 h1:dD0v/bvxtjCBqQu6sx1TNWkalEY5lNTIe+HY9w8TeNI= github.com/klauspost/compress v1.20.4/go.mod h1:LUdAzn7YLVvxLpc7y3V1m40wESHTgc1422pwwBSKYuI= github.com/mattn/go-zglob v0.0.8 h1:g/5T0tizbs+419GtiXvMDkOg+RIBu1qi+B2teiHsnNE= @@ -53,36 +49,22 @@ github.com/tmccombs/hcl2json v0.6.9 h1:Pvqe6XgLQ8WxuQWp/QPRmV+8uHvUIuCs5b+Q8jvbr github.com/tmccombs/hcl2json v0.6.9/go.mod h1:JIcW8tgtY0DTxXAIXxfNYvBa6MvMptf6GabOCjiOOak= github.com/ulikunitz/xz v0.5.17 h1:flR0y/x1hgM8EGV1AW3Xll6T413G0glV8UfBwR617V4= github.com/ulikunitz/xz v0.5.17/go.mod h1:H9Rt/W6/Qj27PGauhQc6nfCDy7vHpzsOThBSaYDoEhw= -github.com/zclconf/go-cty v1.19.0 h1:IV8WdqYZc2c5rLX9bEoLNXKojBAp0MZPBHMIrCoa/s4= -github.com/zclconf/go-cty v1.19.0/go.mod h1:12W89jGn3JCOIQi7infWr9m80rOkb5RNYJqXMZcN4c8= github.com/zclconf/go-cty v1.20.0 h1:V2Mh9pu2xWPATCY7US3LnGBNSq/AAZDsqQZmmOAV7DI= github.com/zclconf/go-cty v1.20.0/go.mod h1:12W89jGn3JCOIQi7infWr9m80rOkb5RNYJqXMZcN4c8= github.com/zclconf/go-cty-debug v0.0.0-20240509010212-0d6042c53940 h1:4r45xpDWB6ZMSMNJFMOjqrGHynW3DIBuR2H9j0ug+Mo= github.com/zclconf/go-cty-debug v0.0.0-20240509010212-0d6042c53940/go.mod h1:CmBdvvj3nqzfzJ6nTCIwDTPZ56aVGvDrmztiO5g3qrM= -go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw= -go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg= go.yaml.in/yaml/v3 v3.0.6 h1:zcDfvjXEqTQmpjniUBLc91xYJMB2c4QOFxEF/LCEckM= go.yaml.in/yaml/v3 v3.0.6/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg= -golang.org/x/crypto v0.58.0 h1:COkYLr4k7nDI4r6QtMML2AfzeIswWHAJthLS6K/M/54= -golang.org/x/crypto v0.58.0/go.mod h1:Xh+kl5A+M0gMiWDytH2Hhr5Z7WbNCpv/eB/EFgfSk+w= golang.org/x/crypto v0.59.0 h1:xS2jhqYbzNrpvkWP2YTDf4TJwBy3ykR03i8vFDxEc7c= golang.org/x/crypto v0.59.0/go.mod h1:veDyUwATGs3c+vN3VfTbzViMGXeTBk3WyhBOkn+F/4U= -golang.org/x/mod v0.42.0 h1:ICeL3t2L30ljSPHHxDnR4fqVcBt/zR2zJAb9juavmQg= -golang.org/x/mod v0.42.0/go.mod h1:u5fzIrRInkL8MaO1cbRkUHT64v303YIT5KEqpNr7jRs= golang.org/x/mod v0.43.0 h1:MFuq5J6s35W9D3IjkwyWc9vHh0nENOrt5K8Iof4ofmg= golang.org/x/mod v0.43.0/go.mod h1:4ec1JnuyBz5+FIVhg86UsA39YG8BpnrZdJYSNHmGzHY= -golang.org/x/sync v0.24.0 h1:iqiDrGoDgyuvAKrhLQthUEzU/R378N78gXbBjxed7oA= -golang.org/x/sync v0.24.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0= golang.org/x/sync v0.25.0 h1:dJnifr0nMV8/SBnBvdo4eSGGnrc3O4FFx6IqvtLcmRs= golang.org/x/sync v0.25.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0= -golang.org/x/sys v0.49.0 h1:XbzkgYJHdqh/8m2Uu0W/dQv8nktxx4BFHp1M0gROTXA= -golang.org/x/sys v0.49.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= golang.org/x/sys v0.50.0 h1:dkKZEFTEKaLr1sjhs0WiKqoi8Jj5nHbS3Njmx1UoMJs= golang.org/x/sys v0.50.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= -golang.org/x/term v0.47.0 h1:cpyOwQkr2Nzxe2p6KnrTG7Ei2wtzjsuSjhpXXepZ/BM= -golang.org/x/term v0.47.0/go.mod h1:efAfAuG6RKABvg1ArGebRkvX6LXul14SM67o2e4mUCY= -golang.org/x/text v0.43.0 h1:1QivrlhwAsnMOcqgOdl9my7s9OyZl8O5/UGUTJVXoWc= -golang.org/x/text v0.43.0/go.mod h1:hbSIYA/amXcRXTFSZqh8tWHEoqRvvbKPJ2uz/KU+a+s= +golang.org/x/term v0.48.0 h1:G6UU1eiSB8nl3DzeUGt7Mg+2SctI8tPS6Z5/mBt6cOk= +golang.org/x/term v0.48.0/go.mod h1:BRDLHCZr2SUjIeBHHpRyQeC9xzSAVbzY2rvKgafnHf4= golang.org/x/text v0.44.0 h1:YItdp/mQNGnsmrgpcdA5yQ3bnRxCfo/Tj/iByGW9GGo= golang.org/x/text v0.44.0/go.mod h1:S4FR1waQ9LbjQTls97SyRjDaUUVkaM+cXwwuG/G+MwY= golang.org/x/tools v0.52.0 h1:ryxg4U63oaUYk7uOLTF37n43f4qgtGvqV4Ioit1BaEs= diff --git a/azure/go.mod b/azure/go.mod index 800ae827b0..741bdacf4a 100644 --- a/azure/go.mod +++ b/azure/go.mod @@ -1,6 +1,6 @@ module wrongsecrets -go 1.26.10 +go 1.27.4 require github.com/gruntwork-io/terratest v0.56.0 diff --git a/azure/go.sum b/azure/go.sum index 6ad243c732..c27d8d8c41 100644 --- a/azure/go.sum +++ b/azure/go.sum @@ -19,8 +19,6 @@ github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ= github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= -github.com/hashicorp/go-getter/v2 v2.2.5 h1:kfj7TeF3Mpq6UZcZxXfz7sgig85sTmPYwfGHd8UfTII= -github.com/hashicorp/go-getter/v2 v2.2.5/go.mod h1:aZFhc+xmYUqWNxvBhlVi5ZJinWvSjelAFIeCDE5uIkM= github.com/hashicorp/go-getter/v2 v2.2.6 h1:YPh3bAPQPFKYBu0i253xalk/dxZyoUnC4HbwDYPCYZw= github.com/hashicorp/go-getter/v2 v2.2.6/go.mod h1:ijhzM8T7li5y5Jl3E6FZG7wajPtg/6XCI7w0U0DPo80= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= @@ -35,8 +33,6 @@ github.com/hashicorp/terraform-json v0.29.0 h1:ZggVL0YzGj5zdbafX4+rDcROM7EvVU0eX github.com/hashicorp/terraform-json v0.29.0/go.mod h1:PJIRf+Yzu5iLb52c/xYp1tUOL4jzMzfIAB5gvWWKIWE= github.com/jinzhu/copier v0.4.0 h1:w3ciUoD19shMCRargcpm0cm91ytaBhDvuRpz1ODO/U8= github.com/jinzhu/copier v0.4.0/go.mod h1:DfbEm0FYsaqBcKcFuvmOZb218JkPGtvSHsKg8S8hyyg= -github.com/klauspost/compress v1.20.3 h1:zWNoFqq/lSuYQRim3dUXlXeA0IqwuZGicdG5ZTfY5j4= -github.com/klauspost/compress v1.20.3/go.mod h1:LUdAzn7YLVvxLpc7y3V1m40wESHTgc1422pwwBSKYuI= github.com/klauspost/compress v1.20.4 h1:dD0v/bvxtjCBqQu6sx1TNWkalEY5lNTIe+HY9w8TeNI= github.com/klauspost/compress v1.20.4/go.mod h1:LUdAzn7YLVvxLpc7y3V1m40wESHTgc1422pwwBSKYuI= github.com/mattn/go-zglob v0.0.8 h1:g/5T0tizbs+419GtiXvMDkOg+RIBu1qi+B2teiHsnNE= @@ -53,36 +49,22 @@ github.com/tmccombs/hcl2json v0.6.9 h1:Pvqe6XgLQ8WxuQWp/QPRmV+8uHvUIuCs5b+Q8jvbr github.com/tmccombs/hcl2json v0.6.9/go.mod h1:JIcW8tgtY0DTxXAIXxfNYvBa6MvMptf6GabOCjiOOak= github.com/ulikunitz/xz v0.5.17 h1:flR0y/x1hgM8EGV1AW3Xll6T413G0glV8UfBwR617V4= github.com/ulikunitz/xz v0.5.17/go.mod h1:H9Rt/W6/Qj27PGauhQc6nfCDy7vHpzsOThBSaYDoEhw= -github.com/zclconf/go-cty v1.19.0 h1:IV8WdqYZc2c5rLX9bEoLNXKojBAp0MZPBHMIrCoa/s4= -github.com/zclconf/go-cty v1.19.0/go.mod h1:12W89jGn3JCOIQi7infWr9m80rOkb5RNYJqXMZcN4c8= github.com/zclconf/go-cty v1.20.0 h1:V2Mh9pu2xWPATCY7US3LnGBNSq/AAZDsqQZmmOAV7DI= github.com/zclconf/go-cty v1.20.0/go.mod h1:12W89jGn3JCOIQi7infWr9m80rOkb5RNYJqXMZcN4c8= github.com/zclconf/go-cty-debug v0.0.0-20240509010212-0d6042c53940 h1:4r45xpDWB6ZMSMNJFMOjqrGHynW3DIBuR2H9j0ug+Mo= github.com/zclconf/go-cty-debug v0.0.0-20240509010212-0d6042c53940/go.mod h1:CmBdvvj3nqzfzJ6nTCIwDTPZ56aVGvDrmztiO5g3qrM= -go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw= -go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg= go.yaml.in/yaml/v3 v3.0.6 h1:zcDfvjXEqTQmpjniUBLc91xYJMB2c4QOFxEF/LCEckM= go.yaml.in/yaml/v3 v3.0.6/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg= -golang.org/x/crypto v0.58.0 h1:COkYLr4k7nDI4r6QtMML2AfzeIswWHAJthLS6K/M/54= -golang.org/x/crypto v0.58.0/go.mod h1:Xh+kl5A+M0gMiWDytH2Hhr5Z7WbNCpv/eB/EFgfSk+w= golang.org/x/crypto v0.59.0 h1:xS2jhqYbzNrpvkWP2YTDf4TJwBy3ykR03i8vFDxEc7c= golang.org/x/crypto v0.59.0/go.mod h1:veDyUwATGs3c+vN3VfTbzViMGXeTBk3WyhBOkn+F/4U= -golang.org/x/mod v0.42.0 h1:ICeL3t2L30ljSPHHxDnR4fqVcBt/zR2zJAb9juavmQg= -golang.org/x/mod v0.42.0/go.mod h1:u5fzIrRInkL8MaO1cbRkUHT64v303YIT5KEqpNr7jRs= golang.org/x/mod v0.43.0 h1:MFuq5J6s35W9D3IjkwyWc9vHh0nENOrt5K8Iof4ofmg= golang.org/x/mod v0.43.0/go.mod h1:4ec1JnuyBz5+FIVhg86UsA39YG8BpnrZdJYSNHmGzHY= -golang.org/x/sync v0.24.0 h1:iqiDrGoDgyuvAKrhLQthUEzU/R378N78gXbBjxed7oA= -golang.org/x/sync v0.24.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0= golang.org/x/sync v0.25.0 h1:dJnifr0nMV8/SBnBvdo4eSGGnrc3O4FFx6IqvtLcmRs= golang.org/x/sync v0.25.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0= -golang.org/x/sys v0.49.0 h1:XbzkgYJHdqh/8m2Uu0W/dQv8nktxx4BFHp1M0gROTXA= -golang.org/x/sys v0.49.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= golang.org/x/sys v0.50.0 h1:dkKZEFTEKaLr1sjhs0WiKqoi8Jj5nHbS3Njmx1UoMJs= golang.org/x/sys v0.50.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= -golang.org/x/term v0.47.0 h1:cpyOwQkr2Nzxe2p6KnrTG7Ei2wtzjsuSjhpXXepZ/BM= -golang.org/x/term v0.47.0/go.mod h1:efAfAuG6RKABvg1ArGebRkvX6LXul14SM67o2e4mUCY= -golang.org/x/text v0.43.0 h1:1QivrlhwAsnMOcqgOdl9my7s9OyZl8O5/UGUTJVXoWc= -golang.org/x/text v0.43.0/go.mod h1:hbSIYA/amXcRXTFSZqh8tWHEoqRvvbKPJ2uz/KU+a+s= +golang.org/x/term v0.48.0 h1:G6UU1eiSB8nl3DzeUGt7Mg+2SctI8tPS6Z5/mBt6cOk= +golang.org/x/term v0.48.0/go.mod h1:BRDLHCZr2SUjIeBHHpRyQeC9xzSAVbzY2rvKgafnHf4= golang.org/x/text v0.44.0 h1:YItdp/mQNGnsmrgpcdA5yQ3bnRxCfo/Tj/iByGW9GGo= golang.org/x/text v0.44.0/go.mod h1:S4FR1waQ9LbjQTls97SyRjDaUUVkaM+cXwwuG/G+MwY= golang.org/x/tools v0.52.0 h1:ryxg4U63oaUYk7uOLTF37n43f4qgtGvqV4Ioit1BaEs= diff --git a/docs/ARCHITECTURE_OVERVIEW.md b/docs/ARCHITECTURE_OVERVIEW.md index daa031e31a..583b6f3d51 100644 --- a/docs/ARCHITECTURE_OVERVIEW.md +++ b/docs/ARCHITECTURE_OVERVIEW.md @@ -137,7 +137,7 @@ src/test/java/org/owasp/wrongsecrets/ ### Prerequisites -- Java 26 +- Java 27 - Maven 3.9+ - Docker - Node.js (for frontend dependencies) diff --git a/docs/DEVELOPMENT_PATTERNS.md b/docs/DEVELOPMENT_PATTERNS.md index d30885e70b..932da469a1 100644 --- a/docs/DEVELOPMENT_PATTERNS.md +++ b/docs/DEVELOPMENT_PATTERNS.md @@ -213,7 +213,7 @@ jobs: - name: Setup Java uses: actions/setup-java@v5 with: - java-version: '26' + java-version: '27' distribution: 'temurin' cache: maven diff --git a/docs/SPRING_BOOT_4_ADOPTION_CHECKLIST.md b/docs/SPRING_BOOT_4_ADOPTION_CHECKLIST.md index dda14e235e..04689e22ef 100644 --- a/docs/SPRING_BOOT_4_ADOPTION_CHECKLIST.md +++ b/docs/SPRING_BOOT_4_ADOPTION_CHECKLIST.md @@ -1,6 +1,6 @@ # Spring Boot 4 Adoption Checklist (WrongSecrets) -This checklist is tailored to the current `wrongsecrets` codebase (Spring Boot `4.1.1`, Java `26`). +This checklist is tailored to the current `wrongsecrets` codebase (Spring Boot `4.1.2`, Java `27`). ## How to use this document diff --git a/gcp/go.mod b/gcp/go.mod index 800ae827b0..741bdacf4a 100644 --- a/gcp/go.mod +++ b/gcp/go.mod @@ -1,6 +1,6 @@ module wrongsecrets -go 1.26.10 +go 1.27.4 require github.com/gruntwork-io/terratest v0.56.0 diff --git a/pom.xml b/pom.xml index ace895a0c8..e0e19bd08a 100644 --- a/pom.xml +++ b/pom.xml @@ -66,7 +66,7 @@ 26.91.0 4.0.25 - 26 + 27 3.7.1 10.1.3.0 1.18.48 @@ -74,9 +74,9 @@ 3.11.0 3.6.1 full - 26 - 26 - v26.12.1 + 27 + 27 + v26.13.1 11.20.0 4.10.5.0 4.10.5 From caa08439ac89cda0381b0192a6411ece04b16387 Mon Sep 17 00:00:00 2001 From: Jeroen Willemsen Date: Wed, 18 Nov 2026 08:01:07 +0100 Subject: [PATCH 02/17] Upgrade to go 1.27.4 and java 27 --- scripts/sort_contibutors/go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/sort_contibutors/go.mod b/scripts/sort_contibutors/go.mod index 94ab8ccb36..c74b153947 100644 --- a/scripts/sort_contibutors/go.mod +++ b/scripts/sort_contibutors/go.mod @@ -1,3 +1,3 @@ module github.com/owasp/wrongsecrets/scripts/sort_contibutors -go 1.27.3 +go 1.27.4 From df5827744678eb7efae576133e137cd146258b5a Mon Sep 17 00:00:00 2001 From: Jeroen Willemsen Date: Wed, 18 Nov 2026 08:04:16 +0100 Subject: [PATCH 03/17] update cache pins --- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/dast-zap-test.yml | 2 +- .github/workflows/java_swagger_doc.yml | 2 +- .github/workflows/pr-preview.yml | 2 +- .github/workflows/pre-commit.yml | 4 ++-- .github/workflows/visual-diff.yml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 665ab63cd2..839b5e16a6 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -74,7 +74,7 @@ jobs: with: java-version: "27" distribution: "temurin" - cache: maven + cache: "maven" - name: run mvn clean package run: ./mvnw clean package -Ddependency-check.skip=true -Dmaven.test.skip=true - name: Perform CodeQL Analysis diff --git a/.github/workflows/dast-zap-test.yml b/.github/workflows/dast-zap-test.yml index 833d9164b2..5f14149c16 100644 --- a/.github/workflows/dast-zap-test.yml +++ b/.github/workflows/dast-zap-test.yml @@ -22,7 +22,7 @@ jobs: with: java-version: "27" distribution: "temurin" - cache: maven + cache: "maven" - name: Clean install run: ./mvnw --no-transfer-progress clean install -DskipTests -Ddependency-check.skip -Dcyclonedx.skip=true -Dexec.skip - name: Start wrongsecrets diff --git a/.github/workflows/java_swagger_doc.yml b/.github/workflows/java_swagger_doc.yml index 3eea4c9f08..b8b8163f20 100644 --- a/.github/workflows/java_swagger_doc.yml +++ b/.github/workflows/java_swagger_doc.yml @@ -24,7 +24,7 @@ jobs: with: java-version: "27" distribution: "temurin" - cache: maven + cache: "maven" - name: Clean install run: ./mvnw --no-transfer-progress clean install -DskipTests -Ddependency-check.skip -Dcyclonedx.skip=true -Dexec.skip - name: Show npm logs on failure diff --git a/.github/workflows/pr-preview.yml b/.github/workflows/pr-preview.yml index a8be3e6c1a..58d1290278 100644 --- a/.github/workflows/pr-preview.yml +++ b/.github/workflows/pr-preview.yml @@ -339,7 +339,7 @@ jobs: uses: actions/setup-node@v6 with: node-version: '26' - + cache: "npm" - name: Install Playwright run: | npm install playwright@latest diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index a50c7bdd92..be07f4f2b4 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -26,13 +26,13 @@ jobs: uses: psf/black@stable - uses: actions/setup-node@v6 with: - node-version: 27 + node-version: '26' cache: "npm" - uses: actions/setup-java@v5 with: distribution: "temurin" java-version: "27" - cache: maven + cache: "maven" - name: Install npm dependencies run: npm install - uses: actions/cache@v4 diff --git a/.github/workflows/visual-diff.yml b/.github/workflows/visual-diff.yml index 70a12236ee..9d35de3139 100644 --- a/.github/workflows/visual-diff.yml +++ b/.github/workflows/visual-diff.yml @@ -112,7 +112,7 @@ jobs: uses: actions/setup-node@v6 with: node-version: '26' - + cache: "npm" - name: Install Playwright run: | npm install playwright@latest From b71df54e9fccde78ab4a67911007fec13543b910 Mon Sep 17 00:00:00 2001 From: Jeroen Willemsen Date: Wed, 18 Nov 2026 08:05:26 +0100 Subject: [PATCH 04/17] upgraded precommit --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d5d397bf48..f5ab6a46a4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,11 +9,11 @@ ci: submodules: false repos: - repo: https://github.com/renovatebot/pre-commit-hooks - rev: 44.241.0 + rev: 44.251.0 hooks: - id: renovate-config-validator - repo: https://github.com/eslint/eslint - rev: v9.39.5 + rev: v10.15.0 hooks: - id: eslint args: From 470a45c7034cbf492b911737937fe18350729e7b Mon Sep 17 00:00:00 2001 From: Jeroen Willemsen Date: Wed, 18 Nov 2026 08:45:57 +0100 Subject: [PATCH 05/17] fix python version --- .github/workflows/pre-commit.yml | 2 +- .github/workflows/scanner-comparison.yml | 8 ++++---- .pre-commit-config.yaml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index be07f4f2b4..c3e24e5bc4 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -21,7 +21,7 @@ jobs: - name: Setup python uses: actions/setup-python@v6 with: - python-version: "3.15" + python-version: "3.15.2" - name: Format python code with black uses: psf/black@stable - uses: actions/setup-node@v6 diff --git a/.github/workflows/scanner-comparison.yml b/.github/workflows/scanner-comparison.yml index 88f8c03b23..f7a9f7a03e 100644 --- a/.github/workflows/scanner-comparison.yml +++ b/.github/workflows/scanner-comparison.yml @@ -93,7 +93,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v6 with: - python-version: '3.15' + python-version: '3.15.2' - name: Install detect-secrets run: | @@ -163,7 +163,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v6 with: - python-version: '3.15' + python-version: '3.15.2' - name: Install gittyleaks run: | @@ -198,7 +198,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v6 with: - python-version: '3.15' + python-version: '3.15.2' - name: Install whispers (with timeout handling) run: | @@ -239,7 +239,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v6 with: - python-version: '3.15' + python-version: '3.15.2' - name: Install trufflehog3 run: | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f5ab6a46a4..e9d40e03ee 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -61,4 +61,4 @@ repos: rev: 26.10.1 hooks: - id: black - language_version: python3.17 + language_version: python3.15 From 69ea0f724a4028c31ce01f441366a878610e68d8 Mon Sep 17 00:00:00 2001 From: commjoen <1457214+commjoen@users.noreply.github.com> Date: Wed, 18 Nov 2026 08:04:14 +0000 Subject: [PATCH 06/17] Fix pre-commit hooks on current runtimes Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> --- .pre-commit-config.yaml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e9d40e03ee..0db21bc409 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,7 @@ repos: hooks: - id: renovate-config-validator - repo: https://github.com/eslint/eslint - rev: v10.15.0 + rev: v9.39.5 hooks: - id: eslint args: @@ -50,13 +50,18 @@ repos: hooks: - id: commitlint stages: [commit-msg] - - repo: https://github.com/ejba/pre-commit-maven - rev: v0.3.4 + - repo: local hooks: - id: maven - args: ["clean compile"] - - id: maven - args: ["spotless:apply"] + name: maven clean compile + entry: ./mvnw clean compile + language: system + pass_filenames: false + - id: maven-spotless-apply + name: maven spotless apply + entry: ./mvnw spotless:apply + language: system + pass_filenames: false - repo: https://github.com/psf/black rev: 26.10.1 hooks: From 5fa06442ad06569ac5392fcfae19181b0e09dc21 Mon Sep 17 00:00:00 2001 From: Jeroen Willemsen Date: Wed, 18 Nov 2026 09:07:25 +0100 Subject: [PATCH 07/17] Fix Challenge 5 spoil in minikube by removing quotes from configmap value The configmap value for funny.entry had escaped quotes, which caused the environment variable to be set with quotes. This could cause issues with Spring property resolution. Removed the quotes from both k8s/secrets-config.yml and okteto/k8s/secrets-config.yml. Also added a default value to the @Value annotation in Challenge5 to handle cases where the environment variable is not set. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- k8s/secrets-config.yml | 2 +- okteto/k8s/secrets-config.yml | 2 +- .../owasp/wrongsecrets/challenges/kubernetes/Challenge5.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/k8s/secrets-config.yml b/k8s/secrets-config.yml index b15d9160c5..35ddfc0a42 100644 --- a/k8s/secrets-config.yml +++ b/k8s/secrets-config.yml @@ -1,6 +1,6 @@ apiVersion: v1 data: - funny.entry: "thisIsK8SConfigMap" + funny.entry: thisIsK8SConfigMap kind: ConfigMap metadata: creationTimestamp: "2020-10-29T19:29:38Z" diff --git a/okteto/k8s/secrets-config.yml b/okteto/k8s/secrets-config.yml index 5ab014097f..004ee18bef 100644 --- a/okteto/k8s/secrets-config.yml +++ b/okteto/k8s/secrets-config.yml @@ -1,6 +1,6 @@ apiVersion: v1 data: - funny.entry: "thisIsK8SConfigMap" + funny.entry: thisIsK8SConfigMap kind: ConfigMap metadata: creationTimestamp: "2020-10-29T19:29:38Z" diff --git a/src/main/java/org/owasp/wrongsecrets/challenges/kubernetes/Challenge5.java b/src/main/java/org/owasp/wrongsecrets/challenges/kubernetes/Challenge5.java index 48ff1147d9..833720649d 100644 --- a/src/main/java/org/owasp/wrongsecrets/challenges/kubernetes/Challenge5.java +++ b/src/main/java/org/owasp/wrongsecrets/challenges/kubernetes/Challenge5.java @@ -10,7 +10,7 @@ public class Challenge5 extends FixedAnswerChallenge { private final String configmapK8sSecret; - public Challenge5(@Value("${SPECIAL_K8S_SECRET}") String configmapK8sSecret) { + public Challenge5(@Value("${SPECIAL_K8S_SECRET:if_you_see_this_please_use_k8s}") String configmapK8sSecret) { this.configmapK8sSecret = configmapK8sSecret; } From a154b52c14f04d089c32aea5b858c7ea060144f8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Wed, 18 Nov 2026 08:10:56 +0000 Subject: [PATCH 08/17] [pre-commit.ci lite] apply automatic fixes --- .../owasp/wrongsecrets/challenges/kubernetes/Challenge5.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/owasp/wrongsecrets/challenges/kubernetes/Challenge5.java b/src/main/java/org/owasp/wrongsecrets/challenges/kubernetes/Challenge5.java index 833720649d..a408271329 100644 --- a/src/main/java/org/owasp/wrongsecrets/challenges/kubernetes/Challenge5.java +++ b/src/main/java/org/owasp/wrongsecrets/challenges/kubernetes/Challenge5.java @@ -10,7 +10,8 @@ public class Challenge5 extends FixedAnswerChallenge { private final String configmapK8sSecret; - public Challenge5(@Value("${SPECIAL_K8S_SECRET:if_you_see_this_please_use_k8s}") String configmapK8sSecret) { + public Challenge5( + @Value("${SPECIAL_K8S_SECRET:if_you_see_this_please_use_k8s}") String configmapK8sSecret) { this.configmapK8sSecret = configmapK8sSecret; } From b5980db720261bd8b49b6dde5e3259c2709e61b5 Mon Sep 17 00:00:00 2001 From: Jeroen Willemsen Date: Wed, 18 Nov 2026 09:11:30 +0100 Subject: [PATCH 09/17] attempt to fix challenge5 --- k8s/secrets-config.yml | 2 +- okteto/k8s/secrets-config.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/k8s/secrets-config.yml b/k8s/secrets-config.yml index 35ddfc0a42..b15d9160c5 100644 --- a/k8s/secrets-config.yml +++ b/k8s/secrets-config.yml @@ -1,6 +1,6 @@ apiVersion: v1 data: - funny.entry: thisIsK8SConfigMap + funny.entry: "thisIsK8SConfigMap" kind: ConfigMap metadata: creationTimestamp: "2020-10-29T19:29:38Z" diff --git a/okteto/k8s/secrets-config.yml b/okteto/k8s/secrets-config.yml index 004ee18bef..5ab014097f 100644 --- a/okteto/k8s/secrets-config.yml +++ b/okteto/k8s/secrets-config.yml @@ -1,6 +1,6 @@ apiVersion: v1 data: - funny.entry: thisIsK8SConfigMap + funny.entry: "thisIsK8SConfigMap" kind: ConfigMap metadata: creationTimestamp: "2020-10-29T19:29:38Z" From 6493b19a87010b7cf9aa3445f81fdc9f8f5e6c89 Mon Sep 17 00:00:00 2001 From: Jeroen Willemsen Date: Wed, 18 Nov 2026 09:36:38 +0100 Subject: [PATCH 10/17] Fix caching npm agian --- .github/workflows/pr-preview.yml | 1 - .github/workflows/visual-diff.yml | 1 - 2 files changed, 2 deletions(-) diff --git a/.github/workflows/pr-preview.yml b/.github/workflows/pr-preview.yml index 58d1290278..f02815c298 100644 --- a/.github/workflows/pr-preview.yml +++ b/.github/workflows/pr-preview.yml @@ -339,7 +339,6 @@ jobs: uses: actions/setup-node@v6 with: node-version: '26' - cache: "npm" - name: Install Playwright run: | npm install playwright@latest diff --git a/.github/workflows/visual-diff.yml b/.github/workflows/visual-diff.yml index 9d35de3139..975100305d 100644 --- a/.github/workflows/visual-diff.yml +++ b/.github/workflows/visual-diff.yml @@ -112,7 +112,6 @@ jobs: uses: actions/setup-node@v6 with: node-version: '26' - cache: "npm" - name: Install Playwright run: | npm install playwright@latest From 990e12b26da5d45a1281936f512da070db92e7c2 Mon Sep 17 00:00:00 2001 From: Jeroen Willemsen Date: Wed, 18 Nov 2026 10:24:37 +0100 Subject: [PATCH 11/17] Update POM file with new version: 1.15.0RC2 --- .github/scripts/.bash_history | 2 +- js/index.js | 6 +++--- k8s/secret-challenge-deployment.yml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/scripts/.bash_history b/.github/scripts/.bash_history index b80569c2a4..79eb07c2d8 100644 --- a/.github/scripts/.bash_history +++ b/.github/scripts/.bash_history @@ -347,7 +347,7 @@ rm -rf jdk-18_linux-x64_bin.deb git rebase -i main git rebase -i master git stash -export tempPassword="eODAOPN4MwtQu6cpYZNs9Wqmj0yCp6AC1CsNYCmTaAA=" +export tempPassword="lKS72NMekwKpj8FqQjroN/nQCRKOR4m3tuTJEmLax7M=" mvn run tempPassword k6 npx k6 diff --git a/js/index.js b/js/index.js index 464b64ee13..f601db6c6d 100644 --- a/js/index.js +++ b/js/index.js @@ -1,5 +1,5 @@ - - function secret() { - var password = "j0FN/QQ=" + 9 + "MfuX" + 6 + "uQU=" + 2 + "dwoN" + 7; +// eslint-disable-next-line no-unused-vars + function secret() { + var password = "ZrrYmW0=" + 9 + "tVRa" + 6 + "wCw=" + 2 + "r4aQ" + 7; return password; } diff --git a/k8s/secret-challenge-deployment.yml b/k8s/secret-challenge-deployment.yml index 07070dcf81..cceedd6677 100644 --- a/k8s/secret-challenge-deployment.yml +++ b/k8s/secret-challenge-deployment.yml @@ -28,7 +28,7 @@ spec: runAsGroup: 2000 fsGroup: 2000 containers: - - image: jeroenwillemsen/wrongsecrets:1.15.0RC1-no-vault + - image: jeroenwillemsen/wrongsecrets:1.15.0RC2-no-vault imagePullPolicy: IfNotPresent name: secret-challenge ports: From fb174daf15133f2e57673b4df1ecdd10bbebb667 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Wed, 18 Nov 2026 09:26:37 +0000 Subject: [PATCH 12/17] [pre-commit.ci lite] apply automatic fixes --- js/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/index.js b/js/index.js index f601db6c6d..2052b4bcc3 100644 --- a/js/index.js +++ b/js/index.js @@ -1,5 +1,5 @@ -// eslint-disable-next-line no-unused-vars - function secret() { + + function secret() { var password = "ZrrYmW0=" + 9 + "tVRa" + 6 + "wCw=" + 2 + "r4aQ" + 7; return password; } From 72b5c947c6857a249f1a90c6f44d3e0d26f06706 Mon Sep 17 00:00:00 2001 From: Jeroen Willemsen Date: Wed, 18 Nov 2026 10:50:52 +0100 Subject: [PATCH 13/17] Revert to 1.15.0RC1-no-vault image for minikube tests The 1.15.0RC2-no-vault image does not exist on Docker Hub yet. Reverting to 1.15.0RC1-no-vault which was built and tested. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- k8s/secret-challenge-deployment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/secret-challenge-deployment.yml b/k8s/secret-challenge-deployment.yml index cceedd6677..07070dcf81 100644 --- a/k8s/secret-challenge-deployment.yml +++ b/k8s/secret-challenge-deployment.yml @@ -28,7 +28,7 @@ spec: runAsGroup: 2000 fsGroup: 2000 containers: - - image: jeroenwillemsen/wrongsecrets:1.15.0RC2-no-vault + - image: jeroenwillemsen/wrongsecrets:1.15.0RC1-no-vault imagePullPolicy: IfNotPresent name: secret-challenge ports: From 070a5c58142699217d29f72deda73e1388fb6599 Mon Sep 17 00:00:00 2001 From: Jeroen Willemsen Date: Wed, 18 Nov 2026 10:52:35 +0100 Subject: [PATCH 14/17] Add wait for sealed secret to be unsealed before deploying The workflow was creating the sealed-challenge48.json but not waiting for the Sealed Secrets controller to unseal it and create the actual Secret. This caused the deployment to fail because the challenge48secret Secret didn't exist yet when the pod was created. Added a 30-attempt loop with 2-second sleep to wait for the Secret to exist. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- .github/workflows/minikube-k8s-test.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/minikube-k8s-test.yml b/.github/workflows/minikube-k8s-test.yml index 8f83289768..d53ee5b547 100644 --- a/.github/workflows/minikube-k8s-test.yml +++ b/.github/workflows/minikube-k8s-test.yml @@ -57,6 +57,17 @@ jobs: kubectl create -f k8s/sealed-challenge48.json + # Wait for the sealed secret to be unsealed and the secret to be created + echo "Waiting for challenge48secret to be created by sealed-secrets controller..." + for i in {1..30}; do + if kubectl get secret challenge48secret > /dev/null 2>&1; then + echo "challenge48secret created" + break + fi + echo "Waiting for challenge48secret..." + sleep 2 + done + echo "Finishing Sealed Secrets setup" kubectl apply -f k8s/secrets-config.yml From bf89e3f5b0cbe145e3ca3a20d578633aa581e2b0 Mon Sep 17 00:00:00 2001 From: Jeroen Willemsen Date: Wed, 18 Nov 2026 11:02:57 +0100 Subject: [PATCH 15/17] quick update --- .github/workflows/minikube-k8s-test.yml | 85 ++++++++++++++++++++----- 1 file changed, 68 insertions(+), 17 deletions(-) diff --git a/.github/workflows/minikube-k8s-test.yml b/.github/workflows/minikube-k8s-test.yml index d53ee5b547..1f17fabf8b 100644 --- a/.github/workflows/minikube-k8s-test.yml +++ b/.github/workflows/minikube-k8s-test.yml @@ -33,82 +33,125 @@ jobs: run: | set -euo pipefail - kubectl apply -f k8s/workspace-psa.yml + echo "=== DEBUG: Starting deployment ===" + kubectl version --client --short + kubectl get nodes - echo "Setting up the Bitnami Sealed Secrets controller" + echo "=== Applying workspace-psa.yml ===" + kubectl apply -f k8s/workspace-psa.yml + echo "=== Setting up the Bitnami Sealed Secrets controller ===" kubectl apply \ -f https://github.com/bitnami-labs/sealed-secrets/releases/download/v0.27.0/controller.yaml - kubectl apply -f k8s/sealed-secret-controller.yaml kubectl apply -f k8s/main.key # Restart controller so the test key is picked up + echo "=== Restarting sealed-secrets-controller ===" kubectl delete pod \ -n kube-system \ -l name=sealed-secrets-controller \ --ignore-not-found # Wait for controller to come back + echo "=== Waiting for sealed-secrets-controller rollout ===" kubectl rollout status \ deployment/sealed-secrets-controller \ -n kube-system \ --timeout=120s + echo "=== Sealed-secrets-controller status ===" + kubectl get pods -n kube-system -l name=sealed-secrets-controller + echo "=== Creating sealed-challenge48.json ===" kubectl create -f k8s/sealed-challenge48.json # Wait for the sealed secret to be unsealed and the secret to be created - echo "Waiting for challenge48secret to be created by sealed-secrets controller..." + echo "=== Waiting for challenge48secret to be created ===" for i in {1..30}; do if kubectl get secret challenge48secret > /dev/null 2>&1; then - echo "challenge48secret created" + echo "✓ challenge48secret created" + kubectl get secret challenge48secret -o yaml | head -5 break fi - echo "Waiting for challenge48secret..." + echo "Waiting for challenge48secret... ($i/30)" sleep 2 done - echo "Finishing Sealed Secrets setup" - + echo "=== Applying configuration ===" kubectl apply -f k8s/secrets-config.yml + echo "✓ Applied secrets-config.yml" + kubectl get configmap secrets-file -o yaml | head -5 + kubectl apply -f k8s/secrets-secret.yml + echo "✓ Applied secrets-secret.yml" + kubectl get secret funnystuff -o yaml | head -5 + kubectl apply -f k8s/challenge33.yml + echo "✓ Applied challenge33.yml" + kubectl get secret challenge33 -o yaml | head -5 + + echo "=== Applying secret-challenge-deployment.yml ===" kubectl apply -f k8s/secret-challenge-deployment.yml + echo "✓ Applied secret-challenge-deployment.yml" + kubectl apply -f k8s/challenge53/secret-challenge53.yml - echo "Deploy wrongsecrets-llama app" + echo "✓ Applied challenge53.yml" + + echo "=== Deploying wrongsecrets-llama app ===" kubectl apply -f k8s/challenge74/wrongsecrets-llama-secret.yaml kubectl apply -f k8s/challenge74/wrongsecrets-llama-service.yaml kubectl apply -f k8s/challenge74/wrongsecrets-llama-deployment.yaml while [[ $(kubectl get pods -l app=challenge74-llama -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}') != "True" ]]; do echo "waiting for wrongsecrets-llama" && sleep 2 done - kubectl get pods -l app=challenge74-llama - kubectl logs deployment/challenge74-llama + echo "=== Llama pod status ===" + kubectl get pods -l app=challenge74-llama -o wide + kubectl logs deployment/challenge74-llama --tail=20 - name: Wait for application shell: bash run: | set -euo pipefail + echo "=== Waiting for secret-challenge rollout ===" kubectl rollout status \ deployment/secret-challenge \ - --timeout=180s + --timeout=180s || { + echo "=== ROLLOUT FAILED ===" + kubectl get pods -l app=secret-challenge -o wide + kubectl describe deployment secret-challenge + kubectl get events --sort-by=.lastTimestamp | tail -20 + exit 1 + } + echo "=== Waiting for secret-challenge pod to be ready ===" kubectl wait \ --for=condition=ready \ pod \ -l app=secret-challenge \ - --timeout=180s + --timeout=180s || { + echo "=== POD READY WAIT FAILED ===" + kubectl get pods -l app=secret-challenge -o wide + kubectl describe pods -l app=secret-challenge + kubectl get events --sort-by=.lastTimestamp | tail -20 + exit 1 + } + echo "=== Pod is ready, checking logs ===" + kubectl logs -l app=secret-challenge --tail=50 || true - name: Start port forwarding shell: bash run: | set -euo pipefail + echo "=== Getting pod name ===" POD=$(kubectl get pod \ -l app=secret-challenge \ -o jsonpath="{.items[0].metadata.name}") + echo "Forwarding pod: $POD" - echo "Forwarding pod $POD" + echo "=== Pod details ===" + kubectl get pod $POD -o wide + kubectl describe pod $POD | head -30 kubectl port-forward \ "$POD" \ @@ -119,19 +162,27 @@ jobs: echo $! > port-forward.pid # Wait until the application is actually reachable + echo "=== Waiting for application to be reachable ===" for i in {1..30}; do if curl --fail --silent --show-error \ http://localhost:8080/ > /dev/null; then - echo "Application is reachable" + echo "✓ Application is reachable" exit 0 fi - echo "Waiting for application..." + echo "Waiting for application... ($i/30)" sleep 2 done - echo "Application did not become reachable" + echo "=== APPLICATION NOT REACHABLE ===" + echo "Port forward log:" cat port-forward.log + echo "=== Pod status ===" + kubectl get pods -l app=secret-challenge -o wide + echo "=== Pod logs ===" + kubectl logs $POD --tail=100 || true + echo "=== Pod describe ===" + kubectl describe pod $POD || true exit 1 - name: Test challenges From 793b70309ed851d1cde17b36634463e88656dd78 Mon Sep 17 00:00:00 2001 From: Jeroen Willemsen Date: Wed, 18 Nov 2026 11:14:22 +0100 Subject: [PATCH 16/17] retry fixing worklfow --- .github/workflows/minikube-k8s-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/minikube-k8s-test.yml b/.github/workflows/minikube-k8s-test.yml index 1f17fabf8b..bd0bfd2913 100644 --- a/.github/workflows/minikube-k8s-test.yml +++ b/.github/workflows/minikube-k8s-test.yml @@ -34,7 +34,7 @@ jobs: set -euo pipefail echo "=== DEBUG: Starting deployment ===" - kubectl version --client --short + kubectl version --client kubectl get nodes echo "=== Applying workspace-psa.yml ===" From d45c2f0065f56bcd1847682f8c7a2540af3bcd0b Mon Sep 17 00:00:00 2001 From: Jeroen Willemsen Date: Wed, 18 Nov 2026 11:32:43 +0100 Subject: [PATCH 17/17] displaying found values first --- .github/workflows/minikube-k8s-test.yml | 67 ++++++++++++++++++++----- 1 file changed, 54 insertions(+), 13 deletions(-) diff --git a/.github/workflows/minikube-k8s-test.yml b/.github/workflows/minikube-k8s-test.yml index bd0bfd2913..9986a03a30 100644 --- a/.github/workflows/minikube-k8s-test.yml +++ b/.github/workflows/minikube-k8s-test.yml @@ -185,29 +185,70 @@ jobs: kubectl describe pod $POD || true exit 1 - - name: Test challenges + - name: Retrieve and display challenges shell: bash run: | set -euo pipefail + mkdir -p "$RUNNER_TEMP/spoil-responses" + for challenge in 5 6 7 33; do + response="$RUNNER_TEMP/spoil-responses/challenge-$challenge.html" + status="$RUNNER_TEMP/spoil-responses/challenge-$challenge.http" + result="$RUNNER_TEMP/spoil-responses/challenge-$challenge.exit" + : > "$response" + if curl --fail-with-body --silent --show-error --retry 5 --retry-delay 2 \ + --output "$response" --write-out '%{http_code}' \ + "http://localhost:8080/spoil/challenge-$challenge" > "$status"; then + printf '0\n' > "$result" + else + code=$? + printf '%s\n' "$code" > "$result" + fi + printf '\n=== challenge-%s: HTTP ' "$challenge" + cat "$status" + printf ', curl exit %s ===\n' "$(<"$result")" + cat "$response" || true + printf '\n' + done + - name: Test challenges + shell: bash + run: | + set -euo pipefail + failed=0 for challenge in 5 6 7 33; do - echo "Testing challenge-$challenge" - - if curl \ - --fail \ - --silent \ - --show-error \ - --retry 5 \ - --retry-delay 2 \ - "http://localhost:8080/spoil/challenge-$challenge" \ - | grep -q spoiler-answer - then + response="$RUNNER_TEMP/spoil-responses/challenge-$challenge.html" + result="$RUNNER_TEMP/spoil-responses/challenge-$challenge.exit" + if [[ -f "$result" ]] && [[ $(<"$result") == 0 ]] && grep -q spoiler-answer "$response"; then echo "spoil-challenge-$challenge works" else echo "ERROR: spoil-challenge-$challenge failed" - exit 1 + failed=1 fi done + exit "$failed" +# - name: Test challenges +# shell: bash +# run: | +# set -euo pipefail +# +# for challenge in 5 6 7 33; do +# echo "Testing challenge-$challenge" +# +# if curl \ +# --fail \ +# --silent \ +# --show-error \ +# --retry 5 \ +# --retry-delay 2 \ +# "http://localhost:8080/spoil/challenge-$challenge" \ +# | grep -q spoiler-answer +# then +# echo "spoil-challenge-$challenge works" +# else +# echo "ERROR: spoil-challenge-$challenge failed" +# exit 1 +# fi +# done - name: Test challenge 74 prompt injection (llama e2e) shell: bash