Attestation crate: Make 'allow any' measurement policies be explicitly opt-in
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di flashbots/attested-tls
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
flashbots/attested-tls#92 · 4 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
flashbots/attested-tls#87 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
flashbots/attested-tls#84 · 7 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
flashbots/attested-tls#82 · 1 commento ·
-
Attestation evidence is size restricted because rustls caps Certificate handshake message at 64kb Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
flashbots/attested-tls#75 ·
Tutte le issue di flashbots/attested-tls
Issue simili
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
yantrikos/yantrik-os#255 ·
-
Replayed reasoning items send "content": null, which the Responses API schema does not permit Apertabug CLI custom-model
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
raphamorim/rio#1956 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
rust-bitcoin/rust-bitcoin#6930 · 1 commento ·