diff --git a/.changeset/ca-certificates-rebuild.md b/.changeset/ca-certificates-rebuild.md new file mode 100644 index 00000000000..112220fa7ad --- /dev/null +++ b/.changeset/ca-certificates-rebuild.md @@ -0,0 +1,5 @@ +--- +"chainlink": patch +--- + +#internal Rebuild on Ubuntu 24.04 with ca-certificates 20260816ubuntu0.24.04.1, which removes the compromised eMudhra intermediate CAs from the image trust store. Ubuntu 20.04 is out of standard support and does not receive the fix. Build stages move from Debian bullseye to bookworm because the bullseye security archive no longer serves packages. No code changes. diff --git a/.github/workflows/build-publish.yml b/.github/workflows/build-publish.yml index a5f6ba609c6..dfc9f12e4c2 100644 --- a/.github/workflows/build-publish.yml +++ b/.github/workflows/build-publish.yml @@ -11,7 +11,7 @@ env: jobs: checks: name: "Checks" - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 outputs: git-tag-type: ${{ steps.check-git-tag-type.outputs.git-tag-type }} ecr-image-name: ${{ steps.check-git-tag-type.outputs.ecr-image-name }} @@ -62,7 +62,7 @@ jobs: build-sign-publish-chainlink: needs: [checks] - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 environment: build-publish permissions: id-token: write diff --git a/contracts/scripts/requirements.txt b/contracts/scripts/requirements.txt index 50cda389b7b..21007bca755 100644 --- a/contracts/scripts/requirements.txt +++ b/contracts/scripts/requirements.txt @@ -1,3 +1,8 @@ -solc-select==1.0.4 --hash=sha256:db7b9de009af6de3a5416b80bbe5b6d636bf314703c016319b8c1231e248a6c7 +solc-select==1.2.0 --hash=sha256:dd00cab29229570c4399058852a4052f2120d87c7e341e35f04794a13cfdd1de pycryptodome==3.18.0 --hash=sha256:c9adee653fc882d98956e33ca2c1fb582e23a8af7ac82fee75bd6113c55a0413 -packaging==23.1 --hash=sha256:a392980d2b6cffa644431898be54b0045151319d1e7ec34f0cfed48767dd334f \ No newline at end of file +packaging==23.1 --hash=sha256:a392980d2b6cffa644431898be54b0045151319d1e7ec34f0cfed48767dd334f +requests==2.34.2 --hash=sha256:2a0d60c172f83ac6ab31e4554906c0f3b3588d37b5cb939b1c061f4907e278e0 +urllib3==2.8.0 --hash=sha256:0cf3cae568d36aa9576b28dfb35f11328f1cb974ca7647d9475ebb86c75ac6e3 +idna==3.20 --hash=sha256:ab7ae7122974553370f0bdb919e1a960b2cd1bc1ef0276416d896db81c14582c +certifi==2026.10.19 --hash=sha256:42d35340cc5b9ba78e818ddbff0c5b1c2b779de448a340fd1b989f5fa8670e1b +charset-normalizer==3.5.2 --hash=sha256:b6b751274acb69d77b3323d6b7dbaa3c7fdfc1eb829b7eb61d262f32e1af9685 diff --git a/core/chainlink.Dockerfile b/core/chainlink.Dockerfile index 0bda966b2ae..6ad360d0724 100644 --- a/core/chainlink.Dockerfile +++ b/core/chainlink.Dockerfile @@ -1,5 +1,5 @@ # Build image: Chainlink binary -FROM golang:1.23-bullseye as buildgo +FROM golang:1.23-bookworm as buildgo RUN go version WORKDIR /chainlink @@ -31,7 +31,7 @@ RUN go list -m -f "{{.Dir}}" github.com/smartcontractkit/chainlink-feeds | xargs RUN go list -m -f "{{.Dir}}" github.com/smartcontractkit/chainlink-solana | xargs -I % ln -s % /chainlink-solana # Build image: Plugins -FROM golang:1.23-bullseye as buildplugins +FROM golang:1.23-bookworm as buildplugins RUN go version WORKDIR /chainlink-feeds @@ -43,7 +43,7 @@ COPY --from=buildgo /chainlink-solana . RUN go install ./pkg/solana/cmd/chainlink-solana # Final image: ubuntu with chainlink binary -FROM ubuntu:20.04 +FROM ubuntu:24.04 ARG CHAINLINK_USER=root ENV DEBIAN_FRONTEND noninteractive diff --git a/core/cmd/shell_local.go b/core/cmd/shell_local.go index 7e6357bcb1c..be2d1b5fdbd 100644 --- a/core/cmd/shell_local.go +++ b/core/cmd/shell_local.go @@ -1184,6 +1184,15 @@ func dumpSchema(dbURL url.URL) (string, error) { dbURL.String(), "--schema-only", } + + // pg_dump releases since August 2025 emit \restrict lines with a random key + // unless --restrict-key is set, so two dumps of the same schema never match. + // The dump is only compared against itself before and after rollback, so a + // fixed key is safe. Backport of #18985. + if help, err := exec.Command("pg_dump", "--help").Output(); err == nil && strings.Contains(string(help), "--restrict-key") { + args = append(args, "--restrict-key=chainlinktestrestrictkey") + } + cmd := exec.Command( "pg_dump", args..., ) diff --git a/package.json b/package.json index 465595a3c9d..4b4db13cc1c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "chainlink", - "version": "2.20.0", + "version": "2.20.1", "description": "node of the decentralized oracle network, bridging on and off-chain computation", "main": "index.js", "scripts": { diff --git a/plugins/chainlink.Dockerfile b/plugins/chainlink.Dockerfile index 883aa83c9cf..cf00093406a 100644 --- a/plugins/chainlink.Dockerfile +++ b/plugins/chainlink.Dockerfile @@ -1,5 +1,5 @@ # Build image: Chainlink binary -FROM golang:1.23-bullseye as buildgo +FROM golang:1.23-bookworm as buildgo RUN go version WORKDIR /chainlink @@ -20,7 +20,7 @@ COPY . . RUN apt-get update && apt-get install -y jq # Install Delve for debugging -RUN go install github.com/go-delve/delve/cmd/dlv@latest +RUN go install github.com/go-delve/delve/cmd/dlv@v1.24.2 # Build the golang binaries RUN make GO_GCFLAGS="${GO_GCFLAGS}" install-chainlink @@ -39,7 +39,7 @@ RUN mkdir /chainlink-starknet RUN go list -m -f "{{.Dir}}" github.com/smartcontractkit/chainlink-starknet/relayer | xargs -I % ln -s % /chainlink-starknet/relayer # Build image: Plugins -FROM golang:1.23-bullseye as buildplugins +FROM golang:1.23-bookworm as buildplugins RUN go version WORKDIR /chainlink-feeds @@ -60,7 +60,7 @@ RUN go install ./pkg/chainlink/cmd/chainlink-starknet # Final image: ubuntu with chainlink binary -FROM ubuntu:20.04 +FROM ubuntu:24.04 ARG CHAINLINK_USER=root ENV DEBIAN_FRONTEND noninteractive diff --git a/tools/ci/install_wasmd b/tools/ci/install_wasmd index f12b9d173b1..ae2895fa581 100755 --- a/tools/ci/install_wasmd +++ b/tools/ci/install_wasmd @@ -2,13 +2,12 @@ set -euo pipefail -# commit on branch releases/v0.40.x +# upstream deleted the releases/v0.40.x branch; the tag is still published GIT_TAG="v0.40.1" CHECKOUT_DIR="${HOME}/wasmd-checkout" BUILD_DIR="${HOME}/wasmd-build" -git clone https://github.com/CosmWasm/wasmd --branch "releases/v0.40.x" "${CHECKOUT_DIR}" +git clone https://github.com/CosmWasm/wasmd --branch "${GIT_TAG}" --depth 1 "${CHECKOUT_DIR}" cd "${CHECKOUT_DIR}" -git checkout "${GIT_TAG}" GOPATH="${BUILD_DIR}" make install