Skip to content

Conversation

@polmoorx
Copy link
Contributor

@polmoorx polmoorx commented Jan 6, 2026

Merge Checklist

All boxes should be checked before merging the PR

  • The changes in the PR have been built and tested
  • cgmanifest file has been updated if required
  • Ready to merge

Description

Any Newly Introduced Dependencies

NO

How Has This Been Tested?

Manually tested.

@polmoorx polmoorx force-pushed the upgrade_go_to_fix_CVE branch from aa721ee to 8c6dd71 Compare January 7, 2026 07:33
@polmoorx polmoorx marked this pull request as ready for review January 7, 2026 09:33
@polmoorx polmoorx requested a review from a team as a code owner January 7, 2026 09:33
# https://github.com/caddyserver/caddy/commit/2028da4e74cd41f0f7f94222c6599da1a371d4b8
BuildRequires: golang >= 1.24.4
BuildRequires: golang < 1.25
BuildRequires: golang <= 1.25.5
Copy link
Contributor

Choose a reason for hiding this comment

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

BuildRequires: golang <= 1.25.5 is not required , since this is the latest version

Copy link
Contributor

Choose a reason for hiding this comment

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

why we need to remove BuildRequires: golang < 1.25 here? caddy requires only 1.23, no need to use 1.25 and enable cgo

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @liulis-sg , @andy-vm,

Thank you for the review. The CVEs have been patched, and this PR has been updated to address only the Caddy-related CVEs. A separate PR will be raised for the RPC changes.

Source1: %{name}-%{version}-vendor.tar.gz
BuildRequires: golang >= 1.24.4
BuildRequires: golang < 1.25.0
BuildRequires: golang <= 1.25.5
Copy link
Contributor

Choose a reason for hiding this comment

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

BuildRequires: golang <= 1.25.5 is not required since this is the latest version

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @liulis-sg,

Reverted the changes as it is not needed here. Thank you

export GO111MODULE=off
export GOPATH=$PWD
CGO_ENABLED=0 go build -trimpath -gcflags=-l -ldflags="-X %{goipath}.CustomVersion=v%{version}" -o bin/caddy %{goipath}/cmd/caddy
CGO_ENABLED=1 go build -trimpath -gcflags=-l -ldflags="-X %{goipath}.CustomVersion=v%{version}" -o bin/caddy %{goipath}/cmd/caddy
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

caddy 2.9.1 itself use 1.23 / 1.22, why we need to use 1.25 and introduce CVE?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @andy-vm,
Thank you for the review. I have reverted CGO_ENABLED=0, and the CVEs have been patched. This PR has been updated to address only the Caddy-related CVEs.


%build
export CGO_ENABLED=0
export CGO_ENABLED=1
Copy link
Contributor

Choose a reason for hiding this comment

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

same here

Copy link
Contributor

Choose a reason for hiding this comment

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

rpc go itself uses 1.24, we no need to use 1.25 here
https://github.com/device-management-toolkit/rpc-go/blob/v2.48.9/go.mod

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for the review. The RPC changes have been removed from this PR, and a separate PR will be raised for the RPC changes.

@polmoorx polmoorx force-pushed the upgrade_go_to_fix_CVE branch 2 times, most recently from b65a6d2 to cc62f82 Compare January 8, 2026 09:30
@andy-vm
Copy link
Contributor

andy-vm commented Jan 9, 2026

upgrading from 1.25.1 to 1.25.5 is fine, if there is cve reported

no need to change go version in caddy and rpc go and enable cgo

- Include fix for CVE-2025-61727 and CVE-2025-61729.

- Updated caddy.spec file to update release,
  bump version, and add changelog entries.

Signed-off-by: Polmoorx Shiva Kumar <[email protected]>
@polmoorx polmoorx force-pushed the upgrade_go_to_fix_CVE branch from cc62f82 to d1d168d Compare January 14, 2026 17:59
@polmoorx polmoorx changed the title Update Go version to fix CVE issues Update CVE patches to fix CVE issues Jan 14, 2026
@polmoorx
Copy link
Contributor Author

upgrading from 1.25.1 to 1.25.5 is fine, if there is cve reported

no need to change go version in caddy and rpc go and enable cgo

Thank you for the review. I have reverted the changes.

@andy-vm
Copy link
Contributor

andy-vm commented Jan 15, 2026

LGTM
please also share test result, log or screenshot

@polmoorx
Copy link
Contributor Author

LGTM please also share test result, log or screenshot

Hi @andy-vm,

Thank you for review.

CVE resolved snap from bdba:
image

For Jenkins Build please see On-Demand_Developer_Build#1526.

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