Skip to content

Commit f288ac4

Browse files
authored
Update Rust to v1.60 (#1615)
- Updates the debian base from `buster` to `bullseye`; - Bumps the devcontainer version; - Removes the `update-rust-version.sh` script, since it's too brittle and isn't necessary any longer (since we check rust versions in CI); - Updates checksec to v2.5.; - Acknowledges that releases no longer produces binaries with `FORTIFY_SOURCE` Signed-off-by: Oliver Gould <[email protected]>
1 parent 5d72e7a commit f288ac4

File tree

18 files changed

+35
-47
lines changed

18 files changed

+35
-47
lines changed

.devcontainer/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG RUST_VERSION=1.59.0
1+
ARG RUST_VERSION=1.60.0
22

33
FROM docker.io/rust:${RUST_VERSION}-bullseye as kubectl
44
ARG KUBECTL_VERSION=v1.23.2
@@ -18,6 +18,10 @@ ARG YQ_VERSION=v4.2.0
1818
RUN curl --proto '=https' --tlsv1.3 -vsSfLo /usr/local/bin/yq "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64" \
1919
&& chmod +x /usr/local/bin/yq
2020

21+
FROM docker.io/rust:${RUST_VERSION}-bullseye as checksec
22+
ARG CHECKSEC_VERSION=2.5.0
23+
RUN cd /usr/local/bin && curl -vsLO "https://raw.githubusercontent.com/slimm609/checksec.sh/${CHECKSEC_VERSION}/checksec" && chmod 755 checksec
24+
2125
FROM docker.io/rust:${RUST_VERSION}-bullseye as nightly
2226
RUN rustup toolchain add nightly
2327

@@ -78,6 +82,7 @@ COPY --from=cargo-deny /usr/local/bin/cargo-deny /usr/local/bin/cargo-deny
7882
COPY --from=k3d /usr/local/bin/k3d /usr/local/bin/k3d
7983
COPY --from=kubectl /usr/local/bin/kubectl /usr/local/bin/kubectl
8084
COPY --from=yq /usr/local/bin/yq /usr/local/bin/yq
85+
COPY --from=checksec /usr/local/bin/checksec /usr/local/bin/checksec
8186
COPY --from=nightly /usr/local/rustup/toolchains/nightly-x86_64-unknown-linux-gnu /usr/local/rustup/toolchains/nightly-x86_64-unknown-linux-gnu
8287
COPY --from=fuzz /usr/local/cargo/bin/cargo-fuzz /usr/local/cargo/bin/cargo-fuzz
8388

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "linkerd2-proxy",
3-
"image": "ghcr.io/linkerd/dev-proxy:v9",
3+
"image": "ghcr.io/linkerd/dev-proxy:v10",
44
// "dockerFile": "./Dockerfile",
55
"extensions": [
66
"matklad.rust-analyzer",

.github/actions/list-changed-crates/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG RUST_VERSION=1.59.0
1+
ARG RUST_VERSION=1.60.0
22
FROM docker.io/library/rust:${RUST_VERSION}-bullseye
33
ENV DEBIAN_FRONTEND=noninteractive
44
RUN apt update && \

.github/actions/package/Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
ARG RUST_VERSION=1.59.0
2-
ARG BASE_IMAGE=rust:${RUST_VERSION}-buster
1+
ARG RUST_VERSION=1.60.0
2+
ARG BASE_IMAGE=rust:${RUST_VERSION}-bullseye
33
FROM $BASE_IMAGE
44
WORKDIR /linkerd
55
RUN apt-get update && \
@@ -11,7 +11,8 @@ RUN apt-get update && \
1111
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/
1212
ENV CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc
1313
ENV CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc
14-
# v2.1.0
15-
ARG CHECKSEC_SHA=04582bad41589ad479ca8b1f0170ed317475b5a5
16-
RUN cd /usr/local/bin && curl -vsLO "https://raw.githubusercontent.com/slimm609/checksec.sh/$CHECKSEC_SHA/checksec" && chmod 755 checksec
14+
ARG CHECKSEC_VERSION=2.5.0
15+
RUN cd /usr/local/bin && \
16+
curl -vsLO "https://raw.githubusercontent.com/slimm609/checksec.sh/${CHECKSEC_VERSION}/checksec" && \
17+
chmod 755 checksec
1718
COPY expected-checksec.json validate-checksec.sh /linkerd/

.github/actions/package/expected-checksec.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"canary": "yes",
3-
"fortify_source": "yes",
3+
"fortify_source": "no",
44
"nx": "yes",
55
"pie": "yes",
66
"relro": "full",

.github/workflows/beta.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
build:
2424
runs-on: ubuntu-latest
2525
container:
26-
image: docker://rust:1.59.0-buster
26+
image: docker://rust:1.60.0-bullseye
2727
timeout-minutes: 20
2828
continue-on-error: true
2929
steps:

.github/workflows/check-all.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
timeout-minutes: 20
2727
runs-on: ubuntu-latest
2828
container:
29-
image: docker://rust:1.59.0-buster
29+
image: docker://rust:1.60.0-bullseye
3030
steps:
3131
- run: |
3232
curl --proto =https --tlsv1.3 -vsSfLo /usr/local/bin/cargo-action-fmt "https://github.com/olix0r/cargo-action-fmt/releases/download/release%2F${CARGO_ACTION_FMT_VERSION}/cargo-action-fmt-x86_64-unknown-linux-gnu"

.github/workflows/check-each.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
timeout-minutes: 20
5252
runs-on: ubuntu-latest
5353
container:
54-
image: docker://rust:1.59.0-buster
54+
image: docker://rust:1.60.0-bullseye
5555
strategy:
5656
matrix:
5757
crate: ${{ fromJson(needs.list-changed-crates.outputs.crates) }}

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
runs-on: ubuntu-latest
2626
timeout-minutes: 30
2727
container:
28-
image: docker://rust:1.59.0-buster
28+
image: docker://rust:1.60.0-bullseye
2929
options: --security-opt seccomp=unconfined # 🤷
3030
steps:
3131
- run: apt update && apt install -y cmake clang golang # for boring

.github/workflows/fuzzers.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
timeout-minutes: 3
2727
runs-on: ubuntu-latest
2828
container:
29-
image: docker://rust:1.59.0-buster
29+
image: docker://rust:1.60.0-bullseye
3030
steps:
3131
- run: apt update && apt install -y jo
3232
- uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748
@@ -79,7 +79,7 @@ jobs:
7979
timeout-minutes: 40
8080
runs-on: ubuntu-latest
8181
container:
82-
image: docker://rust:1.59.0-buster
82+
image: docker://rust:1.60.0-bullseye
8383
strategy:
8484
matrix:
8585
dir: ${{ fromJson(needs.list-changed.outputs.dirs) }}

0 commit comments

Comments
 (0)