Promote v0.11.0 to production

This commit is contained in:
GPU Kitchen delivery
2026-11-13 18:24:07 +00:00
parent 1b0aea97ff
commit a08dc811b0
4 changed files with 529 additions and 125 deletions
+21 -3
View File
@@ -215,7 +215,7 @@ Options:
--profile <p> homelab | small-team | managed-network | public (no flag + a terminal
= the script asks; no flag + no terminal = first-run asks)
--domain <d> Name the UI is reached by through a reverse proxy, any
profile: allowed as a host of the install, proxy trusted for
profile: allowed as a host of the cluster, proxy trusted for
the client address, and a filled TLS reverse-proxy example
written to <data-root>/caddy/Caddyfile. A re-run keeps it
--no-domain Drop the domain an existing install was given
@@ -388,7 +388,7 @@ case "$EXISTING" in
step "Existing install — $MANIFEST"
ok "image $(manifest_str image)"
_root=$(manifest_str dataRoot); _cache=$(manifest_str hostPath)
_cluster=$(manifest_str GPUK_CLUSTER); _profile=$(manifest_str GPUK_INSTALL_PROFILE)
_cluster=$(manifest_str GPUK_CLUSTER); _profile=$(manifest_str GPUK_SECURITY_PROFILE)
# The edition an install runs is its image's basename (gpukitchen-controller-ee).
_edition=$(manifest_str image); _edition=${_edition%@*}; _edition=${_edition##*/}
case "${_edition%%:*}" in *-ee) _edition=enterprise ;; *) _edition=community ;; esac
@@ -960,6 +960,22 @@ image_repo() {
esac
}
# [OPS-20] A signed channel document carries a sequence that only grows, a rollback included
# (a new document naming an older release): one below the highest this host accepted is an old
# document replayed, refused. The highest is kept beside the installation's settings.
check_channel_sequence() { # $1 = the verified document, $2 = 1 to remember it
_seq=$(sed -n 's/.*"sequence"[[:space:]]*:[[:space:]]*\([0-9][0-9]*\).*/\1/p' "$1" | head -1)
_seen=$(cat "$ETC_DIR/channel-sequence" 2>/dev/null || true)
case "$_seen" in '' | *[!0-9]*) _seen=0 ;; esac
[ -n "$_seq" ] || _seq=0
[ "$_seq" -ge "$_seen" ] \
|| die "the release channel document is older than one this host already read (sequence $_seq, seen $_seen) — refusing a replayed document (OPS-20)"
if [ "${2:-0}" = 1 ] && [ "$_seq" -gt "$_seen" ] && [ -d "$ETC_DIR" ] && [ -w "$ETC_DIR" ]; then
printf '%s\n' "$_seq" > "$ETC_DIR/channel-sequence.tmp" \
&& mv "$ETC_DIR/channel-sequence.tmp" "$ETC_DIR/channel-sequence"
fi
}
if [ -n "$IMAGE" ]; then
ok "using the image given on the command line: $IMAGE"
[ -n "$VERSION" ] || VERSION="(pinned by --image)"
@@ -976,6 +992,8 @@ else
|| die "no signature at $CHANNEL_URL.minisig — refusing an unsigned channel document (OPS-20)"
verify_signature "$CHANNEL_DOC" "$CHANNEL_DOC.minisig" "the release channel ($CHANNEL_URL)"
ok "release channel signature verified"
# A dry run installs nothing, the sequence it read included.
check_channel_sequence "$CHANNEL_DOC" "$([ "$DRY_RUN" -eq 1 ] || echo 1)"
fi
CHANNEL_VERSION=$(json_field version < "$CHANNEL_DOC")
@@ -1339,7 +1357,7 @@ esac
# [INS-50] Linking to a GPU Kitchen account is never a first-run step: a banner in
# the app offers it, and the person approves on gpu.kitchen — no key is copied here,
# none ever travels in a URL (CPT-05/06).
echo " A banner in the app connects this installation to your GPU Kitchen account:"
echo " A banner in the app connects this cluster to your GPU Kitchen account:"
echo " \"Connect to my account\" or \"Create an account\" on the GPU.Kitchen hub (gpu.kitchen) — nothing to copy."
case "$PROFILE" in