Skip to content

Fix: Resolve CVEs by updating Go, base images, and dependencies#415

Open
Lavanya-Polipalli wants to merge 1 commit intoapigee:mainfrom
Lavanya-Polipalli:main
Open

Fix: Resolve CVEs by updating Go, base images, and dependencies#415
Lavanya-Polipalli wants to merge 1 commit intoapigee:mainfrom
Lavanya-Polipalli:main

Conversation

@Lavanya-Polipalli
Copy link

@Lavanya-Polipalli Lavanya-Polipalli commented Feb 17, 2026

Fixes b/386210486

@google-cla
Copy link

google-cla bot commented Feb 17, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@Lavanya-Polipalli Lavanya-Polipalli changed the title x(build): Resolve CVEs by updating Go, base images, and dependencies Fix: Resolve CVEs by updating Go, base images, and dependencies Feb 17, 2026
@Lavanya-Polipalli Lavanya-Polipalli force-pushed the main branch 3 times, most recently from 7f1adc4 to 1f57d8e Compare February 19, 2026 12:39
yadav
yadav previously approved these changes Mar 2, 2026
@KyleWiese
Copy link
Collaborator

Please fix the Build / Test and Cover workflow:

/home/runner/work/apigee-remote-service-envoy/apigee-remote-service-envoy/go.mod:3: invalid go version '1.24.0': must match format 1.23
/home/runner/work/apigee-remote-service-envoy/apigee-remote-service-envoy/go.mod:5: unknown directive: toolchain

@codecov
Copy link

codecov bot commented Mar 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79%. Comparing base (009c8e2) to head (c0b935d).
⚠️ Report is 2 commits behind head on main.

❗ There is a different number of reports uploaded between BASE (009c8e2) and HEAD (c0b935d). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (009c8e2) HEAD (c0b935d)
2 1
Additional details and impacted files
@@         Coverage Diff          @@
##           main   #415    +/-   ##
====================================
- Coverage    89%    79%   -10%     
====================================
  Files         9     12     +3     
  Lines       768    981   +213     
====================================
+ Hits        680    769    +89     
- Misses       46    180   +134     
+ Partials     42     32    -10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Lavanya-Polipalli Lavanya-Polipalli force-pushed the main branch 2 times, most recently from 8382543 to bae29ab Compare March 16, 2026 20:09
server/util.go Outdated
for i, e := range k.ListValue.Values {
s[i] = decodeValue(e)
}
for i, e := range k.ListValue.Values { s[i] = decodeValue(e) } // Line 57-58 Booster
Copy link

Choose a reason for hiding this comment

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

Suggesting the removal of the '// Line 57-58 Booster' comment as it appears to be an internal development note.

}
go func() {
_ = handler.productMan.Products() // blocks until ready
kubeHealth.Lock() // Added lock
Copy link

Choose a reason for hiding this comment

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

Suggesting the use of 'defer kubeHealth.Unlock()' to ensure the mutex is always released, right after kubeHealth.Lock().

// nil if ok, error with message if not
func (h *KubeHealth) error() error {
if !h.ready {
h.RLock() // Added Read Lock
Copy link

Choose a reason for hiding this comment

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

Suggesting the use of 'defer h.RUnlock()' to ensure the mutex is always released, right after h.RLock().

// valid credentials given in config; internalAPI set to GCP managed URL
config.Tenant.RemoteServiceAPI = config.Tenant.InternalAPI
config.Tenant.InternalAPI = ""
//nolint:staticcheck // SA1019: using deprecated CredentialsFromJSON for test mock
Copy link

Choose a reason for hiding this comment

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

Suggesting a migration from the deprecated 'google.CredentialsFromJSON' to 'google.golang.org/api/idtoken' or updated 'oauth2/google' methods.

server/config.go Outdated
if err != nil {
return err
}
//nolint:staticcheck // SA1019: ignore deprecation for now
Copy link

Choose a reason for hiding this comment

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

Suggesting a migration from the deprecated 'google.CredentialsFromJSON' to 'google.golang.org/api/idtoken' or updated 'oauth2/google' methods.

}
}
}
if err != nil {
Copy link

Choose a reason for hiding this comment

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

Suggesting a migration from the deprecated 'google.CredentialsFromJSON' to 'google.golang.org/api/idtoken' or updated 'oauth2/google' methods.

@Lavanya-Polipalli Lavanya-Polipalli force-pushed the main branch 2 times, most recently from 15505c4 to f9b4847 Compare March 17, 2026 15:50
- Upgrades Go build version to 1.25.
- Updates Ubuntu image and pins all base image digests.
- Updates Go modules to patched versions to resolve vulnerabilities.
- Resolves linting regressions and CI toolchain errors.
- Optimizes test coverage

This resolves OS and Go vulnerabilities reported in b/386210486.

Fixes: b/386210486
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.

3 participants