Skip to content

API scoped verify follow-ups from the #2437 cross-vendor review #2474

Open

Description

@abrichr

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):

  1. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions