diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index f02e69784b0..a12722338a5 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,6 +1,6 @@ 'env': 'BASE_IMAGE': |- - ${{ vars.BASE_IMAGE || 'adguard/go-builder:1.26.8--1' }} + ${{ vars.BASE_IMAGE || 'adguard/go-builder:1.27.1--1' }} 'BUILD_DIR': |- build 'CHANNEL': |- diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1963eb0766c..e7fd8ed2bac 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -23,7 +23,7 @@ - 'name': 'Set up Go' 'uses': 'actions/setup-go@v5' 'with': - 'go-version': '1.26.8' + 'go-version': '1.27.1' - 'name': 'Build' 'run': 'go build -v ./...' diff --git a/.github/workflows/private.yaml b/.github/workflows/private.yaml index f96d7b852c1..e4db8b1e276 100644 --- a/.github/workflows/private.yaml +++ b/.github/workflows/private.yaml @@ -1,6 +1,6 @@ 'env': 'BASE_IMAGE': |- - ${{ vars.BASE_IMAGE || 'adguard/go-builder:1.26.8--1' }} + ${{ vars.BASE_IMAGE || 'adguard/go-builder:1.27.1--1' }} 'CACHE_BUSTER': |- ${{ inputs.cache_buster || '0' }} 'CLIENT_DIR': |- @@ -76,6 +76,7 @@ - 'ephemeral' - 'ephemeral-mac' - '${{ vars.BUILD_IMAGE_VERSION_MACOS }}' + - 'ephemeral-job-key-${{ github.run_id }}-${{ github.job }}-${{ strategy.job-index || 0 }}' 'steps': - 'uses': 'actions/checkout@v6' 'with': @@ -110,6 +111,7 @@ - '${{ vars.BUILD_IMAGE_VERSION_WINDOWS_GO }}' - 'ephemeral-limit-memory-8192' - 'ephemeral-limit-cpu-4' + - 'ephemeral-job-key-${{ github.run_id }}-${{ github.job }}-${{ strategy.job-index || 0 }}' 'steps': - 'uses': 'actions/checkout@v6' 'with': diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7ae19b7e353..79f60dd438b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,6 +1,6 @@ 'env': 'BASE_IMAGE': |- - ${{ vars.BASE_IMAGE || 'adguard/go-builder:1.26.8--1' }} + ${{ vars.BASE_IMAGE || 'adguard/go-builder:1.27.1--1' }} 'BUILD_DIR': |- build 'CHANNEL': |- @@ -12,7 +12,6 @@ 'CLIENT_DIR': |- ${{ case( startsWith(github.ref_name, 'release-v'), 'client', - startsWith(github.ref_name, 'beta-v'), 'client', 'client_v2' ) }} 'DIST_DIR': |- @@ -197,9 +196,15 @@ VERSION=${{ needs.Build.outputs.app_version }} - 'uses': 'actions/upload-artifact@v7' 'with': - 'name': 'adguardhome' + 'name': 'adguardhome-static' 'path': | ${{ env.DIST_DIR }}/*.* + - 'uses': 'actions/upload-artifact@v7' + 'with': + 'name': 'adguardhome-github' + 'path': | + ${{ env.DIST_DIR }}/*.* + !${{ env.DIST_DIR }}/version.json 'DeployToStaticStorage': 'if': | ${{ github.repository_owner == 'AdGuardSoftwareLimited' }} @@ -218,7 +223,7 @@ startsWith(github.ref_name, 'beta-v'), 'beta', 'edge' ) }} - 'artifact-name': 'adguardhome' + 'artifact-name': 'adguardhome-static' 'environment': |- ${{ case( startsWith(github.ref_name, 'release-v'), 'release', @@ -277,7 +282,8 @@ 'id-token': 'write' 'uses': 'AdGuardSoftwareLimited/actions/.github/workflows/create-gh-release.yml@master' 'with': - 'artifact_name': 'adguardhome' + 'artifact_name': 'adguardhome-github' + # TODO(e.burkov): Set the 'prerelease' argument based on the channel. 'draft': true # Use the actual application version, e.g. v0.108.1, as the tag, and not # the branch name, so that it matches the announcement_url written to @@ -286,17 +292,12 @@ 'team': 'go' 'target_repo': 'AdguardTeam/AdGuardHome' 'name': 'Build and publish releases' +# NOTE: The schedule trigger is removed in this fork. This workflow is +# upstream-only: it references reusable workflows from the private +# AdGuardSoftwareLimited/actions repository, which this fork cannot access, so +# any run fails at startup. Releases in this fork are built by release.yml on +# version tags. 'on': - # Only the daily schedule runs automatically, on the default branch. Builds - # for the beta-v* and release-v* branches are manual and must be triggered via - # workflow_dispatch with the corresponding branch selected. - 'schedule': - # Don't use minute values that end with a zero or a five as these are often - # used in CI and so resources during these minutes can be quite busy. - # - # GitHub Actions uses standard 5-field POSIX cron: runs at 13:42 UTC on - # weekdays (Mon-Fri). - - cron: '42 13 * * 1-5' 'workflow_dispatch': 'inputs': 'cache_buster': diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2d961f97fde..e33d9470d36 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,7 @@ on: - 'v*' env: - GO_VERSION: '1.26.8' + GO_VERSION: '1.27.1' NODE_VERSION: '24' jobs: diff --git a/.github/workflows/snapcraft.yaml b/.github/workflows/snapcraft.yaml index e70d5afd8fb..5d43f6733f3 100644 --- a/.github/workflows/snapcraft.yaml +++ b/.github/workflows/snapcraft.yaml @@ -69,20 +69,10 @@ jobs: 'secrets': | SNAPCRAFT_STORE_CREDENTIALS=${{ env.SNAPCRAFT_STORE_CREDENTIALS }} 'name': 'Build and publish Snapcraft release' +# NOTE: The schedule trigger is removed in this fork. This workflow is +# upstream-only: it targets AdGuard's internal runners and publishes to the +# upstream Snap store, which this fork cannot do. 'on': - # Only the daily schedule runs automatically, on the default branch. Builds - # for the beta-v* and release-v* branches are manual and must be triggered via - # workflow_dispatch with the corresponding branch selected. - 'schedule': - # Don't use minute values that end with a zero or a five as these are often - # used in CI and so resources during these minutes can be quite busy. - # - # NOTE: The time is chosen to be exactly one hour after the main release - # build as defined as in release.yaml. - # - # GitHub Actions uses standard 5-field POSIX cron: runs at 14:42 UTC on - # weekdays (Mon-Fri). - - cron: '42 14 * * 1-5' 'workflow_dispatch': 'inputs': 'cache_buster': diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index bbaf77104d7..b28f0c8ab7d 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -1,6 +1,6 @@ 'env': 'CLIENT_DIR': 'client' - 'GO_VERSION': '1.26.8' + 'GO_VERSION': '1.27.1' 'NODE_VERSION': '24' 'jobs': 'ESLint': diff --git a/.prettierignore b/.prettierignore index d30a72d4840..6807f68402b 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1 +1,2 @@ .twosky.json +CHANGELOG.md diff --git a/.twosky.json b/.twosky.json index aa30e882182..bda6d08f70b 100644 --- a/.twosky.json +++ b/.twosky.json @@ -89,7 +89,6 @@ "uk": "Українська", "vi": "Tiếng Việt", "zh-cn": "简体中文", - "zh-hk": "繁體中文(香港)", "zh-tw": "正體中文(台灣)" }, "metadata": { diff --git a/CHANGELOG.md b/CHANGELOG.md index a10c9978b47..4f485d9d183 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,17 +20,46 @@ NOTE: Add new changes BELOW THIS COMMENT. ### Security -- Go version has been updated to prevent the possibility of exploiting the Go vulnerabilities fixed in [1.26.8][go-1.26.8]. +- Go version has been updated to prevent the possibility of exploiting the Go vulnerabilities fixed in [1.27.1][go-1.27.1]. ### Fixed +- Reading partially received TCP prefix. + +- A panic when updating AdGuard Home binary via the command line with `use_private_ptr_resolvers` set to true ([#8613]). + - `log.enabled` set to `false` leaving the legacy logger enabled ([#8565]). - DHCP server persisting uncommitted leases with zero expiry after `DHCPDISCOVER` messages ([#8572]). -[#8565]: https://github.com/AdguardTeam/AdGuardHome/issues/8565 -[#8572]: https://github.com/AdguardTeam/AdGuardHome/issues/8572 -[go-1.26.8]: https://groups.google.com/g/golang-announce/c/QiTRm-HGGtI +- DHCPv4 settings not being saved when an IPv6-capable interface is selected and DHCPv6 is not configured ([#8608]). + +- DHCP not being enabled when only the DHCPv6 section is configured. + +- DHCP IPv4 range subnet validation not working ([#8609]). + +- Client ID validation rejecting valid IPv6 CIDRs with an embedded dotted-decimal IPv4 address ([#8610]). + +- Client ID validation accepting IPv4 addresses with leading-zero octets (`192.168.01.1`), malformed MAC addresses, and ClientIDs with leading or trailing hyphens. + +- IP addresses being sorted lexicographically instead of numerically in the web interface ([#8636]). + +- Invalid secondary bootstrap resolver IPv4 address ([#8637]). + +### Removed + +- The support for macOS 13 Ventura, see [Go 1.27 release notes][go-1.27.1-notes]. + +[#8565]: https://github.com/AdguardTeam/AdGuardHome/issues/8565 +[#8572]: https://github.com/AdguardTeam/AdGuardHome/issues/8572 +[#8608]: https://github.com/AdguardTeam/AdGuardHome/issues/8608 +[#8609]: https://github.com/AdguardTeam/AdGuardHome/issues/8609 +[#8610]: https://github.com/AdguardTeam/AdGuardHome/issues/8610 +[#8613]: https://github.com/AdguardTeam/AdGuardHome/issues/8613 +[#8636]: https://github.com/AdguardTeam/AdGuardHome/issues/8636 +[#8637]: https://github.com/AdguardTeam/AdGuardHome/issues/8637 +[go-1.27.1]: https://groups.google.com/g/golang-announce/c/QiTRm-HGGtI +[go-1.27.1-notes]: https://go.dev/doc/go1.27#darwin