Skip to content

Fix gRPC-Go security alert in container-build sample - #1990

Merged
Jose Perez Rodriguez (joperezr) merged 3 commits into
mainfrom
joperezr-grpc-security-update
Sep 29, 2026
Merged

Jose Perez Rodriguez (joperezr) merged 3 commits into
mainfrom
joperezr-grpc-security-update

Conversation

@joperezr

Copy link
Copy Markdown
Member

Summary

Upgrade google.golang.org/grpc from v1.83.1 to v1.83.2 in samples/container-build/ginapp to address the CG alert for a denial of service in gRPC-Go xDS servers when a request omits both :authority and Host headers.

  • Use the patched release on the existing 1.83 release line rather than taking a broader upgrade.
  • Update golang.org/x/net to v0.58.0, golang.org/x/crypto to v0.55.0, and golang.org/x/text to v0.41.0, as required by the patched gRPC-Go module.
  • Regenerate go.sum with Go tooling, removing the superseded checksums.

This is a gRPC-Go library update, not a Go toolchain update. The existing go 1.25.0 directive and Dockerfiles are unchanged.

Security context

The sample uses gRPC for outbound OpenTelemetry export and does not configure an xds.NewGRPCServer(), so the described server-side crash path does not appear reachable in this sample. Updating the dependency nevertheless removes the affected version rather than suppressing the CG alert.

Upstream v1.83.2 release notes identify the missing-header fix; implementation and regression coverage are in grpc/grpc-go#9365.

Validation

Using Go 1.25.4, matching the production Dockerfile's default toolchain:

  • go mod verify passed.
  • go mod tidy -diff produced no changes.
  • go list -m confirmed gRPC-Go v1.83.2 and the required transitive versions.
  • The upstream missing-authority regression test passed against the sample's selected dependencies:
    go test -mod=readonly google.golang.org/grpc/internal/transport -run '^Test/HeadersHTTPStatusGRPCStatus/Missing_authority_and_host_header_grpc$' -count=1 -v
    
  • git diff --check passed.

Existing build limitation: go test -mod=readonly ./... and the production-style Linux cross-build fail because otelslog v0.18.0 references APIs such as log.KeyValue and log.Value that are absent from the selected OpenTelemetry log module. Running the sample tests from an isolated, unchanged copy of baseline commit 0c4eab9 reproduces the same compilation errors with gRPC-Go v1.83.1. This pre-existing OpenTelemetry compatibility issue is intentionally outside this focused security fix.

Upgrade gRPC-Go to v1.83.2 and refresh required transitive dependencies and module checksums.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: ef2c3723-005d-41b3-9a76-38d81a242d4d
Copilot AI balanced review requested due to automatic review settings September 29, 2026 17:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The focused dependency update matches upstream v1.83.2 requirements and introduces no unresolved issues.

Review effort: Balanced
Findings: None

What changed in this PR

Updates gRPC-Go to the patched v1.83.2 release for the container-build Gin sample.

Changes:

  • Upgrades gRPC-Go and required transitive dependencies.
  • Regenerates module checksums.
File Description
samples/​container-build/​ginapp/​go.mod Updates dependency versions.
samples/​container-build/​ginapp/​go.sum Updates corresponding checksums.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@joperezr
Jose Perez Rodriguez (joperezr) merged commit 66e88e7 into main Sep 29, 2026
4 checks passed
@joperezr
Jose Perez Rodriguez (joperezr) deleted the joperezr-grpc-security-update branch September 29, 2026 18:18
David Pine (IEvangelist) added a commit that referenced this pull request Oct 2, 2026
* Upgrade all samples to Aspire 13.6 prerelease

Align SDK, hosting, client, testing, CLI and TypeScript pins with 13.6.0-preview.1.26474.10. Add the public Aspire feed, update required compatibility dependencies, and cover standalone service projects in the aggregate build.

Co-authored-by: Copilot App <[email protected]>

* Update samples to the pinned Aspire 13.6 staging build

Use 13.6.0 packages from the commit-specific DARC feed and verify the matching immutable CLI archives across contributor, CI, and devcontainer installs.

Co-authored-by: Copilot App <[email protected]>

* Retry interrupted staging CLI downloads

Retry curl partial-transfer failures with bounded network timeouts. Verified recovery using a local HTTP response truncated before its declared Content-Length.

Co-authored-by: Copilot App <[email protected]>

* Add terminal basics, automation, and custom SQL REPL samples (#1983)

* Add C# and TypeScript terminal basics samples with Slumber

Demonstrate interactive REST requests and authenticated Redis REPL sessions with standalone notes APIs, Vim-enabled Slumber containers, and walkthroughs.

Co-authored-by: Copilot App <[email protected]>

* Add terminal automation and custom docked SQL REPL samples

Co-authored-by: Copilot App <[email protected]>

* Confirm terminal automation restart and report completion

Highlight the walkthrough action to avoid stale console overflow menu state in the pinned dashboard.

Co-authored-by: Copilot App <[email protected]>

* Rebase terminal samples onto 13.6 upgrade and document compatibility blocker

Isolate sample NuGet source mappings from the new parent configuration and clarify the Node.js prerequisite. Preserve working terminal pins because the published 13.6 build lacks Redis REPL APIs.

Co-authored-by: Copilot App <[email protected]>

* Align terminal samples with the staged Aspire 13.6 build

Pin the build-specific DARC feed for NuGet and CLI restores, retain Redis REPL support, and use the repository's matching staged installer.

Co-authored-by: Copilot App <[email protected]>

---------

Co-authored-by: Copilot App <[email protected]>

* Add Spring Petclinic Java sample with TypeScript AppHost (#1974)

* Add Spring Petclinic Java sample

Add a TypeScript AppHost sample that orchestrates an Angular frontend, Spring Boot REST API, and PostgreSQL using the official Aspire Java integration. Extend CI to install Java 21 and validate the Maven project.

Co-authored-by: Copilot <[email protected]>

Copilot-Session: 55618b2d-c097-401c-912c-7066bd177cc7

* Add Spring Petclinic screenshot

Show the running Angular frontend at the top of the sample README.

Co-authored-by: Copilot <[email protected]>

Copilot-Session: 55618b2d-c097-401c-912c-7066bd177cc7

* Update Petclinic preview package feed

Pin the CLI, SDK, and integrations to the current coherent preview build and route daily CLI restores through the live staging aggregate feed.

Co-authored-by: Copilot <[email protected]>

Copilot-Session: 55618b2d-c097-401c-912c-7066bd177cc7

* Add Scalar and OpenTelemetry to Spring Petclinic

Preserve the Angular and Petclinic features while adding generated API documentation, a dashboard reference link, and a Maven-provisioned Java agent. Cover the existing API contracts and documentation with regression tests.

Co-authored-by: Copilot App <[email protected]>

---------

Co-authored-by: David Pine <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 55618b2d-c097-401c-912c-7066bd177cc7

* Keep Aspire channel restores on the internal Azure package mirror

Set the pinned CLI's NuGet service-index override only for internal builds. Verified a fresh TypeScript SDK restore downloaded all 97 packages from the Azure staging feed or mirror, with no NuGet.org package fallback.

Co-authored-by: Copilot App <[email protected]>

* Refresh Aspire 13.6 dashboard screenshots

Co-authored-by: Copilot App <[email protected]>

* Bump the grpc group with 4 updates (#1986)

Bumps Grpc.AspNetCore from 2.83.0 to 2.84.0
Bumps Grpc.AspNetCore.HealthChecks from 2.83.0 to 2.84.0
Bumps Grpc.HealthCheck from 2.83.0 to 2.84.0
Bumps Grpc.Net.ClientFactory from 2.83.0 to 2.84.0

---
updated-dependencies:
- dependency-name: Grpc.AspNetCore
  dependency-version: 2.84.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: grpc
- dependency-name: Grpc.AspNetCore.HealthChecks
  dependency-version: 2.84.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: grpc
- dependency-name: Grpc.HealthCheck
  dependency-version: 2.84.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: grpc
- dependency-name: Grpc.Net.ClientFactory
  dependency-version: 2.84.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: grpc
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Build(deps): Bump webpack-dev-middleware (#1991)

Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 8.0.3 to 8.3.0.
- [Release notes](https://github.com/webpack/webpack-dev-middleware/releases)
- [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/main/CHANGELOG.md)
- [Commits](webpack/webpack-dev-middleware@v8.0.3...v8.3.0)

---
updated-dependencies:
- dependency-name: webpack-dev-middleware
  dependency-version: 8.3.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Build(deps): Bump the react-core group across 1 directory with 2 updates (#1969)

Bumps the react-core group with 2 updates in the /samples/aspire-with-javascript/AspireJavaScript.React directory: [react](https://github.com/react/react/tree/HEAD/packages/react) and [react-dom](https://github.com/react/react/tree/HEAD/packages/react-dom).


Updates `react` from 19.2.8 to 19.3.0
- [Release notes](https://github.com/react/react/releases)
- [Changelog](https://github.com/react/react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/react/react/commits/v19.3.0/packages/react)

Updates `react-dom` from 19.2.8 to 19.3.0
- [Release notes](https://github.com/react/react/releases)
- [Changelog](https://github.com/react/react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/react/react/commits/v19.3.0/packages/react-dom)

---
updated-dependencies:
- dependency-name: react
  dependency-version: 19.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: react-core
- dependency-name: react-dom
  dependency-version: 19.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: react-core
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fix gRPC-Go security alert in container-build sample (#1990)

Upgrade gRPC-Go to v1.83.2 and refresh required transitive dependencies and module checksums.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: ef2c3723-005d-41b3-9a76-38d81a242d4d

* Build(deps-dev): Bump the vite-tooling group (#1993)

Bumps the vite-tooling group in /samples/aspire-with-javascript/AspireJavaScript.Vite with 2 updates: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) and [eslint](https://github.com/eslint/eslint).


Updates `@types/node` from 26.6.1 to 26.6.2
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `eslint` from 10.10.0 to 10.11.0
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](eslint/eslint@v10.10.0...v10.11.0)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 26.6.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: vite-tooling
- dependency-name: eslint
  dependency-version: 10.11.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: vite-tooling
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Build(deps-dev): Bump brace-expansion in /samples/vite-yarp-static (#1995)

Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 5.0.9 to 5.0.12.
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](juliangruber/brace-expansion@v5.0.9...v5.0.12)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 5.0.12
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Build(deps-dev): Bump brace-expansion in /samples/golang-api (#1996)

Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 5.0.9 to 5.0.12.
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](juliangruber/brace-expansion@v5.0.9...v5.0.12)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 5.0.12
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Build(deps-dev): Bump brace-expansion (#2000)

Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 5.0.9 to 5.0.12.
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](juliangruber/brace-expansion@v5.0.9...v5.0.12)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 5.0.12
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Build(deps-dev): Bump brace-expansion in /samples/aspire-with-node (#2001)

Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 5.0.9 to 5.0.12.
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](juliangruber/brace-expansion@v5.0.9...v5.0.12)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 5.0.12
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Build(deps): Bump brace-expansion in /samples/aspire-with-node/frontend (#2002)

Bumps  and [brace-expansion](https://github.com/juliangruber/brace-expansion). These dependencies needed to be updated together.

Updates `brace-expansion` from 1.1.18 to 1.1.21
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](juliangruber/brace-expansion@v1.1.18...v1.1.21)

Updates `brace-expansion` from 2.1.4 to 2.1.7
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](juliangruber/brace-expansion@v1.1.18...v1.1.21)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 1.1.21
  dependency-type: indirect
- dependency-name: brace-expansion
  dependency-version: 2.1.7
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Build(deps): Bump brace-expansion in /samples/aspire-with-node/api (#2003)

Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 2.1.4 to 2.1.7.
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](juliangruber/brace-expansion@v2.1.4...v2.1.7)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 2.1.7
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Build(deps-dev): Bump brace-expansion (#2004)

Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 5.0.9 to 5.0.12.
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](juliangruber/brace-expansion@v5.0.9...v5.0.12)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 5.0.12
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Build(deps-dev): Bump brace-expansion (#2005)

Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 5.0.9 to 5.0.12.
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](juliangruber/brace-expansion@v5.0.9...v5.0.12)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 5.0.12
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Use released Aspire 13.6.0 and NuGet.org packages

Replace the retired staging feed and installer with the official release setup. Preserve the internal Azure mirror, update the Java integration to its accompanying published preview, and remove obsolete terminal flags and staging documentation.

Co-authored-by: Copilot App <[email protected]>

* Address review feedback on sample safety and documentation

Remove the unnecessary Petclinic proxy TLS bypass, clarify local-demo boundaries in code and READMEs, and trim staging and internal-feed details from the root README.

Co-authored-by: Copilot App <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Mitch Denny <[email protected]>
Co-authored-by: David Pine <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jose Perez Rodriguez <[email protected]>
Co-authored-by: Damian Edwards <[email protected]>
Copilot-Session: 55618b2d-c097-401c-912c-7066bd177cc7
Copilot-Session: ef2c3723-005d-41b3-9a76-38d81a242d4d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants