Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

repo/index-v2.json is a re-serialization, not the bytes that were served

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
security

調査の方向性

まず btlog.py を読み、json.dump で repo/index-v2.json を生成する方法を調べます。その出力を配信された index-v2.json と比較し、ログに配信されたバイト列を保持させるべきか、シリアライザーの設定を記録させるべきかを判断します。受け手が推測した CPython のデフォルトに頼らず、配信されたファイルを再現または検証できれば完了です。

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

説明

The JSON in this log isn't the JSON that was served. btlog.py parses it and writes it back with json.dump(..., indent=2), so repo/index-v2.json here is 1,055,505 bytes where the served file is 687,628.

Checked rather than assumed: parsing today's served index-v2.json with object_pairs_hook=OrderedDict and re-dumping at indent=2 reproduces the file in this repo byte-for-byte, sha256 144593b4ea4f2dd5…. So the log does hold today's index — just not the bytes anyone received.

That makes "People can then check that any file that they received from that F-Droid repository was a publicly released file" true only for someone running CPython who guesses the exact call. The separators, the escaping and the number formatting are json.dump defaults, declared nowhere in the log, and no other language reproduces them.

The .jar path is fine. Stripping to META-INF/ keeps the manifest digests, so a received entry.json can be checked against SHA-256-Digest without the payload being stored twice.

Storing the served bytes would close it. Failing that, recording which serializer produced these files would at least make them reproducible on purpose rather than by inference.

主要言語
言語のデータがありません
スター
9
フォーク
3
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

guardianproject/binary_transparency_log のほかの issue

guardianproject/binary_transparency_log の issue をすべて見る

似ている issue

Security の issue をもっと見る

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

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