Repository navigation
security(obolup): pinned, verified Ollama install bound to the Docker bridge - #924
Merged
Merged
Conversation
… bridge Replaces `curl https://ollama.com/install.sh | sh`, which was unpinned, unverified, not atomic, installed NVIDIA drivers and apt repos unasked, and (with obolup's drop-in) exposed the unauthenticated API on every interface. - pinned OLLAMA_VERSION + per-asset sha256 (linux amd64/arm64 tar.zst, amd64 ROCm, macOS zip) checked before extraction; a version-only bump fails TestObolupOllamaPins and is refused at runtime - atomic swap via lib/ollama.obolup-new; the old install is restored on any failure; no-op when the pinned version is installed - never installs drivers, apt repos or kernel modules; reports the GPU state; ROCm only with /dev/kfd; read-only hint for driver leftovers - hardened systemd unit (NoNewPrivileges, ProtectSystem=strict, ProtectHome, PrivateTmp, no device restrictions), written only if missing or ours (Ollama's own unit replaced on consent, backed up; other units get only the bind drop-in); restart only on change - Linux k3d: listens on the Docker bridge gateway only (After=docker, retries until docker0 exists); the old 0.0.0.0 drop-in is removed; k3s/rootless Docker keep 127.0.0.1 with instructions - obol finds Ollama on the bridge without OLLAMA_HOST; doctor reports the bridge bind as good and still warns on 0.0.0.0; obolup offers the OLLAMA_HOST line for the shell profile - macOS: verified Ollama-darwin.zip swapped into /Applications Credit: Ollama (MIT). Written from scratch, no code copied.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces
curl https://ollama.com/install.sh | sh, which was unpinned, unverified, not atomic, installed NVIDIA drivers and apt repos unasked, and (with obolup's drop-in) exposed the unauthenticated API on every interface.Credit: Ollama (MIT). Written from scratch, no code copied.