You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
API scoped verify follow-ups from the #2437 cross-vendor review #2474
Items from Codex's round-3 review of #2437 at 59113785 that this PR does not fix. The fail-open items in that review are fixed in the PR itself.
Known misses (the other-actor class, reported as known misses by decision):
A full replacement (replace: true) is sent from the pre-read record with no version precondition (scoped.py about line 181). A concurrent edit by another caller between the read and the write is erased, and frame verification still passes, because it compares against that same baseline. A fix needs If-Match/ETag or version fields per API, which belongs to the other-actor work.
Not fail-open:
2. With no audit configured, a successful read-back alone gives a signed VERIFIED (scoped.py about line 662). This is by design for systems without a log, but the receipt should say that no log was checked, and the CLI should be able to require one.
3. The Medplum marker replaces the caller's whole identifier array (scoped.py about line 170). The patient is created without the intended identifiers, and read-back then reports the mismatch. That is honest, but it costs a write. Merge the marker into the array instead.
4. A signing failure still returns, and caches, VERIFIED with receipt: false (scoped.py about line 596). The write was verified. Decide whether an unsigned result may be cached, or should be retried for signing.
Activity
fix(flow): close fail-open follow-ups from the receipts stack