bootstrap: install Homebrew from its signed pkg
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Shell
- Estrellas
- 1
- Forks
- 0
- Merge medio
- 9 h 5 min
- PR fusionados (30 d)
- 5
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de indexzero/dotfiles
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 45/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 56/100
Todos los issues de indexzero/dotfiles
Issues similares
-
enhancement needs:sonnet ready-for-agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
package-update
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
oSoWoSo/oco#889 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
fish-shell/fish-shell#13084 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
good first issue priority:low type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
crazy-goat/fdb-php#182 ·
Los mantenedores suelen responder en 1 día
-
[php-ext] test.sh slow/bytes/debug readiness loops fall through after 10s and mask the real failureAbiertoarea:php-extension good first issue priority:low type:tests
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
crazy-goat/go-mesi#616 ·
Los mantenedores suelen responder en 1 día