Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Attestation crate: Make 'allow any' measurement policies be explicitly opt-in

Aperta
#97 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
security

Direzione di ricerca

Start by locating the measurement policy JSON parser and the code that handles omitted constraints and unknown fields. Review how existing policies are represented, then determine how explicit allow-any and measurement constraints should be validated without losing the stated forward-compatibility goal. Done means the behavior and migration impact are resolved and covered by tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

In the measurement policy JSON format, you can omit the measurement constraints, which will mean 'allow any measurements with this attestation type' .

Unknown fields are also ignored, so a typo in the JSON field name such as measurments can silently turn a constrained policy into one that accepts any measurements for the selected attestation type.

Rejecting all unknown fields would catch this, but would make forwards compatibility harder - if we later add more fields, old versions break.

Another option would be to require that each record should explicitly specify one of:

  • Measurement constraints, using measurement values or dcap_image_hashes.
  • An option explicitly allowing any measurements, such as "allow_any_measurements": true.

We would then reject records containing neither, or conflicting choices. And continue accepting unknown fields for forward compatibility.

But - existing policies that intentionally omit constraints would stop working.

Lingua principale
Rust
Stelle
6
Fork
3
Merge medio
4g 5h
PR unite (30g)
7

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di flashbots/attested-tls

Tutte le issue di flashbots/attested-tls

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.