brew: check installed apps against their pins after self-update

オープン
#66 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
58/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
macos, shell
領域
cli, tooling

調査の方向性

This depends on #65, which provides the pins and verify-casks --installed; read that issue and inspect the existing dotfiles doctor command entry point. Start by running the installed-cask check and trace how its results can be reported. Done when one command reports each installed cask's signer state, stays silent on success unless asked, and fails when a pin is changed.

索引モデルが issue の本文から書いたものです。

説明

Brew installs an app once. After that, the app updates itself. Ten of
the thirteen desktop casks set auto_updates. Their updaters deliver
all later code. Brew does not see it.

The pins from #65 still apply. An update signed by a different team is
the event to catch.

Do

Run verify-casks --installed on a schedule. Two choices:

  • A launchd agent, daily. It writes failures to a log and posts a
    notification.
  • A dotfiles doctor subcommand, run by hand.

Start with the subcommand. Add the agent if the subcommand is forgotten.

Output

One line per app. Say nothing on success unless asked.

FAIL signer: /Applications/Slack.app is not signed by BQR82RBBHL
FAIL gatekeeper: /Applications/eul.app is not notarized
UNPINNED tolaria

Not in scope

The check does not stop a bad update. It finds one after the fact. To
stop updates, disable the updater. That trades a rare risk for a
constant one: browsers and password managers then wait for a manual
bump. Do not do that.

Done when

  • One command reports the signer state of every installed cask.
  • Changing a pin by one character makes that command fail.

Depends on #65.

主要言語
Shell
スター
1
フォーク
0
平均マージ
9時間 5分
マージ済み PR(30日)
5

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

indexzero/dotfiles のほかの issue

indexzero/dotfiles の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。