Documentation index

揮発性のある入力データは消える場合がある(Volatile inputs can disappear)

ネットワークから受信したデータは、たとえそう見えなくても、揮発性のあるデータとして扱うことになります。 ビルドシステムをリモートデータに依存させるべきではありません。

どうしても必要な場合は次のようにします。

  1. 暗号学的ハッシュ関数に基づくチェックサムを算出し、完全性を保証する(ensure integrity using cryptographic checksums,)
  2. バックアップを保存する(keep backups.)

データ取得に失敗した場合に参照する場所を用意して、同時にバックアップも用意しておくのが理想的です。

FreeBSD の Ports は参考になると思います。 Port の description には MASTER_SITESDISTFILESdistinfo とそれぞれに対する暗号学的ハッシュ関数に基づくチェックサムを記録したファイルを取得できる場所の一覧)が含まれています。 FreeBSD のインフラは、全ての distfiles の複製をミラーネットワークから利用できることを保証しています。 port (パッケージ)をビルドするとき、元の master site へアクセスできないときは、ミラーネットワークにアクセスします。


Documentation index

Follow us on Twitter @ReproBuilds, Mastodon @reproducible_builds@fosstodon.org & Reddit and please consider making a donation. • Content licensed under CC BY-SA 4.0, style licensed under MIT. Templates and styles based on the Tor Styleguide. Logos and trademarks belong to their respective owners. • Patches welcome via our Git repository (instructions) or via our mailing list. • Full contact info