Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix(docker): add GPG key fingerprint verification for NodeSource repository

LearningCircuit610659bbebf0
diff --git a/Dockerfile b/Dockerfile
index 9b1e6ef6ac..5ab1fc0cad 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -18,7 +18,24 @@ RUN apt-get update && apt-get upgrade -y \
ca-certificates \
gnupg \
# Add NodeSource GPG key and repository directly (pinned to Node.js 22.x LTS)
- && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --batch --dearmor -o /usr/share/keyrings/nodesource.gpg \
+ # GPG key fingerprint verification for supply chain security
+ # Key: NSolid <[email protected]> (RSA 2048-bit, created 2016-05-23)
+ # Fingerprint verified from: https://github.com/nodesource/distributions
+ # If key rotates, update NODESOURCE_GPG_FINGERPRINT and verify new key at:
+ # https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key
+ && NODESOURCE_GPG_FINGERPRINT="6F71F525282841EEDAF851B42F59B5F99B1BE0B4" \
+ && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key -o /tmp/nodesource.gpg.key \
+ && ACTUAL_FINGERPRINT=$(gpg --with-fingerprint --with-colons --show-keys /tmp/nodesource.gpg.key 2>/dev/null | grep "^fpr" | head -1 | cut -d: -f10) \
+ && if [ "$ACTUAL_FINGERPRINT" != "$NODESOURCE_GPG_FINGERPRINT" ]; then \
+ echo "ERROR: NodeSource GPG key fingerprint mismatch!" >&2; \
+ echo "Expected: $NODESOURCE_GPG_FINGERPRINT" >&2; \
+ echo "Actual: $ACTUAL_FINGERPRINT" >&2; \
+ echo "The NodeSource signing key may have been rotated or compromised." >&2; \
+ echo "Verify the new key and update NODESOURCE_GPG_FINGERPRINT if valid." >&2; \
+ exit 1; \
+ fi \
+ && gpg --batch --dearmor -o /usr/share/keyrings/nodesource.gpg /tmp/nodesource.gpg.key \
+ && rm /tmp/nodesource.gpg.key \
&& echo "deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_22.x nodistro main" > /etc/apt/sources.list.d/nodesource.list \
&& apt-get update \
&& apt-get install -y --no-install-recommends nodejs \