This repository was archived by the owner on Jul 7, 2026. It is now read-only.
Repository navigation
Conversation
Upgrade checkout, frontend, product-catalog, and shipping to Go 1.26 with google.golang.org/grpc v1.79.3, golang.org/x/net v0.56.0, golang.org/x/crypto v0.53.0, and golang.org/x/oauth2 v0.36.0. Refresh the remaining module graph while retaining the existing SignalFx tracing integration. Move all four images to Go 1.26.4 and Alpine 3.24, verify grpc-health-probe v0.4.52 by SHA-256, and run the final containers as an unprivileged user. Add the current gRPC health List contract and initialize tracing in the product-catalog integration test. Covers VULN-89471, VULN-89323, and VULN-89321 plus 36 Dependabot alerts across the four modules. Verified with go test ./... for every module, govulncheck ./... reporting no vulnerabilities, and successful Docker builds for all four services.
Move currencyservice from Node 16 to Node 24.18.0 and regenerate the npm 11 lockfile. Upgrade grpc-js to 1.14.4, proto-loader to 0.8.1, protobufjs to 7.6.5, @protobufjs/utf8 to 1.1.2, and all transitive lint dependencies above their advisory floors. Migrate OpenTelemetry 0.18 APIs to the current 2.9 SDK and 0.220 instrumentation packages while retaining Zipkin export and B3 multi-header propagation. Modernize Pino trace correlation and add built-in Node tests for currency normalization and conversion. Harden the image with Node 24 on Alpine 3.24, npm ci, verified grpc-health-probe v0.4.52, production-only dependencies, and the unprivileged node user. Covers VULN-89387, VULN-89375, VULN-89370, and VULN-89339 plus 27 Dependabot alerts. Verified with node --test, semistandard, npm audit reporting zero vulnerabilities, a successful Docker build, and a live gRPC health check returning SERVING.
Move paymentservice from Node 16 to Node 24.18.0 and regenerate the npm 11 lockfile. Upgrade grpc-js to 1.14.4, proto-loader to 0.8.1, protobufjs to 7.6.5, and @protobufjs/utf8 to 1.1.2 while removing vulnerable legacy UUID, lodash, tmp, minimist, and related transitives. Migrate OpenTelemetry 0.18 APIs to the current 2.9 SDK and 0.220 instrumentation packages, retain Zipkin/B3 behavior, modernize Pino trace correlation, use node:crypto randomUUID, and make manual tracing safe when no inbound span exists. Add a built-in Node charge test. Harden the image with Node 24 on Alpine 3.24, npm ci, verified grpc-health-probe v0.4.52, production-only dependencies, and the unprivileged node user. Covers VULN-89372, VULN-89370, and VULN-89336 plus 33 Dependabot alerts. Verified with node --test, semistandard, npm audit reporting zero vulnerabilities, a successful Docker build, and a live gRPC health check returning SERVING.
Upgrade the email service to Python 3.13.14 on Alpine 3.24 and regenerate a hash-locked dependency graph with current gRPC, OpenTelemetry, Jinja, requests, urllib3, certifi, and protobuf releases. Regenerate protobuf bindings for protobuf 7, replace the custom health implementation with grpcio-health-checking, and add a focused service test. Build wheels in a separate stage, verify the downloaded health probe checksum, and run the final image as a non-root user. Validated with unittest, pip check, pip-audit (zero known vulnerabilities), a clean Docker build, and a live gRPC SERVING probe. Addresses VULN-89443.
Move recommendationservice to Python 3.13.14 on Alpine 3.24 and regenerate a fully hash-locked graph with current gRPC, OpenTelemetry, protobuf, requests, urllib3, certifi, and logging packages. Migrate the pre-1.0 OpenTelemetry API to the supported Zipkin exporter and B3 propagator, remove the obsolete local propagation workaround, regenerate protobuf bindings, and use grpcio-health-checking's maintained health service. Inject the catalog stub for focused service testing and harden the multi-stage image with a checksum-verified health probe and non-root runtime user. Validated with unittest, pip check, pip-audit (zero known vulnerabilities), a clean Docker build, and a live gRPC SERVING probe. Addresses VULN-89443.
Upgrade Locust from 2.4.1 to 2.44.4 and regenerate a Python 3.13 hash-locked graph with patched Click, Werkzeug, Flask, certifi, gevent, requests, and urllib3 releases. Remove the obsolete gevent build workaround, install verified sources in a dedicated build stage, run the final Alpine 3.24 image as a non-root user, and normalize the shell entrypoint for Linux checkouts. Validated with Python bytecode compilation, Locust 2.44.4 startup, pip check, pip-audit (zero known vulnerabilities), a clean Docker build, and a container-to-container HTTP/Locust smoke test with one spawned user. Addresses VULN-89447, VULN-89442, VULN-89440, and VULN-89319.
Upgrade adservice from Java 8/Gradle 6 to Java 21/Gradle 8.14.3, verify the Gradle distribution checksum, and lock the complete resolved dependency graph. Move to Log4j 2.26.1, gRPC Java 1.82.1, protobuf 4.35.1, current Google common protos, and Jackson 2.22.0 while replacing unshaded Netty/native overrides with grpc-netty-shaded. Refresh the Splunk OpenTelemetry Java agent to v2.29.0 using its GitHub-published digest, checksum the current gRPC health probe, and run a minimal JRE image as a non-root user. Validated with Gradle dependency resolution, protobuf generation, check/installDist, clean Docker builds, structured JSON log inspection, a live gRPC SERVING probe, and a successful GetAds RPC. Addresses VULN-89378.
Move the cart service and its test project to .NET 10, refresh protobuf, gRPC health, Redis, and test dependencies, and commit NuGet lock files for reproducible restores. Remove unused code-generation and framework package references, and make Redis payload conversion explicit for the updated APIs. Build the runtime from checksum-pinned Splunk OpenTelemetry and gRPC health probe artifacts, run it as a dedicated non-root user, and make the integration-test endpoint configurable for containerized validation. Validated with locked restore/build, NuGet vulnerable-package scans for application and tests (zero findings), Docker image build, live health probe, and all three Redis-backed end-to-end tests.
Resolve VULN-89294 by requiring TLS 1.3 credentials on checkout, product catalog, and shipping gRPC servers. Update checkout, frontend, and recommendation callers to trust an explicit internal CA and verify service DNS identities while retaining plaintext only for services outside the ticket scope. Mount per-service Kubernetes TLS Secrets and a public CA ConfigMap, switch health probes to verified TLS, and add Docker-backed certificate generation without committing private keys. Add trusted-handshake tests and convert the product catalog integration test to TLS. Validated with all affected Go tests, focused TLS handshakes, go vet (excluding pre-existing protobuf copylocks), recommendation unit tests, five image builds, parsed Kubernetes/Skaffold YAML, live CA-verified health probes, a real recommendation-to-catalog RPC, and plaintext rejection on all three servers.
Move the final adservice image from the Temurin Alpine 3.23 JRE to the Ubuntu 24.04 JRE after the repository-wide image scan found fixable HIGH p11-kit vulnerabilities in the Alpine base. Keep the Alpine builder isolated from the shipped runtime and preserve the Kubernetes-configured Splunk Java agent path. Validated with a clean image rebuild, non-root startup with the Splunk OpenTelemetry Java agent enabled, live gRPC SERVING probe, and network-disabled Trivy v0.72.0 scan reporting zero fixable HIGH/CRITICAL findings across the OS, application JARs, agent, and health probe.
Add committed Git attributes that normalize repository text files and check them out with LF on every platform, while retaining CRLF working-tree endings for Windows batch and command scripts. Apply the one-time normalization to the existing Gradle batch wrapper. An end-of-line-insensitive diff confirms there are no semantic script changes.
Rely on the committed .gitattributes LF policy for executable shell scripts instead of rewriting Gradle and loadgenerator entrypoints during image builds. Keep only the executable-bit setup required inside the Linux images. Validated by confirming both scripts contain zero CRLF sequences, rebuilding the adservice and loadgenerator images, executing Gradle during the adservice build, and running the loadgenerator entrypoint.
Adopt the latest Gradle 8.14 patch release so the ad-service build receives the repository-resolution security fixes and subsequent correctness fixes shipped after 8.14.3. Pin the official distribution SHA-256 to keep wrapper downloads reproducible. Verified with a clean Docker build running Gradle dependency resolution, check, and installDist.
Upgrade cloud.google.com/go/profiler from 0.5.0 to 0.6.0 and google.golang.org/grpc from 1.79.3 to 1.82.0 across checkout, frontend, product catalog, and shipping. Regenerate each go.sum with Go 1.26.4. Verified every affected package with go test ./... and built all four production Docker images successfully.
Promote the StackExchange.Redis framework dependencies to explicit 10.0.9 references so NuGet does not retain the older lowest-compatible 10.0.5 releases. Regenerate application and test lock files. Verified the locked graph with the .NET 10 SDK, ran the cart-service tests, built the production Docker image, and confirmed dotnet list reports no remaining updates.
There was a problem hiding this comment.
Pull request overview
This PR focuses on remediating reported vulnerabilities across the microservices demo by bumping runtimes and dependencies, hardening container images, and introducing internal gRPC TLS (incl. TLS-aware health probes) for selected services.
Changes:
- Upgraded runtimes and refreshed locked dependency graphs across Go, Node.js, Python, Java (Gradle), and .NET services.
- Introduced internal gRPC TLS for checkout/product-catalog/shipping, including client-side CA verification and Kubernetes probe updates.
- Hardened Docker images (multi-stage builds, non-root users, production-only installs, and SHA-256 verification for downloaded artifacts).
Reviewed changes
Copilot reviewed 71 out of 79 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/shippingservice/tls.go | Adds server-side TLS credential loader for gRPC. |
| src/shippingservice/main.go | Enables gRPC TLS credentials and extends health handling. |
| src/shippingservice/go.mod | Bumps Go version and dependency versions. |
| src/shippingservice/Dockerfile | Updates Go/Alpine base, adds SHA-verified grpc_health_probe, non-root runtime. |
| src/recommendationservice/requirements.in | Updates Python dependency pins (gRPC/OTel/etc.). |
| src/recommendationservice/recommendation_server.py | Updates OTel Zipkin exporter + adds TLS channel to product catalog + health servicer changes. |
| src/recommendationservice/recommendation_server_test.py | Adds unit test for recommendation filtering logic. |
| src/recommendationservice/fixed_propagator.py | Removes custom propagator (replaced by standard B3). |
| src/recommendationservice/Dockerfile | Moves to multi-stage wheel build, adds non-root runtime + SHA-verified health probe. |
| src/recommendationservice/demo_pb2_grpc.py | Regenerates gRPC stubs for newer grpcio. |
| src/productcatalogservice/tls.go | Adds server-side TLS credential loader for gRPC. |
| src/productcatalogservice/server.go | Enables TLS credentials for the gRPC server and updates run signature. |
| src/productcatalogservice/server_test.go | Updates tests to use TLS transport credentials. |
| src/productcatalogservice/go.mod | Bumps Go version and dependency versions. |
| src/productcatalogservice/Dockerfile | Updates Go/Alpine base, adds SHA-verified grpc_health_probe, non-root runtime. |
| src/paymentservice/tracing.js | Migrates OTel tracing setup to newer SDK packages and B3 propagator config. |
| src/paymentservice/server.js | Updates logging span integration for newer OTel API usage + minor style adjustments. |
| src/paymentservice/package.json | Updates deps, adds Node >=24 engines, switches tests to node --test. |
| src/paymentservice/index.js | Small env access cleanup. |
| src/paymentservice/Dockerfile | Updates Node/Alpine base, locks prod deps via npm ci, non-root runtime, SHA-verified probe. |
| src/paymentservice/charge.test.js | Adds unit test for charge behavior (UUID format). |
| src/paymentservice/charge.js | Replaces uuid dependency with crypto.randomUUID and updates OTel span usage. |
| src/loadgenerator/requirements.in | Upgrades locust/urllib3 pins. |
| src/loadgenerator/Dockerfile | Updates Python base, moves to multi-stage install, non-root runtime. |
| src/frontend/tls.go | Adds TLS client credentials loader with CA + server-name verification. |
| src/frontend/tls_test.go | Adds test asserting TLS client validates trusted server cert. |
| src/frontend/main.go | Uses TLS selectively for service connections; logging format tweak. |
| src/frontend/go.mod | Bumps Go version and dependency versions. |
| src/frontend/Dockerfile | Updates Go/Alpine base, adds SHA-verified grpc_health_probe, non-root runtime. |
| src/emailservice/requirements.in | Updates Python dependency pins (gRPC/OTel/etc.). |
| src/emailservice/email_server.py | Switches to standard gRPC health servicer; drops duplicate custom health code. |
| src/emailservice/email_server_test.py | Adds unit test for SendOrderConfirmation response type. |
| src/emailservice/Dockerfile | Moves to multi-stage wheel build, adds non-root runtime + SHA-verified health probe. |
| src/emailservice/demo_pb2_grpc.py | Regenerates gRPC stubs for newer grpcio. |
| src/currencyservice/tracing.js | Migrates OTel tracing setup to newer SDK packages and B3 propagator config. |
| src/currencyservice/server.test.js | Adds unit tests for carry/convert logic. |
| src/currencyservice/server.js | Improves logging span integration; exports functions and guards main execution for testing. |
| src/currencyservice/package.json | Updates deps, adds Node >=24 engines, switches tests to node --test. |
| src/currencyservice/Dockerfile | Updates Node/Alpine base, locks prod deps via npm ci, non-root runtime, SHA-verified probe. |
| src/checkoutservice/tls.go | Adds TLS server/client credential helpers and required-env utility. |
| src/checkoutservice/tls_test.go | Adds test asserting TLS client validates trusted server cert. |
| src/checkoutservice/main.go | Enables gRPC TLS, introduces dial helper for TLS/non-TLS outbound calls, extends health handling. |
| src/checkoutservice/go.mod | Bumps Go version and dependency versions. |
| src/checkoutservice/Dockerfile | Updates Go/Alpine base, adds SHA-verified grpc_health_probe, non-root runtime. |
| src/cartservice/tests/packages.lock.json | Adds locked NuGet dependency graph for tests. |
| src/cartservice/tests/CartServiceTests.cs | Makes test server address configurable via env var. |
| src/cartservice/tests/cartservice.tests.csproj | Upgrades to net10 + newer test packages; enables restore lock files. |
| src/cartservice/packages.lock.json | Adds locked NuGet dependency graph for service. |
| src/cartservice/Dockerfile | Updates to .NET 10, restores in locked mode, adds SHA-verified probe and OTel instrumentation, non-root runtime. |
| src/cartservice/cartstore/RedisCartStore.cs | Adjusts protobuf parsing to handle RedisValue to byte[] conversion. |
| src/cartservice/cartservice.csproj | Upgrades to net10 + updates package versions; enables restore lock files. |
| src/adservice/src/main/java/hipstershop/AdServiceClient.java | Removes Nullable annotation from args default helper signature. |
| src/adservice/gradlew.bat | Normalizes line endings/formatting. |
| src/adservice/gradle/wrapper/gradle-wrapper.properties | Updates Gradle wrapper to 8.14.5 with sha256 sum. |
| src/adservice/gradle.lockfile | Adds Gradle dependency lock file. |
| src/adservice/Dockerfile | Upgrades to Java 21, hardens image, adds SHA-verified javaagent + probe, non-root runtime. |
| src/adservice/build.gradle | Updates plugins/toolchain/deps and enables dependency locking. |
| skaffold.yaml | Adds generated gRPC TLS manifest to deploy set. |
| kubernetes-manifests/shippingservice.yaml | Adds TLS env/volumes and TLS-aware grpc_health_probe usage. |
| kubernetes-manifests/recommendationservice.yaml | Mounts gRPC CA and sets GRPC_TLS_CA for TLS client. |
| kubernetes-manifests/README.md | Documents local TLS generation workflow and warnings. |
| kubernetes-manifests/productcatalogservice.yaml | Adds TLS env/volumes and TLS-aware grpc_health_probe usage. |
| kubernetes-manifests/frontend.yaml | Mounts gRPC CA and sets GRPC_TLS_CA for TLS clients. |
| kubernetes-manifests/checkoutservice.yaml | Adds TLS env/volumes and TLS-aware grpc_health_probe usage. |
| hack/generate-grpc-tls.sh | Adds script to generate local CA + short-lived service certs and emit k8s manifest. |
| hack/generate-grpc-tls.ps1 | Adds Windows-friendly wrapper using Docker to run the TLS generation script. |
| .gitignore | Ignores generated TLS manifest and local vuln JSON. |
| .gitattributes | Adds LF normalization with CRLF for Windows scripts. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Use grpc.NewClient for non-blocking client construction and remove the deprecated, ineffective WithTimeout option. This preserves the frontend's existing startup behavior while aligning with grpc-go 1.82 guidance. Verified with go test ./... and a successful production Docker image build.
Correct the shipOrder connection error so logs name the shipping service instead of the unrelated email service. Verified with go test ./... for checkoutservice.
Replace the obsolete Node-based Skaffold action with checksum-verified Skaffold 2.23.0 and kubectl 1.26.2 binaries, and update checkout to v7. Generate the intentionally ignored gRPC TLS manifest before deployment so a clean Actions checkout satisfies the Skaffold manifest list. The newer Skaffold release also supports the ADD --checksum directives used by the hardened Dockerfiles. Validated workflow YAML, certificate generation from a clean fixture, binary checksum verification, and skaffold diagnose across all configured build contexts.
Upgrade helm/kind-action from v1.8.0 to v1.14.0 so the cluster setup action runs natively on Node 24 instead of relying on GitHub's forced compatibility mode for deprecated Node 20 actions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Vulnerability remediation summary and testing
Testing was performed locally with Docker Desktop on Windows. Language toolchains and service dependencies were run inside the pinned Docker images used by the project.
Summary of changes
Build and test coverage
./gradlew check installDistfor the Java ad service with Gradle 8.14.5.go test ./...for checkout, frontend, product catalog, and shipping.dotnet list package --outdated --include-transitivereported no remaining updates.Security scanning
End-to-end smoke test
Temporary test containers, the Docker network, and the TLS volume were removed after testing.