GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — build: qualify Host API 0.38.6 with Go 1.27.3 (#4) · PastureStack/host-api@67d1e58

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • security-release-gate.yml
  • .gitignore
  • COMPATIBILITY.md
  • Dockerfile.dapper
  • README.md
  • go.mod
  • scripts
    • build
    • package
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/security-release-gate.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/security-release-gate.yml
+23-5Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-24.04
1717
timeout-minutes: 120
1818
env:
19-
CANDIDATE_VERSION: 0.38.5
19+
CANDIDATE_VERSION: 0.38.6
2020
DAPPER_IMAGE: pasturestack-host-api-dapper:security-gate
2121
TRIVY_IMAGE: ghcr.io/aquasecurity/trivy:0.73.0@sha256:7cced7cae583819fc7806d4cbc0dbbc7cad18b99f7d3e235192e6da8c091045c
2222
COSIGN_IMAGE: ghcr.io/sigstore/cosign/cosign:v3.1.3@sha256:9e5c2f2edc34351160407ca3416c61855bdf9403c3c5936e0f0be7fc261611b8
@@ -35,8 +35,9 @@ jobs:
3535
set -euo pipefail
3636
test -z "$(git status --porcelain)"
3737
test "$(git rev-parse HEAD)" = "$GITHUB_SHA"
38-
test "$(git rev-list --count d56f3d0..HEAD)" = 1
39-
test "$(git rev-list --count --merges d56f3d0..HEAD)" = 0
38+
# Exactly one reviewed maintenance commit after the existing published main.
39+
test "$(git rev-list --count b124a9cce56cc3e1082d2f72434592bccb15f6ef..HEAD)" = 1
40+
test "$(git rev-list --count --merges b124a9cce56cc3e1082d2f72434592bccb15f6ef..HEAD)" = 0
4041
private_pattern=$(printf '%s|%s|%s' 'chen''21019' '10\.0\.0\.''125' 'C:\\''Users\\')
4142
if git grep -n -E "$private_pattern" -- .; then
4243
echo 'Private operator data is present in the public source tree.' >&2
@@ -67,6 +68,10 @@ jobs:
6768
"$DAPPER_IMAGE" bash -lc \
6869
'go version -m /go/src/github.com/PastureStack/host-api/bin/host-api' \
6970
> evidence/host-api-go-version.txt
71+
test "$(awk 'NR == 1 {print $2}' evidence/host-api-go-version.txt)" = go1.27.3
72+
grep -F 'CGO_ENABLED=0' evidence/host-api-go-version.txt
73+
grep -F "vcs.revision=$GITHUB_SHA" evidence/host-api-go-version.txt
74+
grep -F 'vcs.modified=false' evidence/host-api-go-version.txt
7075
awk '$1 == "#" && ($3 ~ /^v/ || $3 ~ /^[0-9]/) { print $2 "\t" $3 }' \
7176
vendor/modules.txt > evidence/go-modules.tsv
7277
test -s evidence/go-modules.tsv
@@ -140,6 +145,16 @@ jobs:
140145
--output /evidence/source-secret-scan.json /workspace
141146
rm -rf -- "$source_snapshot"
142147
148+
# Scan the delivered executable, not only the compressed outer package.
149+
product_snapshot=$(mktemp -d "${RUNNER_TEMP}/host-api-product.XXXXXX")
150+
tar --no-same-owner -xzf "dist/artifacts/host-api-${CANDIDATE_VERSION}.tar.gz" -C "$product_snapshot"
151+
product_binary=$(find "$product_snapshot" -type f -path '*/bin/host-api')
152+
test -n "$product_binary"
153+
test "$(find "$product_snapshot" -type f -path '*/bin/host-api' | wc -l)" = 1
154+
cmp evidence/host-api-linux-amd64 "$product_binary"
155+
(cd "$product_snapshot"; sha256sum -c */SHA256SUMSSUM; sha256sum -c */SHA256SUMS)
156+
test "$("$product_binary" --version)" = "$CANDIDATE_VERSION"
157+
143158
docker run --rm \
144159
-v "$TRIVY_CACHE:/root/.cache/trivy" \
145160
"$TRIVY_IMAGE" image --cache-dir /root/.cache/trivy --download-db-only
@@ -152,11 +167,14 @@ jobs:
152167
--output /evidence/source-vulnerability-scan.json /workspace
153168
docker run --rm --network none \
154169
-v "$TRIVY_CACHE:/root/.cache/trivy" \
155-
-v "$GITHUB_WORKSPACE/dist/artifacts:/artifacts:ro" \
170+
-v "$product_snapshot:/artifacts:ro" \
156171
-v "$GITHUB_WORKSPACE/evidence:/evidence" \
157-
"$TRIVY_IMAGE" fs --cache-dir /root/.cache/trivy --skip-db-update --offline-scan \
172+
"$TRIVY_IMAGE" rootfs --cache-dir /root/.cache/trivy --skip-db-update --offline-scan \
158173
--scanners vuln,secret --severity CRITICAL,HIGH --format json \
159174
--output /evidence/artifact-scan.json /artifacts
175+
jq -e '[.Results[]? | select(.Type == "gobinary" and (.Target | endswith("/bin/host-api")))] | length == 1' \
176+
evidence/artifact-scan.json >/dev/null
177+
rm -rf -- "$product_snapshot"
160178
docker run --rm --network none \
161179
-v /var/run/docker.sock:/var/run/docker.sock \
162180
-v "$TRIVY_CACHE:/root/.cache/trivy" \
Collapse file

‎.gitignore‎

Copy file name to clipboardExpand all lines: .gitignore
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/bin/
33
/host-api
44
/dist/
5+
/evidence/
56
/gopath/
67

78
*.sw[mnop]
Collapse file

‎COMPATIBILITY.md‎

Copy file name to clipboardExpand all lines: COMPATIBILITY.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Preferred settings use `platform-*` names. Historical `cattle-*` flags, legacy D
66

77
Operator lifecycle messages support `en-US` and `zh-TW`. HTTP response bodies, log streams, statistics payloads, Docker output, identifiers, and protocol errors are not translated.
88

9-
The current candidate is `0.38.5`, built with Go 1.27.2 on a digest-pinned Ubuntu 26.04 image and an exact Ubuntu package snapshot. Server packaging consumes `host-api-0.38.5.tar.gz`; its filename, executable layout, architecture, legacy SHA-1 compatibility files, and SHA-256 integrity files are release contracts. Product versions must remain pure numeric `MAJOR.MINOR.PATCH` values without branding or maintenance suffixes.
9+
The source package version is `0.38.6`, built with Go 1.27.3 on a digest-pinned Ubuntu 26.04 image, a frozen bootstrap package snapshot, and checksum-pinned official security fixes. The final builder inventory records installed versions separately from the bootstrap lock. A published package must retain its reviewed producer revision, byte-identical packaging evidence, and successful security checks of the unpacked binary. Server packaging consumes `host-api-0.38.6.tar.gz`; its filename, executable layout, architecture, legacy SHA-1 compatibility files, and SHA-256 integrity files are release contracts. Product versions must remain pure numeric `MAJOR.MINOR.PATCH` values without branding or maintenance suffixes.
1010

1111
Before release, validate token acquisition, event forwarding, logs, stats, exec, console, Docker socket proxy, container proxy, disabled-proxy behavior, key parsing, and restart behavior.
1212

Collapse file

‎Dockerfile.dapper‎

Copy file name to clipboardExpand all lines: Dockerfile.dapper
+34-3Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ COPY --from=snapshot-ca-certificates /etc/ssl/certs/ca-certificates.crt /etc/ssl
66
COPY package/ubuntu-apt.lock /licenses/ubuntu-apt.lock
77

88
ARG DAPPER_HOST_ARCH=amd64
9-
ARG GO_VERSION=1.27.2
10-
ARG GO_SHA256_amd64=ecbadb99091a3f46e31f5f934b068b1864eafa7995211b39eaddf76996045fe5
11-
ARG GO_SHA256_arm=e25a174051d8675f87ac720aedcd25bf89ac652c4b82f26aa47919524725ed95
9+
ARG GO_VERSION=1.27.3
10+
ARG GO_SHA256_amd64=65efbc80fdc1fa2cd2631cad5b481777a68e8725f34e89f50fc6ac714e379b40
11+
ARG GO_SHA256_arm=d6f4e11dd7157030d7ac11c51c8f73201a2db932d593c3106b1da11cc32bfdf8
1212

1313
ENV DEBIAN_FRONTEND=noninteractive
1414
ENV HOST_ARCH=${DAPPER_HOST_ARCH} \
@@ -25,6 +25,16 @@ ENV HOST_ARCH=${DAPPER_HOST_ARCH} \
2525

2626
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
2727

28+
# Official fixed packages overlay the frozen bootstrap snapshot at build time.
29+
# Keep both original bootstrap locks and the final installed inventory.
30+
ADD --checksum=sha256:2c418a61d7165d0cde01d9cb05ae025cc41fc75ef6d3f095996bd045ba0945dc https://security.ubuntu.com/ubuntu/pool/main/c/curl/curl_8.18.0-1ubuntu2.8_amd64.deb /tmp/curl.deb
31+
ADD --checksum=sha256:8db913e1fa5a694ca6ba7b828bd18c5204e6853ac07fe7ed9c6e1f94e3444d8e https://security.ubuntu.com/ubuntu/pool/main/c/curl/libcurl3t64-gnutls_8.18.0-1ubuntu2.8_amd64.deb /tmp/libcurl3t64-gnutls.deb
32+
ADD --checksum=sha256:7c0b37592f83a629cc22f0c98effa176da9edbd6d77b3f38184a9d0ddc5e0266 https://security.ubuntu.com/ubuntu/pool/main/c/curl/libcurl4t64_8.18.0-1ubuntu2.8_amd64.deb /tmp/libcurl4t64.deb
33+
ADD --checksum=sha256:3ff73e121f6cd4f19e80ab4329dfd914108b3936c9db3708200203a9b245b34d https://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl3t64_3.5.5-1ubuntu3.7_amd64.deb /tmp/libssl3t64.deb
34+
ADD --checksum=sha256:6965aafe69e0a49ef34d2e26f8e83d09d1c6037b7e9ee37f19b292a3c6851621 https://security.ubuntu.com/ubuntu/pool/main/o/openssl/openssl_3.5.5-1ubuntu3.7_amd64.deb /tmp/openssl.deb
35+
ADD --checksum=sha256:51cf418571059831096abd40e0bd5debaa1ae48a6f8d87d9e4e5f7f12aa4db52 https://security.ubuntu.com/ubuntu/pool/main/o/openssl/openssl-provider-legacy_3.5.5-1ubuntu3.7_amd64.deb /tmp/openssl-provider-legacy.deb
36+
ADD --checksum=sha256:0498bc9510149ef06abd6c09b8932e43c5bc71b68634b4b8f84488b2e0a20e82 https://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_7.0.0-38.38_amd64.deb /tmp/linux-libc-dev.deb
37+
2838
RUN set -eux; \
2939
. /licenses/ubuntu-apt.lock; \
3040
find /etc/apt -type f \( -name '*.list' -o -name '*.sources' \) -exec sed -i \
@@ -50,6 +60,27 @@ RUN set -eux; \
5060
runc="${UBUNTU_APT_RUNC_VERSION}" \
5161
tar="${UBUNTU_APT_TAR_VERSION}" \
5262
xz-utils="${UBUNTU_APT_XZ_UTILS_VERSION}"; \
63+
for package in curl libcurl3t64-gnutls libcurl4t64 libssl3t64 openssl openssl-provider-legacy linux-libc-dev; do \
64+
case "$package" in \
65+
curl|libcurl*) expected=8.18.0-1ubuntu2.8 ;; \
66+
linux-libc-dev) expected=7.0.0-38.38 ;; \
67+
*) expected=3.5.5-1ubuntu3.7 ;; \
68+
esac; \
69+
test "$(dpkg-deb -f "/tmp/${package}.deb" Package)" = "$package"; \
70+
test "$(dpkg-deb -f "/tmp/${package}.deb" Version)" = "$expected"; \
71+
test "$(dpkg-deb -f "/tmp/${package}.deb" Architecture)" = amd64; \
72+
done; \
73+
dpkg -i /tmp/curl.deb /tmp/libcurl3t64-gnutls.deb /tmp/libcurl4t64.deb \
74+
/tmp/libssl3t64.deb /tmp/openssl.deb /tmp/openssl-provider-legacy.deb /tmp/linux-libc-dev.deb; \
75+
for package in curl libcurl3t64-gnutls libcurl4t64 libssl3t64 openssl openssl-provider-legacy linux-libc-dev; do \
76+
case "$package" in \
77+
curl|libcurl*) expected=8.18.0-1ubuntu2.8 ;; \
78+
linux-libc-dev) expected=7.0.0-38.38 ;; \
79+
*) expected=3.5.5-1ubuntu3.7 ;; \
80+
esac; \
81+
test "$(dpkg-query -W -f='${Version}' "$package")" = "$expected"; \
82+
rm -f "/tmp/${package}.deb"; \
83+
done; \
5384
{ \
5485
printf 'snapshot\t%s\n' "${UBUNTU_APT_SNAPSHOT}"; \
5586
dpkg-query -W -f='${binary:Package}\t${Version}\n' | LC_ALL=C sort; \
Collapse file

‎README.md‎

Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ PastureStack is an independent community effort to preserve, audit, and moderniz
66

77
## Capabilities
88

9-
The source package version is `0.38.5`. Target-bound API Key tickets require matching Engine introspection at handshake and during logs, exec, and statistics streams. Revocation or expiry closes the stream; it does not stop its container or kill an already started exec process. Legacy and full-without-expiry tokens retain their authentication contract.
9+
The source package version is `0.38.6`, built with Go 1.27.3. Use a published release only after its source, reproducibility, vulnerability, and packaged-binary checks pass; a source version is not publication evidence. Target-bound API Key tickets require matching Engine introspection at handshake and during logs, exec, and statistics streams. Revocation or expiry closes the stream; it does not stop its container or kill an already started exec process. Legacy and full-without-expiry tokens retain their authentication contract.
1010

1111
The authenticated backend connection declares the exact `key-audit-v1,key-delegation-v1` capabilities. A compatible Proxy requires that declaration for every verified API Key stream, including full keys, so an older embedded backend cannot bypass terminal audit. Ordinary non-Key streams retain their existing backend compatibility.
1212

Collapse file

‎go.mod‎

Copy file name to clipboardExpand all lines: go.mod
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module github.com/PastureStack/host-api
22

33
go 1.26.0
44

5-
toolchain go1.27.2
5+
toolchain go1.27.3
66

77
require (
88
github.com/PastureStack/websocket-proxy v0.23.13-0.20260809214500-903576e1d20a
@@ -15,6 +15,7 @@ require (
1515
github.com/sirupsen/logrus v1.10.2
1616
github.com/vishvananda/netlink v1.3.1
1717
github.com/vishvananda/netns v0.0.5
18+
golang.org/x/sys v0.47.0
1819
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
1920
)
2021

@@ -59,6 +60,5 @@ require (
5960
go.opentelemetry.io/otel v1.45.0 // indirect
6061
go.opentelemetry.io/otel/metric v1.45.0 // indirect
6162
go.opentelemetry.io/otel/trace v1.45.0 // indirect
62-
golang.org/x/sys v0.47.0 // indirect
6363
pgregory.net/rapid v1.3.0 // indirect
6464
)
Collapse file

‎scripts/build‎

Copy file name to clipboardExpand all lines: scripts/build
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if [ -f ./build/bootstrap.envs ];then
88
. ./build/bootstrap.envs
99
fi
1010

11-
BUILD_VERSION=${VERSION_OVERRIDE:-0.38.5}
11+
BUILD_VERSION=${VERSION_OVERRIDE:-0.38.6}
1212
BUILD_VERSION=${BUILD_VERSION#v}
1313
if [[ ! "$BUILD_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
1414
echo 'VERSION_OVERRIDE must use MAJOR.MINOR.PATCH with no suffix' >&2
Collapse file

‎scripts/package‎

Copy file name to clipboardExpand all lines: scripts/package
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ cd "$(dirname "$0")/.."
88
ARCH=${ARCH:?"ARCH not set"}
99
SUFFIX=""
1010
[ "${ARCH}" != "amd64" ] && SUFFIX="_${ARCH}"
11-
RELEASE_VERSION=${VERSION_OVERRIDE:-v0.38.5}
11+
RELEASE_VERSION=${VERSION_OVERRIDE:-v0.38.6}
1212
RELEASE_VERSION=${RELEASE_VERSION#v}
1313
CONTENT=${PASTURESTACK_PACKAGE_ID:-$(git rev-parse --short=32 HEAD)}
1414
SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH:-$(git show -s --format=%ct HEAD)}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.