Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/security-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
description: Existing annotated numeric tag at the selected commit
type: string
required: true
default: v0.11.1
default: v0.11.2

permissions:
contents: read
Expand All @@ -24,7 +24,7 @@ jobs:
GOTOOLCHAIN: local
GOMAXPROCS: 2
GOFLAGS: -p=2
RELEASE_TAG: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || inputs.release_tag || 'v0.11.1' }}
RELEASE_TAG: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || inputs.release_tag || 'v0.11.2' }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Expand All @@ -35,20 +35,20 @@ jobs:
run: |
set -euo pipefail
curl --proto '=https' --tlsv1.2 --fail --silent --show-error --location \
--output "$RUNNER_TEMP/go.tar.gz" https://go.dev/dl/go1.27.3.linux-amd64.tar.gz
printf '%s %s\n' 65efbc80fdc1fa2cd2631cad5b481777a68e8725f34e89f50fc6ac714e379b40 "$RUNNER_TEMP/go.tar.gz" | sha256sum -c -
--output "$RUNNER_TEMP/go.tar.gz" https://go.dev/dl/go1.27.4.linux-amd64.tar.gz
printf '%s %s\n' 7226736c2339719cda28fbf3a54d71aa63bcefe376e98cef00034268dab24840 "$RUNNER_TEMP/go.tar.gz" | sha256sum -c -
tar -C "$RUNNER_TEMP" -xzf "$RUNNER_TEMP/go.tar.gz"
echo "$RUNNER_TEMP/go/bin" >> "$GITHUB_PATH"
- name: Validate source and build the updated runtime
shell: bash
run: |
set -euo pipefail
[[ "$RELEASE_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]
test "$(go env GOVERSION)" = go1.27.3
test "$(go env GOVERSION)" = go1.27.4
sh scripts/validate.sh
for driver in nfs ebs efs; do
docker build --build-arg "IMAGE_VERSION=$RELEASE_TAG" -f runtime/nfs/image/$driver/Dockerfile -t local/$driver-storage-driver .
docker run --rm --entrypoint sh local/$driver-storage-driver -c 'apk info --installed ca-certificates=20261020-r0 >/dev/null && apk info --installed musl=1.2.5-r24 >/dev/null && apk info --installed zlib=1.3.2-r1 >/dev/null'
docker run --rm --entrypoint sh local/$driver-storage-driver -c 'apk info --installed ca-certificates=20261020-r0 >/dev/null && apk info --installed musl=1.2.5-r24 >/dev/null && apk info --installed zlib=1.4-r0 >/dev/null'
done
- name: Retain the exact verified runtime
shell: bash
Expand All @@ -63,7 +63,7 @@ jobs:
shell: bash
run: |
set -euo pipefail
scanner=aquasec/trivy:0.74.0@sha256:62b1e65e8869bc4b4c6aa4fa2b21595256c7c2f6018a9d9ad61caf87187c1969
scanner=ghcr.io/aquasecurity/trivy:0.76.2@sha256:8f6bb947dbc528902e11f2f5be52f7b519f6a39d5d148f41166f2040499768fb
PYTHONDONTWRITEBYTECODE=1 python3 .github/scripts/test_runtime_vulnerability_policy.py
docker pull "$scanner"
for runtime in local/nfs-storage-driver local/ebs-storage-driver local/efs-storage-driver; do
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ under [`runtime/nfs`](runtime/nfs/README.md), has a separate build boundary, and
is the only privileged runtime delivered by this repository.

Existing `v0.11.0` image coordinates are not overwritten. The current coordinated
[NFS, EBS and EFS release is v0.11.1](https://github.com/PastureStack/storage-plugins/releases/tag/v0.11.1),
[NFS, EBS and EFS release is v0.11.2](https://github.com/PastureStack/storage-plugins/releases/tag/v0.11.2),
produced from `a1ea8a0b483c9f8755cd23a4040cac06eafbb474`. The exact published
registry digests passed [runtime readback, contract and security checks](https://github.com/PastureStack/storage-plugins/actions/runs/39964036727)
and are recorded in the release's `registry-images.jsonl`; a local candidate build
Expand Down Expand Up @@ -127,9 +127,9 @@ Build an exact NFS release candidate from the repository root:

```sh
docker build \
--build-arg IMAGE_VERSION=v0.11.1 \
--build-arg IMAGE_VERSION=v0.11.2 \
--file runtime/nfs/image/nfs/Dockerfile \
--tag nfs-storage-driver:v0.11.1 \
--tag nfs-storage-driver:v0.11.2 \
.
```

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module github.com/PastureStack/storage-plugins

go 1.26.0

toolchain go1.27.3
toolchain go1.27.4
4 changes: 2 additions & 2 deletions runtime/nfs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ Run from the repository root:

```sh
docker build \
--build-arg IMAGE_VERSION=v0.11.1 \
--build-arg IMAGE_VERSION=v0.11.2 \
--file runtime/nfs/image/nfs/Dockerfile \
--tag nfs-storage-driver:v0.11.1 \
--tag nfs-storage-driver:v0.11.2 \
.
```

Expand Down
9 changes: 5 additions & 4 deletions runtime/nfs/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module github.com/PastureStack/storage-plugins/runtime/nfs

go 1.26.0

toolchain go1.27.3
toolchain go1.27.4

require (
github.com/docker/go-plugins-helpers v0.0.0-20240701071450-45e2431495c8
Expand Down Expand Up @@ -36,9 +36,10 @@ require (
github.com/opencontainers/image-spec v1.1.1 // indirect
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.70.0 // indirect
go.opentelemetry.io/otel v1.45.0 // indirect
go.opentelemetry.io/otel/metric v1.45.0 // indirect
go.opentelemetry.io/otel/trace v1.45.0 // indirect
go.opentelemetry.io/otel v1.47.0 // indirect
go.opentelemetry.io/otel/log v1.47.0 // indirect
go.opentelemetry.io/otel/metric v1.47.0 // indirect
go.opentelemetry.io/otel/trace v1.47.0 // indirect
golang.org/x/sys v0.47.0 // indirect
k8s.io/klog/v2 v2.140.0 // indirect
)
14 changes: 8 additions & 6 deletions runtime/nfs/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,18 @@ go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ
go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.70.0 h1:LMuyCAyfalSjDyjdC65nK6N0zoTT63+E/u95X0JovZI=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.70.0/go.mod h1:085m8qbm4hgc8rZWGDEa4vmyyo2c3nPxUslYUKUIU04=
go.opentelemetry.io/otel v1.45.0 h1:pdrWmLHofpubmArBv1LgFSv1Z0Ie/ppdZzu+kUN5EeU=
go.opentelemetry.io/otel v1.45.0/go.mod h1:XZxIqPapzEYnhNSScF5DIqXhm/rYi0FzCe2XddAwZfQ=
go.opentelemetry.io/otel/metric v1.45.0 h1:7Eg1uH7CJ5cXv9is6tnBe1FI6rj1nwUdbFypRm3br/M=
go.opentelemetry.io/otel/metric v1.45.0/go.mod h1:HAPbm1nd3p1PmFH7v2dR+6BjXxw+Lq4a2+pndMAm08s=
go.opentelemetry.io/otel v1.47.0 h1:j7ALJ/zgkS7Z6aeJW09p8VC9804bC+PpeTfCD4XPnOM=
go.opentelemetry.io/otel v1.47.0/go.mod h1:8wS9O2qfXrYrzp6hIF/HOYJJf/wIhFPhR2xLuP+iXQU=
go.opentelemetry.io/otel/log v1.47.0 h1:cOTS1CcLbSQeZKanGJ+0JpF/+t4PELi3O3bbl2lqCcI=
go.opentelemetry.io/otel/log v1.47.0/go.mod h1:9byitSQ5pLC6PpqwGXjqdMKya6ZTswHRZh2vvXT33nw=
go.opentelemetry.io/otel/metric v1.47.0 h1:4PptaldXx3Eat1XjMZ68pPJEs5wrhlemctZE9a3UdWY=
go.opentelemetry.io/otel/metric v1.47.0/go.mod h1:ADGSXxRrXM6bjbvLo535EstVFlPpPYZm4LBKixjDHwU=
go.opentelemetry.io/otel/sdk v1.45.0 h1:4VVSMgQ83dUgW2aoX5f6JgLvHwIvzcuLnF9lUdCSpCw=
go.opentelemetry.io/otel/sdk v1.45.0/go.mod h1:Sr40LgXV7DsKMMJMKOhUWOgMWTfAaqvm2kF0g7ilwuA=
go.opentelemetry.io/otel/sdk/metric v1.45.0 h1:oVFszMfyj1Am6s24Vtc7wBb8BKLcwepJjNEYILuiE3o=
go.opentelemetry.io/otel/sdk/metric v1.45.0/go.mod h1:vUWUxDZvu1WVRj8JA8S0AdhsPrZoDpA2DdZauIh4mDA=
go.opentelemetry.io/otel/trace v1.45.0 h1:l/mP6Uv7oNO7/TblbhpbgMidxhq1uO/rPsikOyVhxag=
go.opentelemetry.io/otel/trace v1.45.0/go.mod h1:qoJJA2xNMnxRrdISU/kLtfUH2wNeQbiv+jhs/CxI8bc=
go.opentelemetry.io/otel/trace v1.47.0 h1:JOjX/Oci8K94QHddo+bbfya/Ai/nf6/dt9ZfrFNWSrM=
go.opentelemetry.io/otel/trace v1.47.0/go.mod h1:jNaSLa2PZEYFG6fRjJABAu+bw4FS08uDmPg28lTghu0=
go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw=
go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg=
golang.org/x/sys v0.47.0 h1:o7XGOvZQCADBQQ4Y7VNq2dRWQR7JmOUW8Kxx4ZsNgWs=
Expand Down
19 changes: 14 additions & 5 deletions runtime/nfs/image/ebs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG GO_IMAGE=golang:1.27.3-bookworm@sha256:972b4110ba0f47539a975c31e52c64765e1ff19f2d74469ae4a595c6676e80a5
ARG GO_IMAGE=golang:1.27.4-bookworm@sha256:4fa7c968ba93f1635670522dbb01a2c78150443e1385746924566079f36570ea
ARG RUNTIME_IMAGE=alpine:3.23@sha256:1beb0dc0a51de7ff38e3b5274078a2e0b81113ba5c7535e1a03d5913a5edbda3
ARG IMAGE_VERSION=v0.11.1
ARG IMAGE_VERSION=v0.11.2

FROM ${GO_IMAGE} AS runtime-build
ARG IMAGE_VERSION
Expand All @@ -21,18 +21,27 @@ LABEL org.opencontainers.image.source="https://github.com/PastureStack/storage-p
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.version="${IMAGE_VERSION}"
RUN apk add --no-cache \
libcrypto3=3.5.9-r0 libssl3=3.5.9-r0 \
libcrypto3=3.5.9-r1 libssl3=3.5.9-r1 \
musl=1.2.5-r24 \
musl-utils=1.2.5-r24 \
zlib=1.3.2-r1 \
zlib=1.4-r0 \
aws-cli=2.32.7-r0 \
bash=5.3.3-r1 \
ca-certificates=20261020-r0 \
curl=8.22.0-r0 \
curl=8.23.0-r0 \
e2fsprogs=1.47.3-r0 \
jq=1.8.2-r0 \
nvme-cli=2.16-r1 \
util-linux=2.41.6-r1
# Same Alpine branch: update only already-installed vulnerable dependencies.
RUN set -eu; \
set --; \
for requirement in krb5-libs=1.22.3-r0 libexpat=2.11.0-r0 python3=3.12.16-r0 python3-pyc=3.12.16-r0 python3-pycache-pyc0=3.12.16-r0 pyc=3.12.16-r0; do \
package=${requirement%%=*}; \
if apk info --installed "$package" >/dev/null 2>&1; then set -- "$@" "$requirement"; fi; \
done; \
if [ "$#" -gt 0 ]; then apk add --upgrade --no-cache "$@"; fi

COPY --from=runtime-build /out/pasturestack-storage-runtime /usr/bin/
COPY runtime/nfs/image/ebs/pasturestack-ebs runtime/nfs/image/common/* /usr/bin/
RUN chmod 0755 \
Expand Down
19 changes: 14 additions & 5 deletions runtime/nfs/image/efs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG GO_IMAGE=golang:1.27.3-bookworm@sha256:972b4110ba0f47539a975c31e52c64765e1ff19f2d74469ae4a595c6676e80a5
ARG GO_IMAGE=golang:1.27.4-bookworm@sha256:4fa7c968ba93f1635670522dbb01a2c78150443e1385746924566079f36570ea
ARG RUNTIME_IMAGE=alpine:3.23@sha256:1beb0dc0a51de7ff38e3b5274078a2e0b81113ba5c7535e1a03d5913a5edbda3
ARG IMAGE_VERSION=v0.11.1
ARG IMAGE_VERSION=v0.11.2

FROM ${GO_IMAGE} AS runtime-build
ARG IMAGE_VERSION
Expand All @@ -21,17 +21,26 @@ LABEL org.opencontainers.image.source="https://github.com/PastureStack/storage-p
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.version="${IMAGE_VERSION}"
RUN apk add --no-cache \
libcrypto3=3.5.9-r0 libssl3=3.5.9-r0 \
libcrypto3=3.5.9-r1 libssl3=3.5.9-r1 \
musl=1.2.5-r24 \
musl-utils=1.2.5-r24 \
zlib=1.3.2-r1 \
zlib=1.4-r0 \
aws-cli=2.32.7-r0 \
bash=5.3.3-r1 \
ca-certificates=20261020-r0 \
curl=8.22.0-r0 \
curl=8.23.0-r0 \
jq=1.8.2-r0 \
nfs-utils=2.6.4-r6 \
util-linux=2.41.6-r1
# Same Alpine branch: update only already-installed vulnerable dependencies.
RUN set -eu; \
set --; \
for requirement in krb5-libs=1.22.3-r0 libexpat=2.11.0-r0 python3=3.12.16-r0 python3-pyc=3.12.16-r0 python3-pycache-pyc0=3.12.16-r0 pyc=3.12.16-r0; do \
package=${requirement%%=*}; \
if apk info --installed "$package" >/dev/null 2>&1; then set -- "$@" "$requirement"; fi; \
done; \
if [ "$#" -gt 0 ]; then apk add --upgrade --no-cache "$@"; fi

COPY --from=runtime-build /out/pasturestack-storage-runtime /usr/bin/
COPY runtime/nfs/image/efs/pasturestack-efs runtime/nfs/image/common/* /usr/bin/
RUN chmod 0755 \
Expand Down
19 changes: 14 additions & 5 deletions runtime/nfs/image/nfs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG GO_IMAGE=golang:1.27.3-bookworm@sha256:972b4110ba0f47539a975c31e52c64765e1ff19f2d74469ae4a595c6676e80a5
ARG GO_IMAGE=golang:1.27.4-bookworm@sha256:4fa7c968ba93f1635670522dbb01a2c78150443e1385746924566079f36570ea
ARG RUNTIME_IMAGE=alpine:3.23@sha256:1beb0dc0a51de7ff38e3b5274078a2e0b81113ba5c7535e1a03d5913a5edbda3
ARG IMAGE_VERSION=v0.11.1
ARG IMAGE_VERSION=v0.11.2

FROM ${GO_IMAGE} AS runtime-build
ARG IMAGE_VERSION
Expand All @@ -21,17 +21,26 @@ LABEL org.opencontainers.image.source="https://github.com/PastureStack/storage-p
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.version="${IMAGE_VERSION}"
RUN apk add --no-cache \
libcrypto3=3.5.9-r0 libssl3=3.5.9-r0 \
libcrypto3=3.5.9-r1 libssl3=3.5.9-r1 \
musl=1.2.5-r24 \
musl-utils=1.2.5-r24 \
zlib=1.3.2-r1 \
zlib=1.4-r0 \
bash=5.3.3-r1 \
ca-certificates=20261020-r0 \
curl=8.22.0-r0 \
curl=8.23.0-r0 \
jq=1.8.2-r0 \
nfs-utils=2.6.4-r6 \
rpcbind=1.2.8-r0 \
util-linux=2.41.6-r1
# Same Alpine branch: update only already-installed vulnerable dependencies.
RUN set -eu; \
set --; \
for requirement in krb5-libs=1.22.3-r0 libexpat=2.11.0-r0 python3=3.12.16-r0 python3-pyc=3.12.16-r0 python3-pycache-pyc0=3.12.16-r0 pyc=3.12.16-r0; do \
package=${requirement%%=*}; \
if apk info --installed "$package" >/dev/null 2>&1; then set -- "$@" "$requirement"; fi; \
done; \
if [ "$#" -gt 0 ]; then apk add --upgrade --no-cache "$@"; fi

COPY --from=runtime-build /out/pasturestack-storage-runtime /usr/bin/
COPY runtime/nfs/image/nfs/pasturestack-nfs runtime/nfs/image/common/* /usr/bin/
RUN chmod 0755 \
Expand Down
15 changes: 5 additions & 10 deletions runtime/nfs/vendor/go.opentelemetry.io/otel/.golangci.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading