Add a sub-command to prune the certificates of an aggregator database
メンテナーはふだん 3 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
調査の方向性
Start by reading the certificate pruning task and the retention rules in issue #3727, then trace how the aggregator CLI defines its tools subcommands and how database foreign keys connect certificates to signed entities. The issue also calls for dry-run and certificate-chain verification, measurements on copies of four network databases, and aggregator-guide documentation. Done means the command prunes according to the rules and reports the requested counts, sizes, query latency, and chain validity.
索引モデルが issue の本文から書いたものです。
説明
Why
The gain of the certificate pruning on the storage and on the query latency is unknown on real databases, and operators need a way to prune an existing database without waiting for the upkeep of a running aggregator.
What
A new sub-command of the tools command of the aggregator CLI prunes the certificates of an aggregator database with the retention rules, and its gain is assessed on copies of the databases of testing-preview and of the other Mithril networks.
How
- Implement the pruner that removes the eligible certificates older than the retention, keeping the genesis certificates, the master certificates of each epoch and the protected signed entity types (depending on rules established in #3727)
- Add a sub-command to the
toolscommand of the aggregator CLI that- Prunes the certificates of a database with a given retention, reusing the certificate pruning task
- Remove the signed entities linked to the pruned certificates (deal with foreign keys)
- Warn that aggregator must not be running in the mean time?
- Implement a dry run for the sub-command
- The database files are given as input to the command
- Verify the certificate chain after pruning
- Report the number of pruned certificates and signed entities, and the size of the database before and after the pruning and the vacuum
- Assess the gain on copies of the databases of the Mithril networks (
testing-preview,pre-release-preview,release-preprodandrelease-mainnet):- Size of the database
- Latency of the certificate queries
- Validity of the certificate chain after the pruning
- Document the sub-command in the aggregator guide
- 主要言語
- Rust
- スター
- 155
- フォーク
- 52
- 平均マージ
- 3日 9時間
- マージ済み PR(30日)
- 33
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
IntersectMBO/mithril のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
IntersectMBO/mithril#1605 · コメント 2 件 ·
メンテナーはふだん 3 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
IntersectMBO/mithril#3748 ·
メンテナーはふだん 3 日以内に返信
-
feature :rocket:
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
IntersectMBO/mithril#3743 ·
メンテナーはふだん 3 日以内に返信
-
optimization :hammer_and_wrench:
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
IntersectMBO/mithril#3741 ·
メンテナーはふだん 3 日以内に返信
-
infrastructure :classical_building:
難易度 4/5 3〜5日 初心者へのやさしさ 54/100
IntersectMBO/mithril#3740 ·
メンテナーはふだん 3 日以内に返信
IntersectMBO/mithril の issue をすべて見る
似ている issue
-
triage: failed
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
oxc-project/tsrs#1277 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
autofixer: follow-up triage: bug triage: classified triage: correctness triage: has-reproducer
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
tursodatabase/turso#13221 ·
メンテナーはふだん 1 日以内に返信
-
Update Wasmtime to 48.0.11 for RUSTSEC-2026-0648対応中かも @flyingrobots が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
flyingrobots/edict#457 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100