Add a sub-command to prune the certificates of an aggregator database
Los mantenedores suelen responder en 3 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Rust
- Estrellas
- 155
- Forks
- 52
- Merge medio
- 3 d 9 h
- PR fusionados (30 d)
- 33
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la 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 IntersectMBO/mithril
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
IntersectMBO/mithril#1605 · 2 comentarios ·
Los mantenedores suelen responder en 3 días
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
IntersectMBO/mithril#3748 ·
Los mantenedores suelen responder en 3 días
-
feature :rocket:
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
IntersectMBO/mithril#3743 ·
Los mantenedores suelen responder en 3 días
-
optimization :hammer_and_wrench:
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
IntersectMBO/mithril#3741 ·
Los mantenedores suelen responder en 3 días
-
infrastructure :classical_building:
Dificultad 4/5 3-5 días Aptitud para principiantes 54/100
IntersectMBO/mithril#3740 ·
Los mantenedores suelen responder en 3 días
Todos los issues de IntersectMBO/mithril
Issues similares
-
triage: failed
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
oxc-project/tsrs#1277 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
autofixer: follow-up triage: bug triage: classified triage: correctness triage: has-reproducer
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
tursodatabase/turso#13221 ·
Los mantenedores suelen responder en 1 día
-
Update Wasmtime to 48.0.11 for RUSTSEC-2026-0648Posiblemente ocupada @flyingrobots la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
flyingrobots/edict#457 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100