Skip to content

Agent Mesh

build: pin image digests, tool versions and CI installs

Antonio Ojea77014f06dcf7
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index b415252d..ecf00f50 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -29,6 +29,15 @@ updates:
interval: "weekly"
- package-ecosystem: "docker"
- directory: "/"
+ directories:
+ - "/"
+ - "/tests/e2e/docker"
+ - "/tests/e2e/docker/*"
+ - "/development/examples/*"
+ - "/development/examples/code-reviewer-pool/*"
schedule:
interval: "weekly"
+ groups:
+ docker-digests:
+ patterns:
+ - "*"
diff --git a/.github/workflows/deploy-github-pages.yml b/.github/workflows/deploy-github-pages.yml
index cbf85f75..13ab6632 100644
--- a/.github/workflows/deploy-github-pages.yml
+++ b/.github/workflows/deploy-github-pages.yml
@@ -46,7 +46,7 @@ jobs:
- name: Install PostCSS dependencies
run: |
npm init --yes
- npm install --save-dev autoprefixer postcss-cli postcss
working-directory: ./site
- name: Build Hugo Site
diff --git a/.github/workflows/kind-mesh-e2e.yml b/.github/workflows/kind-mesh-e2e.yml
index 2bee0faa..058100ee 100644
--- a/.github/workflows/kind-mesh-e2e.yml
+++ b/.github/workflows/kind-mesh-e2e.yml
@@ -50,9 +50,9 @@ jobs:
run: |
sudo sysctl fs.inotify.max_user_watches=524288 || true
sudo sysctl fs.inotify.max_user_instances=512 || true
- go install sigs.k8s.io/kind@latest
+ go install sigs.k8s.io/[email protected]
echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH"
- curl -sSLo /tmp/kubectl "https://dl.k8s.io/release/$(curl -sL https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
+ curl -sSLo /tmp/kubectl "https://dl.k8s.io/release/v1.37.0/bin/linux/amd64/kubectl"
sudo install -m 0755 /tmp/kubectl /usr/local/bin/kubectl
kind version
kubectl version --client
diff --git a/Dockerfile.nano-init b/Dockerfile.nano-init
index 940f1755..c786b0ba 100644
--- a/Dockerfile.nano-init
+++ b/Dockerfile.nano-init
@@ -1,5 +1,5 @@
# Stage 1: Build
-FROM golang:1.27.1 AS builder
+FROM golang:1.27.1@sha256:f44f6e88636cfb311f9ebace870ded69d943f227bb3cb27d32ffd84ea18c43ea AS builder
RUN apt-get update && apt-get install -y gcc libc-dev
WORKDIR /app
COPY cmd/nano-init/go.mod cmd/nano-init/go.sum ./
@@ -8,7 +8,7 @@ COPY cmd/nano-init/ ./
RUN CGO_ENABLED=0 GOOS=linux go build -buildvcs=false -ldflags="-s -w" -o nano-init .
# Stage 2: Final
-FROM gcr.io/distroless/base:nonroot
+FROM gcr.io/distroless/base:nonroot@sha256:0896741ba5bafd3ac87ea025a5f578952f2d238ddc3614cb368acc983a687aa2
COPY --from=builder --chown=nonroot:nonroot /app/nano-init /
USER nonroot:nonroot
ENTRYPOINT ["/nano-init"]
diff --git a/Dockerfile.sam-box b/Dockerfile.sam-box
index 4568a586..4854feef 100644
--- a/Dockerfile.sam-box
+++ b/Dockerfile.sam-box
@@ -1,5 +1,5 @@
# Stage 1: Build
-FROM golang:1.27.1 AS builder
+FROM golang:1.27.1@sha256:f44f6e88636cfb311f9ebace870ded69d943f227bb3cb27d32ffd84ea18c43ea AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
@@ -7,7 +7,7 @@ COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -buildvcs=false -o sam-box ./cmd/sam-box
# Stage 2: Final
-FROM gcr.io/distroless/static:nonroot
+FROM gcr.io/distroless/static:nonroot@sha256:e2e927ec666bae08560abb3c55d0659eceabb657f56b6782ab500a9fc7f555e3
COPY --from=builder --chown=nonroot:nonroot /app/sam-box /
USER nonroot:nonroot
ENTRYPOINT ["/sam-box"]
diff --git a/Dockerfile.sam-console b/Dockerfile.sam-console
index 14674aea..dfd1cc9e 100644
--- a/Dockerfile.sam-console
+++ b/Dockerfile.sam-console
@@ -1,4 +1,4 @@
-FROM golang:1.27.1-alpine AS builder
+FROM golang:1.27.1-alpine@sha256:cf6fca6641884b8433441b2b0652976f975e1d0fdd26d177eaaf8596087f3125 AS builder
WORKDIR /src
COPY go.mod go.sum ./
@@ -7,7 +7,7 @@ RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -o /bin/sam-console ./cmd/sam-console
-FROM gcr.io/distroless/static-debian12:nonroot
+FROM gcr.io/distroless/static-debian12:nonroot@sha256:afa5c872c891853ca7fcf1f12c3edb23f7eeef36189728842dd51042ff57f7ab
WORKDIR /app
COPY --from=builder --chown=nonroot:nonroot /bin/sam-console /usr/local/bin/sam-console
diff --git a/Dockerfile.sam-control-plane b/Dockerfile.sam-control-plane
index 1059bd6e..0959c70a 100644
--- a/Dockerfile.sam-control-plane
+++ b/Dockerfile.sam-control-plane
@@ -1,5 +1,5 @@
# Stage 1: Build
-FROM golang:1.27.1 AS builder
+FROM golang:1.27.1@sha256:f44f6e88636cfb311f9ebace870ded69d943f227bb3cb27d32ffd84ea18c43ea AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
@@ -11,7 +11,7 @@ RUN CGO_ENABLED=0 GOOS=linux go build -buildvcs=false -o sam-control-plane ./cmd
RUN mkdir -p /data-seed && chown 65532:65532 /data-seed
# Stage 2: Final
-FROM gcr.io/distroless/static:nonroot
+FROM gcr.io/distroless/static:nonroot@sha256:e2e927ec666bae08560abb3c55d0659eceabb657f56b6782ab500a9fc7f555e3
WORKDIR /tmp
COPY --from=builder --chown=nonroot:nonroot /app/sam-control-plane /
COPY --from=builder --chown=nonroot:nonroot /data-seed /data
diff --git a/Dockerfile.sam-node b/Dockerfile.sam-node
index 76a3114d..e9f29b78 100644
--- a/Dockerfile.sam-node
+++ b/Dockerfile.sam-node
@@ -1,5 +1,5 @@
# Stage 1: Build
-FROM golang:1.27.1 AS builder
+FROM golang:1.27.1@sha256:f44f6e88636cfb311f9ebace870ded69d943f227bb3cb27d32ffd84ea18c43ea AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
@@ -11,7 +11,7 @@ RUN CGO_ENABLED=0 GOOS=linux go build -buildvcs=false -o sam-node ./cmd/sam-node
RUN mkdir -p /data-seed && chown 65532:65532 /data-seed
# Stage 2: Final
-FROM gcr.io/distroless/static:nonroot
+FROM gcr.io/distroless/static:nonroot@sha256:e2e927ec666bae08560abb3c55d0659eceabb657f56b6782ab500a9fc7f555e3
WORKDIR /tmp
COPY --from=builder --chown=nonroot:nonroot /app/sam-node /
COPY --from=builder --chown=nonroot:nonroot /data-seed /data
diff --git a/Dockerfile.sam-one b/Dockerfile.sam-one
index 22489cc2..ee520f57 100644
--- a/Dockerfile.sam-one
+++ b/Dockerfile.sam-one
@@ -1,5 +1,5 @@
# Stage 1: Build
-FROM golang:1.27.1 AS builder
+FROM golang:1.27.1@sha256:f44f6e88636cfb311f9ebace870ded69d943f227bb3cb27d32ffd84ea18c43ea AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
@@ -11,7 +11,7 @@ RUN CGO_ENABLED=0 GOOS=linux go build -buildvcs=false -o sam-one ./cmd/sam-one
RUN mkdir -p /data-seed && chown 65532:65532 /data-seed
# Stage 2: Final
-FROM gcr.io/distroless/static:nonroot
+FROM gcr.io/distroless/static:nonroot@sha256:e2e927ec666bae08560abb3c55d0659eceabb657f56b6782ab500a9fc7f555e3
WORKDIR /tmp
COPY --from=builder --chown=nonroot:nonroot /app/sam-one /
COPY --from=builder --chown=nonroot:nonroot /data-seed /data
diff --git a/Dockerfile.sam-router b/Dockerfile.sam-router
index 9126a102..30c61801 100644
--- a/Dockerfile.sam-router
+++ b/Dockerfile.sam-router
@@ -1,5 +1,5 @@
# Stage 1: Build
-FROM golang:1.27.1 AS builder
+FROM golang:1.27.1@sha256:f44f6e88636cfb311f9ebace870ded69d943f227bb3cb27d32ffd84ea18c43ea AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
@@ -11,7 +11,7 @@ RUN CGO_ENABLED=0 GOOS=linux go build -buildvcs=false -o sam-router ./cmd/sam-ro
RUN mkdir -p /data-seed && chown 65532:65532 /data-seed
# Stage 2: Final
-FROM gcr.io/distroless/static:nonroot
+FROM gcr.io/distroless/static:nonroot@sha256:e2e927ec666bae08560abb3c55d0659eceabb657f56b6782ab500a9fc7f555e3
WORKDIR /tmp
COPY --from=builder --chown=nonroot:nonroot /app/sam-router /
COPY --from=builder --chown=nonroot:nonroot /data-seed /data
diff --git a/development/examples/agent-harness/Dockerfile b/development/examples/agent-harness/Dockerfile
index 6d880b4a..3ee5ce1c 100644
--- a/development/examples/agent-harness/Dockerfile
+++ b/development/examples/agent-harness/Dockerfile
@@ -1,14 +1,14 @@
# A sandbox image holds the harness and the init that gives it a route.
# No credentials, and no proxy configuration: the agent is unmodified and does
# not know it is confined.
-FROM golang:1.26.5 AS init
+FROM golang:1.26.5@sha256:705e964a93a2fd2e75c7d59bb7d781b57e30f12293ffde5175c69229e18fb678 AS init
WORKDIR /src
COPY cmd/nano-init/go.mod cmd/nano-init/go.sum ./
RUN go mod download
COPY cmd/nano-init/ ./
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o /nano-init .
-FROM python:3.12-slim
+FROM python:3.12-slim@sha256:78387bc3881b8273120a12ebe6c1ab22b018ccc2c9adf565ae1ac9b536e184ea
# Nothing else is needed. nano-init carries its own TCP stack and speaks
# netlink directly, so this image has no tun2proxy, no socat and no iproute2 —
diff --git a/development/examples/calc-mcp/Dockerfile b/development/examples/calc-mcp/Dockerfile
index 0858bbbf..587b441f 100644
--- a/development/examples/calc-mcp/Dockerfile
+++ b/development/examples/calc-mcp/Dockerfile
@@ -1,4 +1,4 @@
-FROM python:3.12-slim
+FROM python:3.12-slim@sha256:78387bc3881b8273120a12ebe6c1ab22b018ccc2c9adf565ae1ac9b536e184ea
WORKDIR /srv
COPY requirements.txt /srv/
diff --git a/development/examples/chat-a2a/Dockerfile b/development/examples/chat-a2a/Dockerfile
index 57f1fdb2..98c64844 100644
--- a/development/examples/chat-a2a/Dockerfile
+++ b/development/examples/chat-a2a/Dockerfile
@@ -1,4 +1,4 @@
-FROM python:3.12-slim
+FROM python:3.12-slim@sha256:78387bc3881b8273120a12ebe6c1ab22b018ccc2c9adf565ae1ac9b536e184ea
WORKDIR /srv
COPY requirements.txt /srv/
diff --git a/development/examples/code-reviewer-pool/manager/Dockerfile b/development/examples/code-reviewer-pool/manager/Dockerfile
index 48ce2615..12d94c75 100644
--- a/development/examples/code-reviewer-pool/manager/Dockerfile
+++ b/development/examples/code-reviewer-pool/manager/Dockerfile
@@ -1,4 +1,4 @@
-FROM node:22-slim
+FROM node:22-slim@sha256:83f487e0a63425e5b4d146fb5e5be574bcbe1b7b843d3ebafdd95eaf7767a7e5
WORKDIR /srv
COPY package.json server.mjs lease-token.mjs ./
diff --git a/development/examples/code-reviewer-pool/reviewer/Dockerfile b/development/examples/code-reviewer-pool/reviewer/Dockerfile
index 34616d79..15bf6a21 100644
--- a/development/examples/code-reviewer-pool/reviewer/Dockerfile
+++ b/development/examples/code-reviewer-pool/reviewer/Dockerfile
@@ -1,4 +1,4 @@
-FROM node:22-slim
+FROM node:22-slim@sha256:83f487e0a63425e5b4d146fb5e5be574bcbe1b7b843d3ebafdd95eaf7767a7e5
# The review agent: Google's Gemini CLI.
RUN npm install -g @google/gemini-cli
diff --git a/development/examples/everything-mcp/Dockerfile b/development/examples/everything-mcp/Dockerfile
index 87cb6fd0..2a74df7f 100644
--- a/development/examples/everything-mcp/Dockerfile
+++ b/development/examples/everything-mcp/Dockerfile
@@ -1,3 +1,3 @@
-FROM node:22-slim
+FROM node:22-slim@sha256:83f487e0a63425e5b4d146fb5e5be574bcbe1b7b843d3ebafdd95eaf7767a7e5
EXPOSE 3001
CMD ["npx", "-y", "@modelcontextprotocol/server-everything", "streamableHttp"]
diff --git a/development/examples/gemini-buddy-mcp/Dockerfile b/development/examples/gemini-buddy-mcp/Dockerfile
index b93b42b0..4841b4c9 100644
--- a/development/examples/gemini-buddy-mcp/Dockerfile
+++ b/development/examples/gemini-buddy-mcp/Dockerfile
@@ -1,4 +1,4 @@
-FROM node:22-slim
+FROM node:22-slim@sha256:83f487e0a63425e5b4d146fb5e5be574bcbe1b7b843d3ebafdd95eaf7767a7e5
# The buddy: Google's Gemini CLI.
RUN npm install -g @google/gemini-cli
diff --git a/development/examples/greeter-mcp/Dockerfile b/development/examples/greeter-mcp/Dockerfile
index e2b3cdab..818bb50a 100644
--- a/development/examples/greeter-mcp/Dockerfile
+++ b/development/examples/greeter-mcp/Dockerfile
@@ -1,4 +1,4 @@
-FROM python:3.12-slim
+FROM python:3.12-slim@sha256:78387bc3881b8273120a12ebe6c1ab22b018ccc2c9adf565ae1ac9b536e184ea
WORKDIR /srv
COPY requirements.txt /srv/
diff --git a/hack/gen-proto.sh b/hack/gen-proto.sh
index 6fb12821..75034201 100755
--- a/hack/gen-proto.sh
+++ b/hack/gen-proto.sh
@@ -16,7 +16,8 @@
set -e
echo "Installing protobuf Go plugins..."
-go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
+# Keep in sync with the google.golang.org/protobuf version in go.mod.
+go install google.golang.org/protobuf/cmd/[email protected]
echo "Generating Go protobuf code..."
mkdir -p api
diff --git a/tests/e2e/docker/Dockerfile.mock-oidc b/tests/e2e/docker/Dockerfile.mock-oidc
index 8b27ce81..d706cde0 100644
--- a/tests/e2e/docker/Dockerfile.mock-oidc
+++ b/tests/e2e/docker/Dockerfile.mock-oidc
@@ -1,4 +1,4 @@
-FROM python:3.12-slim
+FROM python:3.12-slim@sha256:78387bc3881b8273120a12ebe6c1ab22b018ccc2c9adf565ae1ac9b536e184ea
RUN pip install pyjwt cryptography
diff --git a/tests/e2e/docker/Dockerfile.sam-runtime b/tests/e2e/docker/Dockerfile.sam-runtime
index 0f89a369..818c3edb 100644
--- a/tests/e2e/docker/Dockerfile.sam-runtime
+++ b/tests/e2e/docker/Dockerfile.sam-runtime
@@ -3,7 +3,7 @@
# Build container: compiles the Go binaries via `make build`.
# 1.26 because nano-init's TCP stack requires it; the root module is happy on
# anything newer than it asks for.
-FROM golang:1.26-alpine AS build
+FROM golang:1.26-alpine@sha256:ce864e7223ac17b1775e6fd0b4c0db580c2eb50e7953a427916379e4b92a1628 AS build
WORKDIR /src
RUN apk add --no-cache git make
@@ -19,7 +19,7 @@ RUN --mount=type=cache,target=/go/pkg/mod \
make build
# Final container: minimal alpine runtime hosting the built binaries.
-FROM alpine:3.20
+FROM alpine:3.20@sha256:d9e853e87e55526f6b2917df91a2115c36dd7c696a35be12163d44e6e2a4b6bc
# curl is the agent in sandbox tests, and iproute2 lets a test assert what the
# sandbox's routing table actually says. socat remains for tests that bridge a
diff --git a/tests/e2e/docker/a2a-echo/Dockerfile b/tests/e2e/docker/a2a-echo/Dockerfile
index edfa13fa..a53cfe0e 100644
--- a/tests/e2e/docker/a2a-echo/Dockerfile
+++ b/tests/e2e/docker/a2a-echo/Dockerfile
@@ -1,4 +1,4 @@
-FROM python:3.12-slim
+FROM python:3.12-slim@sha256:78387bc3881b8273120a12ebe6c1ab22b018ccc2c9adf565ae1ac9b536e184ea
WORKDIR /workspace
COPY ./requirements.txt /workspace/requirements.txt
diff --git a/tests/e2e/docker/calc-mcp/Dockerfile b/tests/e2e/docker/calc-mcp/Dockerfile
index 06851a1e..ac9270cd 100644
--- a/tests/e2e/docker/calc-mcp/Dockerfile
+++ b/tests/e2e/docker/calc-mcp/Dockerfile
@@ -1,4 +1,4 @@
-FROM python:3.12-slim
+FROM python:3.12-slim@sha256:78387bc3881b8273120a12ebe6c1ab22b018ccc2c9adf565ae1ac9b536e184ea
WORKDIR /workspace
COPY ./calc_server.py /workspace/calc_server.py