Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Red Hat Developer 8 min read How-to mediumAdept

Automate Spring 5.3.x CVE remediation with Lightwell

Spring Framework 5.3.x is end of life, and CVE-2025-41249 affects every release up to the final free 5.3.39, so upgrading within the line can't clear a security gate. A Tekton pipeline on OpenShift splits the dependency scan (live OSV.dev queries) from a policy gate. The gate either blocks the build with actionable guidance or swaps in Lightwell's binary-compatible remediated spring-core build. Practical gotchas include decoupling Spring Boot's single BOM/version property in pom.xml, and cosign 2.6 rejecting explicit Fulcio/Rekor/OIDC flags after TUF initialization during keyless signing. The setup adds SBOM ingestion, roxctl image checks and an Event-Driven Ansible rulebook that triggers remediation automatically from ACS violations.

Assumes: Maven dependency managementCI/CD pipelinesSpring Bootcontainer image signing basics

Related posts

  • Automate Lightwell updates with Mend Renovate

    Red Hat Developer mediumAdept

    Mend Renovate can automatically pull Lightwell's remediated open source library rebuilds into Java and Python projects by extending published presets that recognize Lightwell version suffixes (.rhlw for Maven, +rhlw_ local versions for Python). The java-remediated preset pins exact versions and only bumps to newer Lightwell rebuilds, while java-upgrade follows SemVer to newer .rhlw artifacts. An example renovate.json shows how to route lookups through an Artifactory or Nexus virtual repository, group Maven updates into one PR, and enable experimental OSV vulnerability alerts. Further steps include solid test coverage, automerge for drop-in rebuilds, and handling transitive dependencies.

  • CNCF Score project improved its security posture by joining the Docker-Sponsored Open Source Program

    Docker mediumAdept

    Score, a CNCF Sandbox project, hardened its container image supply chain by moving images to Docker Hub, adding Docker Scout PR comparisons that report CVEs, package changes and policy compliance, and switching base images to Docker Hardened Images. That switch removed 22 packages and 2 CVEs from the Node sample app. Releases now go through Docker's reusable github-builder workflow, which produces signed SLSA provenance and SBOMs via GitHub OIDC and signs its build cache. Docker Hub OIDC connections replace long-lived access tokens with short-lived per-workflow credentials. Before/after workflow YAML and a cosign verification command are included.

  • Our response to the TanStack npm supply chain attack

    OpenAI easyNovice

    Two OpenAI employee devices were compromised via the malicious TanStack npm package in the Mini Shai-Hulud supply chain attack, leading to credential-focused exfiltration from a limited set of internal repositories that held code-signing certificates for iOS, macOS and Windows apps. OpenAI isolated systems, revoked sessions, rotated credentials, blocked new notarizations with the old certificate, and is rotating signing certificates, which requires macOS users to update apps before the revocation deadline (extended to June 26, 2026). The affected devices had not yet received hardening controls rolled out after the Axios incident, including package manager minimumReleaseAge settings and provenance validation, which would have blocked the malicious package. No customer data, IP or signed malware was found.

  • Defending Your Software Supply Chain: What Every Engineering Team Should Do Now

    Docker mediumAdept

    Recent supply chain compromises (the axios npm hijack attributed to Lazarus Group, the TeamPCP campaign via Trivy's GitHub Action, Shai-Hulud, GlassWorm) share one root cause: implicit trust in mutable tags, broad long-lived tokens and unsandboxed runners. The recommended defenses start with pinning Actions to commit SHAs and images to digests, using lock files with npm ci, and applying 3-day cooldowns on new dependency versions, since most malicious releases live only hours. Further layers are short-lived scoped CI credentials, avoiding pull_request_target, artifact proxies and build-time SBOMs, plus canary tokens and credential cleanup on developer machines. AI coding agents should run in microVM sandboxes and MCP servers should be governed. Many recommendations are paired with Docker products such as Hardened Images, Scout, Sandboxes and MCP Gateway.

  • Secure by Design: A Proactive Testing Approach with Testcontainers, Docker Scout, and Hardened Images

    Docker mediumAdept

    Swapping a Node.js API's node:22-slim base image for a Docker Hardened Image (distroless dhi-node:22) eliminated all critical and high CVEs flagged by Docker Scout, including Debian 12's CVE-2025-6020, while avoiding the musl compatibility risk of switching to Alpine. The walkthrough builds images with SBOM and provenance attestations via buildx, scans and compares them with Docker Scout, and uses -dev and runtime DHI variants in a multi-stage Dockerfile. The image shrank from 80 MB and 427 packages to 41 MB and 123 packages. Testcontainers-based API tests against real Postgres confirm the app still works in under 20 seconds, and VEX attestations can be exported for external scanners like Grype or Trivy.

The quest for software engineering knowledge.

Look:
Layout: