bootstrap: install Homebrew from its signed pkg
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
Direzione di ricerca
Read install/bootstrap.zsh:168 and install/brew:77 to trace both Homebrew installation paths, and check how the pinned Team ID in signers (#65) is intended to be used. Then review README.md:25 and make the documented bootstrap guidance match the issue. Done means both install paths reject packages signed by another team, no Homebrew curl | bash remains in install/, and the README says where the bootstrap line may come from.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
install/bootstrap.zsh:168 and install/brew:77 install Homebrew this
way:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
This runs whatever is on Homebrew's main branch that day. Nothing is
pinned. Nothing is signed. Nothing is checked.
Homebrew also publishes a signed .pkg on its GitHub releases. A signed
package can be checked. A piped script cannot.
Do
- Download the
.pkgfor a pinned release. - Check it with
pkgutil --check-signature. Require Homebrew's Team ID.
Record the Team ID once, by hand, and pin it insigners(#65). - Install it with
installer -pkg ... -target /. - Remove the
curl | bashline from both files.
If the .pkg does not fit, fall back: pin install.sh to a commit and
check its sha256 before running it.
Why now
ISC SANS diary 32942 describes a fake Homebrew page. A paid search ad
leads to it. The page shows a curl | bash line. The line installs a
stealer. It asks for the password in a popup and uploads what it
collects.
This repo does not take its install line from a search result. That is
the main defense, and it holds. But the bootstrap still teaches the same
habit: paste a curl | zsh line into Terminal (README.md:25).
Add one sentence to the README: type the URL, or clone with git. Never
copy the line from a search result.
Also note: real Homebrew and this bootstrap ask for a password only at
the sudo prompt in Terminal. A password popup means stop.
Done when
- No
curl | bashfor Homebrew remains in install/. - A
.pkgsigned by any other team fails the bootstrap. - The README says where the bootstrap line may come from.
- Lingua principale
- Shell
- Stelle
- 1
- Fork
- 0
- Merge medio
- 9h 5m
- PR unite (30g)
- 5
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di indexzero/dotfiles
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 56/100
Tutte le issue di indexzero/dotfiles
Issue simili
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
elhajahmadj/offline-emergency-library#157 ·
I maintainer di solito rispondono entro 1 giorno
-
idea-scout idea:245
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
jeanibarz/agent-notebook#245 ·
I maintainer di solito rispondono entro 1 giorno
-
7.2 user documentation (HelpHub)
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
WordPress/Documentation-Issue-Tracker#2559 · 1 commento ·
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 61/100
JWhite212/SignalLadder#215 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
I maintainer di solito rispondono entro 1 giorno