Skip to content

Wave 10: privilege refuse-when-read, row seal non-finite, Transit key names, FHIR lookup gate order, SOAP closing steps (BACKLOG #6015 #6714 #6717 #6718 #6010 #6710 #8299 #5911 #5912 #5526) - #3206

Open
wshallwshall wants to merge 35 commits into
mainfrom
w10-wave

Conversation

@wshallwshall

Copy link
Copy Markdown
Collaborator

Wave 10 of the runbook batches, Manager runbook-batch-manager-fa3030 (account 9), successor to the retired acct6-batches Manager. It merges five Builder branches, each with --no-ff onto origin/main. Every item is reversible by a revert. The sixth branch, w10-482-unbuilt, conflicts in store/crypto_transit.py with w10-transit-kek and rides the next PR.

1. Store privilege probe, w10-privilege (#6015, #6714, #6715)

Merge danger. Reversible: yes. Blast radius: the store startup privilege preflight on SQL Server and PostgreSQL (store/privilege.py, store/sqlserver.py, store/postgres.py), sqlserver_roles.py, transports/database.py (the shared probed_grant), the posture route's risk text, and docs (DEPLOY-SERVER-DB.md, CONFIGURATION.md, SECURITY-LOOSENING.md).
Evidence.

  • Before: the new tests failed on origin/main or on the branch's earlier heads. Under enforce, a read sysadmin or db_owner beside an unread role column only warned. A read CONTROL was reported as "nothing" read as held. The posture risk text did not name unread grants.
  • After: all pass. Locally: the privilege suites (311 passed), the posture and seam suites, and the doc suites.

#6015 item 1 is built under the owner ruling of 2026-11-23, "Refuse when read": under enforce, a login read as holding an over-grant is refused even when another column is unread, and the unread columns are reported.
Banners.

  • #6015 CLOSED: the claim was met by PR 2879; added items 1-8 are built here, item 1 under the owner ruling of 2026-11-23.
  • #6714 PARTIAL: added items 2-6 are built. Left: a reviewed not-a-bug ruling on the headline (custom roles flagged by name).
  • #6715 OPEN: nothing built; per-process warning keys are a design item.

2. Row seal, w10-rowseal-celltag (#6717, #6718)

Merge danger. Reversible: yes. Blast radius: store/row_seal.py, row sealing and verification. A pinned test shows the encoded bytes are unchanged, so every seal main wrote still verifies.
Evidence. Before: the Transit sealer sealed NaN and infinity, and its _parse raised on a non-text seal (10 tests red on main). After: both refuse cleanly, with 303 seal tests passing locally.
Banners.

  • #6717 PARTIAL: the Transit sealer refuses NaN and infinity, as the local sealer does, through NonFiniteSealValueError. Items 2-7 are fixed; items 1 and 8 are kept, each with a one-line reason. Left: item 9, a finite check in the keyless store's record builders (store.py).
  • #6718 PARTIAL: item 1 is met on main; item 3 is fixed with a test. Left: item 2, the str() coercion in SessionRecord.from_mapping (store.py).

3. Transit key names, w10-transit-kek (#6010, #6710)

Merge danger. Reversible: yes. Blast radius: store/keyprovider_vault.py, store/crypto_transit.py, a tls_policy.py docstring, and CONFIGURATION.md rows. Each change adds a refusal or keeps refusal text; no refusal becomes an accept.
Evidence. Before: a malformed key-name refusal lost its text at the store seams, and a malformed name reached the cipher, the key-type check and the seal verify. After: one helper reads each name, and each use checks it again. New tests were red on main. Locally: 918 related tests, plus 1913 across the files that pin the seam texts.
Banners.

  • #6010 MET: the claim and item 1 by PR 2879; items 2-13 by this PR.
  • #6710 PARTIAL: item 3 is met. Left: item 1 (the cache decision), item 2 (wrapped retired DEKs, a design change), item 4 (base.py, after PR 3164).

4. FHIR and SMART, w10-fhir-smart (#8299, #5911)

Merge danger. Reversible: yes. Blast radius: the FHIR transport and FhirLookup (transports/fhir.py), transports/rest.py's shared static-auth refusal, config/static_credentials.py, and CONNECTIONS.md rows.
Evidence. Before: 13 new tests failed on main. A later lookup's pure-check refusal followed an earlier lookup's crossing record; the cleartext bearer was judged only after the SMART provider was built; dropped credentials were accepted silently. After: all pass, and refusals naming a credential-word lookup survive the scrubber (15 cases, red before). Locally: 2133 related tests.
Banners.

  • #8299 PARTIAL: items 2, 3, 6 and 8 are built; item 4 for cleartext http; the first half of item 9; item 1 on fhir.py and rest.py. Left: item 5 and the rest of item 1 (soap.py/http_auth.py), item 4's verify-off half, item 7 kept, and item 9's restatement half.
  • #5911 MET: step 6 is built here (the CONNECTIONS.md rows); the other steps were met by PR 3144.

5. SOAP, w10-soap (#5912, #5526)

Merge danger. Reversible: yes. Blast radius: SOAP fault classification and credentials (transports/soap.py, http_auth.py), rest.py (one call site), the static_credentials.py census, CONNECTIONS.md, and ADRs 0015 and 0139. One behaviour change was accepted by the owner on 2026-11-23: a reply whose Header holds a WS-Security code, behind a Body start tag inside a comment, now retries on a Receiver fault in the real Body instead of dead-lettering.
Evidence. Before: 41 new tests failed on main; 9 controls passed. After: all pass; 367 related tests locally after the final code commit.
Banners.

  • #5912 PARTIAL: closing steps 5, 6 (Body-anchor half), 9, 11, 13 (ADR half), 17 and 24 (_FAULT_TAG_IN_MARKUP half) are built. Steps 8, 18 and 22 stay parity trades.
  • #5526 PARTIAL: items 2, 5 (SOAP), 6 (SOAP, REST), 9, 11 and 12 are built; items 7, 8 and 14-22 are met on main; item 4 is kept. Left: FHIR's twins of items 1, 5 and 6, the FTPS items, and item 9's census bearer reading (env() provider keys are read raw; an env() oauth2_token_url with no oauth2_enabled key is a recorded gap).

QA

Each branch ran the code-review skill at xhigh: two repair rounds plus one unrepaired round, and a further round after each later code fix. Every tag read xhigh effort → 10 inline angles → dedup (no verify) → sweep → ≤15 findings, and review_tag.py exited 0. Rounds:

  • privilege: round-b0262ae36c, round-1dd2a54991, round-2b283388df, round-0f02503340, round-79efb8acec, round-ee8617cb2f;
  • row seal: round-34826d1e74, round-7fda01e78d, round-9cc9e9bbd3;
  • transit-kek: round-b0ed9d0765, round-7c12744659, round-7d06cacac8;
  • fhir-smart: round-f83d2ad98b, round-38fd7ea9a8, round-ae5c59c253, round-ab481f0dfc;
  • soap: round-5283f2a924, round-6ccae380b2, round-13ffa10a8b, round-90103bd703, round-117c3b9418.

Commits after each branch's last round are text only, or add test assertions. One branch commit message, b967d4fec38 on the row seal branch, describes code a later round reverted, so squash-merge.

Combined-tree check: none yet. The five merges were clean, but the combined suite was not run locally; read CI.

Open findings

Each Builder's open findings go to the row the item cites, as listed in its report. Two pre-existing items need a fix soon:

  • In the privilege probe, a failed user-defined-role enumeration with no fixed-role over-grant reads OBSERVED and clean. The StorePrivilegeView docstring states otherwise.
  • docs/CONFIGURATION.md's key_provider row says an unset MEFOR_STORE_VAULT_ADDR or MEFOR_STORE_VAULT_TOKEN is "refused, naming the variable"; at the store seam that text is not kept.

Hosted legs to read

  • The full test legs.
  • The four mypy legs.
  • The SQL Server and PostgreSQL server-db legs, since the preflight tests changed.
  • The changelog-fragment check.

…read grants in the summary, and db_securityadmin

Builds the added items engine PR 2879 left on BACKLOG #6015 and #6714.

- probed_grant moves to the leaf messagefoundry/sqlserver_roles.py; store/privilege.py
  re-exports it, sqlserver.py drops its one-line _probed_grant wrapper, and
  transports/database.py classify_login_roles calls it instead of repeating the rule
  (BACKLOG #6015 items 7, 8).
- StorePrivilegeReport gains `unread`: an unread external-only grant beside a read
  over-grant now reaches summary() and the audit payload, not detail alone, on SQL Server
  and PostgreSQL (#6015 item 2).
- The SQL Server alter_schema probe passes QUOTENAME(SCHEMA_NAME()), as the VIEW
  DEFINITION columns do (#6015 item 4).
- The unread denominator says it counts role and CONTROL grants (#6015 item 6); the
  PostgreSQL unread wording names non-boolean answers (#6015 item 5); the probe
  docstrings say which unread grants stop the observation (#6015 item 3).
- sqlserver_excess: db_securityadmin suppresses the VIEW DEFINITION line (#6714 item 2).
- The early UNOBSERVABLE "what DID read as held" text names a held CREATE TABLE and
  ALTER on the schema under external (#6714 item 3).
- docs/DEPLOY-SERVER-DB.md exit-3 bullet says which memberships hide the VIEW DEFINITION
  line (#6714 item 4); docs/CONFIGURATION.md fifo_claim_proc row scopes GRANT EXECUTE ON
  OBJECT:: (#6714 item 6); the live schema-split leg revokes VIEW DEFINITION in a finally
  (#6714 item 5).

BACKLOG #6015, BACKLOG #6714, BACKLOG #6715 (not built: design).

Proposed PR title: Store privilege probe: R2 added items for #6015 and #6714 (shared probed_grant, unread grants in the summary, db_securityadmin)

Proposed banners:
#6015 CLOSED: claim met by PR 2879; added items 2-8 built here; item 1 kept by design
(the #1234 pin: an unread role or CONTROL grant makes the report UNOBSERVABLE even beside
a read sysadmin).
#6714 PARTIAL: added items 2-6 built here (item 1 by PR 2879); S01-68 reads met on main
(owner_named counts CONTROL SERVER, and sysadmin alone among server roles). Left: a
reviewed not-a-bug ruling on the headline (custom roles flagged by name, by design per
DEPLOY-SERVER-DB.md 1.3, the Manager's reading).
#6715 OPEN: nothing built. Left: per-process warning keys (a stable process identity
for the bare `store` subject), a design item.
…xt seal as malformed

The local sealer refused a NaN or an infinity at seal time and the Transit
sealer sealed it; both now refuse through one in-encoder check, raising
NonFiniteSealValueError (a ValueError subclass). The check runs only where a
seal is made, so a check over such a row still fails rather than raises, and
it no longer copies the fields or makes a second pass.

TransitRowSealer._parse now reads a non-text stored seal as malformed, as
RowSealer._parse does, so require_seal_for_write refuses a session row with
one as Forged instead of raising TypeError.

The encoded bytes are unchanged: tests/test_row_seal_followups.py pins a seal
and a Transit digest read on origin/main d2ed8a8. Prose: the -0.0 fact is
stated once, in the module docstring; the false "keep their encodings" clause
is gone.

BACKLOG #6717, #6718
…BACKLOG #6010, #6710)

BACKLOG #6010 items 2-13 and #6710 item 3, the R2 items PR 2879 left.

- keyprovider_vault: checked_transit_key_name says "ASCII letters" and
  scopes its redirect claim to a slash (item 5). Its refusal and the
  32-byte DEK refusal are recorded (base._recorded), so the key seam's
  and build_store_cipher's fixed-text replacement keep them (#6010
  item 3, #6710 item 3). transit_key_name_setting is the one
  read-then-check for the KEK and both Transit names (item 10).
  require_transit_key_type checks its name before read_key (item 9).
  _kek_name docstring and construction comment corrected (item 4).
- crypto_transit: _key_names reads both names before refusing and
  names each bad variable in one refusal (item 7). TransitCipher checks
  both names (item 9). Fail-closed docstrings say "at least" and name a
  malformed name (item 8).
- tls_policy: the twin CA comment no longer says an internal-CA Vault
  always fails closed; it names the ambient bundle variables (item 2).
- docs/CONFIGURATION.md key_provider and cipher_provider rows: the key
  name shape and the 32-byte DEK rule (items 6, 11).
- tests: _BAD_KEY_NAMES reuses _MALFORMED_KEK_NAMES (item 12); a test
  goes through build_store_cipher (item 13).

Proposed PR title: Transit key names: one read, checked at each use,
refusal text kept (BACKLOG #6010, #6710)

Proposed banners:
#6010 MET. The claim and item 1 were met by PR 2879; items 2 to 13 are
met by this PR.
#6710 PARTIAL. Item 3 met by this PR. Left: item 1 (cache, a decision
owed; the event-loop cost is #5888), item 2 (wrapped retired DEKs, a
design change), item 4 (shape check at base._checked_active_key, in
store/base.py, which open PR 3164 edits).
… dropped static credentials

FhirLookupExecutor settles every lookup's url and header screens, length
limits, timeout and hop declarations in _planned, for every lookup, before
any lookup reaches a hop gate. A length refusal names the lookup. The
cleartext bearer check runs before the SMART provider is built.

The FHIR destination and FhirLookup refuse a non-table headers, a lone
Basic half, a ':' in basic_user and bearer_token beside Basic, through
REST's _refuse_unsendable_static_auth, now taking a transport label.

Comments on the FHIR destination and REST that claimed no crossing for a
connection that never builds now claim it for a build this check refuses.
CONNECTIONS.md FHIR rows name the build-time refusals.

Red first: 13 new tests fail with origin/main's fhir.py and rest.py.

BACKLOG #8299 (items 1 part, 2, 3, 4, 6, 8, 9), BACKLOG #5911 (step 6).

Proposed PR title: FHIR lookup gate order and static credential refusals (BACKLOG #8299, #5911)
Proposed banner #8299: PARTIAL: items 2, 3, 4, 6, 8, 9 built, item 1 for fhir.py and rest.py. Left: item 1 soap.py and the refuse_http_digest_conflicts docstring; item 5 (needs http_auth.py docstring); item 7 residual; items 10-25.
Proposed banner #5911: MET: step 6 settings-row text added; changelog fragment already on main; steps 3-5 and 7-11 as PR 3144 states.
- StorePrivilegeReport.unread is filled on UNOBSERVABLE reports too (SQL Server's
  fixed-role and external-only paths, PostgreSQL's audit path), and the type refuses
  OBSERVED with unread grants and an empty excess, which `finding` would read as clean.
- A held ALTER on a NULL default schema is named under the unresolved-schema label
  instead of an empty name the comparator dropped; the unread ALTER label names its
  schema.
- The protocol docstring no longer claims every backend reads every grant three ways;
  it names the SQL Server enumeration that notes its failure in detail only.
- probed_grant's docstrings say PostgreSQL reads with it too.
- docs/DEPLOY-SERVER-DB.md exit-3 bullet says which memberships hide which lines, and
  that the output can list grants it could not read.

BACKLOG #6015, BACKLOG #6714.

Proposed PR title: Store privilege probe: R2 added items for #6015 and #6714 (shared probed_grant, unread grants in the summary, db_securityadmin)

Proposed banners:
#6015 CLOSED: claim met by PR 2879; added items 2-8 built on branch w10-privilege; item 1
kept by design (the #1234 pin: an unread role or CONTROL grant makes the report
UNOBSERVABLE even beside a read sysadmin).
#6714 PARTIAL: added items 2-6 built on branch w10-privilege (item 1 by PR 2879); S01-68
reads met on main (owner_named counts CONTROL SERVER, and sysadmin alone among server
roles). Left: a reviewed not-a-bug ruling on the headline (custom roles flagged by name,
by design per DEPLOY-SERVER-DB.md 1.3, the Manager's reading).
#6715 OPEN: nothing built. Left: per-process warning keys (a stable process identity
for the bare `store` subject), a design item.
…gner

BACKLOG #5912 closing steps 6 (Body anchor half), 9, 11, 13 (ADR half), 17,
24 (_FAULT_TAG_IN_MARKUP half) and 5:
- _find_fault takes the first Body start tag outside terminated markup.
- A first-child code element holding only whitespace falls back as an
  empty one does.
- The fallback reuses the first-child Fault close-tag scan where it stepped
  over no markup, instead of a second plain scan.
- The fallback rule is stated once, in _fault_code's docstring; the ADR
  0015 amendment, CONNECTIONS.md, the changelog and the module comments
  point there. The ADR close-tag sentence names both exceptions.
- Two rows pin "the first" of several in-markup Faults.

BACKLOG #5526 items 2, 4, 5, 6, 9, 11 and 12:
- SOAP refuses bearer_token beside a Basic pair; the census lists Basic.
- SOAP and REST refuse a signing header named Authorization beside a
  configured or minted credential.
- SOAP runs the Digest conflict check once and names the connection when
  built without the runner.
- The census lists Digest for an unresolved env() http_auth.
- ADR 0139 and the CONNECTIONS.md ECH row record the REST ECH+Digest
  refusal.
…s; colon and empty-table tests

Review round-f83d2ad98b repairs. The lookup comment, the _planned docstring
and the test docstring now claim the no-record ordering for the checks
_planned runs, not every pure check. The proxy header's length check runs
only when a proxy header was added, the revocation attestation is read once
in _planned, and the headers refusal names the connection and refuses an
empty non-table value. Tests add the ':' in basic_user case on both
connectors. The changelog and CONNECTIONS.md headers row are worded to match.

BACKLOG #8299, BACKLOG #5911.

Proposed PR title: FHIR lookup gate order and static credential refusals (BACKLOG #8299, #5911)
Proposed banner #8299: PARTIAL: items 2, 3, 4, 6 and 8 built, item 9 first half (the length refusal names the lookup), item 1 for fhir.py and rest.py. Left: item 1 soap.py and the refuse_http_digest_conflicts docstring (http_auth.py); item 5 (needs the http_auth.py docstring); item 7 residual; item 9 second half (SDS-3.5); items 10-25.
Proposed banner #5911: PARTIAL to MET on step 6: settings-row text added to docs/CONNECTIONS.md; the changelog fragment is on main from PR 3144. Steps 3-5 and 7-11 as PR 3144 states.
…t rule

- The non-finite refusal reads the fields whole first again, so it wins over
  an encoder TypeError in any field order, as on main; math.isfinite.
- TransitRowSealer._digest takes finite as a required keyword.
- require_seal_for_write drops its own non-text guard; both sealers' _parse
  is the one rule.
- Prose: the module docstring names which calls refuse and that seal_bytes
  and digests on it (passkey_digest) do not; the NOT NULL and nullable cases
  are stated in NonFiniteSealValueError.
- Tests: positive controls on every Transit non-text check, a Transit session
  read with a BLOB seal, the subclass asserted in the existing test.

BACKLOG #6717, #6718

Proposed PR title: Row seal: Transit sealer refuses non-finite floats and
reads a non-text seal as malformed (BACKLOG #6717, #6718)

Proposed banners:
#6717 PARTIAL: Transit sealer now refuses NaN/inf as the local one does,
NonFiniteSealValueError, items 2-8 fixed or kept. Left: item 9 (keyless
store record builders write a NaN silently), store.py, outside this brief.
#6718 MET: item 1 met on main (_encodes), items 2 and 3 fixed with tests.
- The `unread` field comment and the protocol docstring say an empty tuple does not mean
  every grant was read, with "at least" cases, rather than one exception read as the list.
- The PostgreSQL NULL current_schema report names its unread grant in `unread`.
- The probed_grant docstrings scope the PostgreSQL caller to its audit-table columns,
  and classify_login_roles' docstring names the SQL Server store preflight.
- The alter_schema QUOTENAME comment cites what it matches, not a comment that is not
  there.
- docs/DEPLOY-SERVER-DB.md exit-3 bullet: a role or CONTROL grant hides lines, and an
  unread grant left after the over-grants are gone exits 4.

BACKLOG #6015, BACKLOG #6714.

Proposed PR title: Store privilege probe: R2 added items for #6015 and #6714 (shared probed_grant, unread grants in the summary, db_securityadmin)

Proposed banners:
#6015 CLOSED: claim met by PR 2879; added items 2-8 built on branch w10-privilege; item 1
kept by design (the #1234 pin: an unread role or CONTROL grant makes the report
UNOBSERVABLE even beside a read sysadmin).
#6714 PARTIAL: added items 2-6 built on branch w10-privilege (item 1 by PR 2879); S01-68
reads met on main (owner_named counts CONTROL SERVER, and sysadmin alone among server
roles). Left: a reviewed not-a-bug ruling on the headline (custom roles flagged by name,
by design per DEPLOY-SERVER-DB.md 1.3, the Manager's reading).
#6715 OPEN: nothing built. Left: per-process warning keys (a stable process identity
for the bare `store` subject), a design item.
…710)

- The refusal text names a name of dots alone beside a slash as what
  can move the request path; ".." does.
- _key_names reads each refusal's text from the engine's record, never
  the instance, with a fixed fallback naming the variable.
- The unset KEK / wrapped DEK refusal is recorded too, so the key seam
  keeps it.
- verify_seal_hmac checks its key name before any request.
- tls_policy CA paragraph lists the variables instead of claiming one
  record, and allows a directory (VAULT_CAPATH).
- tests: test_keyless_chain_every_command pins the recorded text for an
  unset MEFOR_STORE_TRANSIT_KEY; the seam test stubs the client.

Proposed PR title: Transit key names: one read, checked at each use,
refusal text kept (BACKLOG #6010, #6710)

Proposed banners:
#6010 MET. The claim and item 1 were met by PR 2879; items 2 to 13 are
met by this PR.
#6710 PARTIAL. Item 3 met by this PR. Left: item 1 (cache, a decision
owed; the event-loop cost is #5888), item 2 (wrapped retired DEKs, a
design change), item 4 (shape check at base._checked_active_key, in
store/base.py, which open PR 3164 edits).
…igest check

Repairs from code-review round-5283f2a924 (BACKLOG #5912, #5526):
- The census reads an env() http_auth against the guard's values, and an
  unresolved one as Digest only where no minted bearer stands beside it.
- The Body anchor takes the plain match unless markup precedes it, so the
  Python-level step-over runs only then; _BODY_RE stays live.
- Item 4 reverted: digest_handler_from_settings keeps its own refusal run.
- Shared Authorization-header predicate; the signer refusal returns early
  when no signer writes Authorization.
- CONNECTIONS.md OAuth2 row and Body-anchor sentence, changelog wording.

Proposed PR title: SOAP fault anchor and blank code; one Authorization owner beside a signer (BACKLOG #5912, #5526)

Proposed banners:
#5912 PARTIAL: closing steps 5, 6 (Body-anchor half), 9, 11, 13 (ADR half), 17 and the _FAULT_TAG_IN_MARKUP half of 24 met on branch w10-soap. Left: steps 8, 18 and 22, parity-with-main trades that close on a fix or the owner's acceptance by name; step 6's second half is step 22's shape.
#5526 PARTIAL: items 2, 5 (SOAP), 6 (SOAP and REST), 9, 11 and 12 built on branch w10-soap; items 7, 8, 14 to 22 met on main; item 10 kept by design (ADR 0015 amendment 2026-11-10); filing finding 2 is item 6. Left: item 1's FHIR half; item 4, kept in one line (the second Digest refusal run stays, since skipping it behind a caller flag would make a security refusal optional); item 5's REST and FHIR twins; item 6's FHIR twin; item 13 and filing finding 1 (FTPS, #5530).
…ants refuses

Text only. The `unread` field comment and the SQL Server probe docstring said the start
"still refuses" on what was read; it refuses under enforce with no accepted opt-out, and
otherwise warns. From the unrepaired review round-2b283388df, finding 1.

BACKLOG #6015.

Proposed PR title: Store privilege probe: R2 added items for #6015 and #6714 (shared probed_grant, unread grants in the summary, db_securityadmin)

Proposed banners:
#6015 CLOSED: claim met by PR 2879; added items 2-8 built on branch w10-privilege; item 1
kept by design (the #1234 pin: an unread role or CONTROL grant makes the report
UNOBSERVABLE even beside a read sysadmin).
#6714 PARTIAL: added items 2-6 built on branch w10-privilege (item 1 by PR 2879); S01-68
reads met on main (owner_named counts CONTROL SERVER, and sysadmin alone among server
roles). Left: a reviewed not-a-bug ruling on the headline (custom roles flagged by name,
by design per DEPLOY-SERVER-DB.md 1.3, the Manager's reading).
#6715 OPEN: nothing built. Left: per-process warning keys (a stable process identity
for the bare `store` subject), a design item.
…kup; spy control

Review round-38fd7ea9a8 repairs. Both FHIR _build_headers read a dict
again, as the static-credential census and the rotation watcher do, and
_refuse_unsendable_static_headers refuses any other type, a Mapping that is
not a dict included, so the wire and the census cannot disagree. A lookup's
credential refusal now opens "FhirLookup '<name>': ". The token-provider
spy test gains its positive control. static_credentials.py's docstring no
longer says REST and FHIR send nothing on one Basic half; both refuse.

BACKLOG #8299, BACKLOG #5911.

Proposed PR title: FHIR lookup gate order and static credential refusals (BACKLOG #8299, #5911)
Proposed banner #8299: PARTIAL: items 2, 3, 6 and 8 built; item 4 built for cleartext http (a verify_tls=false SMART lookup still builds its provider first); item 9 first half; item 1 for fhir.py and rest.py. Left: item 1 soap.py and the refuse_http_digest_conflicts docstring (http_auth.py); item 5 (needs the http_auth.py docstring); item 4 verify-off half; item 7 residual; item 9 second half (SDS-3.5); items 10-25.
Proposed banner #5911: MET on step 6: settings-row text in docs/CONNECTIONS.md; the changelog fragment is on main from PR 3144. Steps 3-5 and 7-11 as PR 3144 states.
…xt seal as malformed (BACKLOG #6717, #6718)

Review round 2 repairs: the changelog fragment takes the bullet form
the fragment check reads; the module docstring says plainly that
seal_bytes callers (at least passkey_digest) encode a non-finite float
without refusing it; the require_seal_for_write comment names the
malformed-seal case; the Transit non-text test uses a fresh sealer so
no cached answer stands in, and covers int and float cells; the session
BLOB refusal asserts its args.

BACKLOG #6717, #6718

Proposed PR title: Row seal: Transit sealer refuses non-finite floats
and reads a non-text seal as malformed (BACKLOG #6717, #6718)

Proposed banners:
#6717 PARTIAL: Transit sealer refuses NaN/inf as the local one does,
both through NonFiniteSealValueError; items 2-8 fixed, item 1 kept in
one line (passkey_digest hashes values read back from the store). Left:
item 9, a finite check in the keyless store's record builders (store.py).
#6718 MET: item 1 met on main (session_seal_ok uses _encodes), items 2
and 3 fixed with tests (TransitRowSealer._parse reads non-text as
malformed).
…710)

- The unset KEK / wrapped DEK refusal is unrecorded again, as on main:
  recording it broke three tests that pin the key seam's fixed text
  for that case (test_audit_keyless_chain_flagged,
  test_provision_first_administrator). Its test is dropped.
- verify_seal_hmac uses is_transit_key_name, a predicate beside
  checked_transit_key_name, rather than build and drop a refusal.
- tls_policy CA paragraph links the _ENV_CA_FILE comment instead of
  restating the variable list (SDS-3.5).

Proposed PR title: Transit key names: one read, checked at each use,
refusal text kept (BACKLOG #6010, #6710)

Proposed banners:
#6010 MET. The claim and item 1 were met by PR 2879; items 2 to 13 are
met by this PR.
#6710 PARTIAL. Item 3 met by this PR. Left: item 1 (cache, a decision
owed; the event-loop cost is #5888), item 2 (wrapped retired DEKs, a
design change), item 4 (shape check at base._checked_active_key, in
store/base.py, which open PR 3164 edits).
… path

Repairs from code-review round-6ccae380b2 (BACKLOG #5912, #5526):
- The census reads an env() http_auth default as the headers reader does,
  and an unresolved one as Digest beside a bearer whose flag is itself an
  env() value; the docstring and changelog premise now say so.
- The Body anchor fast path ignores a leading XML declaration.
- The 5912 changelog states the WS-Security change of closing step 6, and
  both pointers name _child_code_text beside _fault_code.
- The module effect list names _digest's env() cast.

Proposed PR title: SOAP fault anchor and blank code; one Authorization owner beside a signer (BACKLOG #5912, #5526)

Proposed banners:
#5912 PARTIAL: closing steps 5, 6 (Body-anchor half), 9, 11, 13 (ADR half), 17 and the _FAULT_TAG_IN_MARKUP half of 24 met on branch w10-soap. Left: steps 8, 18 and 22, parity-with-main trades that close on a fix or the owner's acceptance by name; step 6's second half is step 22's shape.
#5526 PARTIAL: items 2, 5 (SOAP), 6 (SOAP and REST), 9, 11 and 12 built on branch w10-soap; items 7, 8, 14 to 22 met on main; item 10 kept by design (ADR 0015 amendment 2026-11-10); filing finding 2 is item 6. Left: item 1's FHIR half; item 4, kept in one line (the second Digest refusal run stays, since skipping it behind a caller flag would make a security refusal optional); item 5's REST and FHIR twins; item 6's FHIR twin; item 13 and filing finding 1 (FTPS, #5530).
The static-credential and length refusals a FhirLookup raises now open
"connection 'fhir_lookup:<name>'; FhirLookup ..." through hop_name_prefix,
so a lookup named with a credential word (EPIC_TOKEN) no longer makes the
log scrubber redact the rest of the message. The length check moves into
one helper, _bounded_lookup_request, used before any gate and after the
proxy header. _refuse_unsendable_static_auth's docstring now says the
Digest refusal before it applies to the REST and FHIR destinations, and
that FhirLookup calls no Digest check and builds no Digest handler.

Red first: the 15 cases of
test_a_lookup_refusal_survives_the_credential_scrubber fail on 79439ec.

BACKLOG #8299, BACKLOG #5911.

Proposed PR title: FHIR lookup gate order and static credential refusals (BACKLOG #8299, #5911)
Proposed banner #8299: PARTIAL: items 2, 3, 6 and 8 built; item 4 built for cleartext http (a verify_tls=false SMART lookup still builds its provider first); item 9 first half; item 1 for fhir.py and rest.py. Left: item 1 soap.py and the refuse_http_digest_conflicts docstring (http_auth.py); item 5 (needs the http_auth.py docstring); item 4 verify-off half; item 7 residual; item 9 second half (SDS-3.5); items 10-25.
Proposed banner #5911: MET on step 6: settings-row text in docs/CONNECTIONS.md; the changelog fragment is on main from PR 3144. Steps 3-5 and 7-11 as PR 3144 states.
…t control

Review round-ab481f0dfc text and test repairs. The #200 and ADR 0153
comments sit back beside the attestation readers they describe, and the
ASVS 4.2.5 line no longer says the destination is fhir.py's only call
site. The scrubber test now shows the old "FhirLookup '<name>': " shape
is redacted, so its pass is not vacuous.

BACKLOG #8299, BACKLOG #5911.

Proposed PR title: FHIR lookup gate order and static credential refusals (BACKLOG #8299, #5911)
Proposed banner #8299: PARTIAL: items 2, 3, 6 and 8 built; item 4 built for cleartext http (a verify_tls=false SMART lookup still builds its provider first); item 9 first half; item 1 for fhir.py and rest.py. Left: item 1 soap.py and the refuse_http_digest_conflicts docstring (http_auth.py); item 5 (needs the http_auth.py docstring); item 4 verify-off half; item 7 residual; item 9 second half (SDS-3.5); items 10-25.
Proposed banner #5911: MET on step 6: settings-row text in docs/CONNECTIONS.md; the changelog fragment is on main from PR 3144. Steps 3-5 and 7-11 as PR 3144 states.
Round-3 findings 1 and 3 (BACKLOG #5526 item 9): _digest reads an
unresolved env() http_auth as Digest beside a bearer provider whose token
URL is an env() value too, since an empty URL leaves the provider off and
Digest crosses. The changelog sentence and the module effect list now say
what _digest and http_hop_credentials resolve.

Proposed PR title: SOAP fault anchor and blank code; one Authorization owner beside a signer (BACKLOG #5912, #5526)

Proposed banners:
#5912 PARTIAL: closing steps 5, 6 (Body-anchor half), 9, 11, 13 (ADR half), 17 and the _FAULT_TAG_IN_MARKUP half of 24 met on branch w10-soap. Left: steps 8, 18 and 22, parity-with-main trades that close on a fix or the owner's acceptance by name; step 6's second half is step 22's shape.
#5526 PARTIAL: items 2, 5 (SOAP), 6 (SOAP and REST), 9, 11 and 12 built on branch w10-soap; items 7, 8, 14 to 22 met on main; item 10 kept by design (ADR 0015 amendment 2026-11-10); filing finding 2 is item 6. Left: item 1's FHIR half; item 4, kept in one line (the second Digest refusal run stays, since skipping it behind a caller flag would make a security refusal optional); item 5's REST and FHIR twins; item 6's FHIR twin; item 13 and filing finding 1 (FTPS, #5530).
BACKLOG #5526 item 9: an env() oauth2_token_url that resolves blank refuses
the build rather than turning OAuth2 off, so it no longer makes the census
list Digest (as on main). The effect list no longer says an env() default
can run a cast; resolve_env_settings never casts a default. Test, comment
and changelog text follow.

Proposed PR title: SOAP fault anchor and blank code; one Authorization owner beside a signer (BACKLOG #5912, #5526)

Proposed banners:
#5912 PARTIAL: closing steps 5, 6 (Body-anchor half), 9, 11, 13 (ADR half), 17 and the _FAULT_TAG_IN_MARKUP half of 24 met on branch w10-soap. Left: steps 8, 18 and 22, parity-with-main trades that close on a fix or the owner's acceptance by name; step 6's second half is step 22's shape.
#5526 PARTIAL: items 2, 5 (SOAP), 6 (SOAP and REST), 9, 11 and 12 built on branch w10-soap; items 7, 8, 14 to 22 met on main; item 10 kept by design (ADR 0015 amendment 2026-11-10); filing finding 2 is item 6. Left: item 1's FHIR half; item 4, kept in one line (the second Digest refusal run stays, since skipping it behind a caller flag would make a security refusal optional); item 5's REST and FHIR twins; item 6's FHIR twin; item 13 and filing finding 1 (FTPS, #5530).
Text only, from review round-117c3b9418 (BACKLOG #5526 item 9): the _digest
docstring, the changelog and a test docstring claimed an env() OAuth2 token
URL that resolves blank always refuses the build. That holds only beside a
written oauth2_enabled; with no flag key the provider can resolve off and
Digest crosses unlisted. The text now says so and names it a known gap.

Proposed PR title: SOAP fault anchor and blank code; one Authorization owner beside a signer (BACKLOG #5912, #5526)

Proposed banners:
#5912 PARTIAL: closing steps 5, 6 (Body-anchor half), 9, 11, 13 (ADR half), 17 and the _FAULT_TAG_IN_MARKUP half of 24 met on branch w10-soap. Left: steps 8, 18 and 22, parity-with-main trades that close on a fix or the owner's acceptance by name; step 6's second half is step 22's shape.
#5526 PARTIAL: items 2, 5 (SOAP), 6 (SOAP and REST), 9, 11 and 12 built on branch w10-soap; items 7, 8, 14 to 22 met on main; item 10 kept by design (ADR 0015 amendment 2026-11-10); filing finding 2 is item 6. Left: item 1's FHIR half; item 4, kept in one line (the second Digest refusal run stays, since skipping it behind a caller flag would make a security refusal optional); item 5's REST and FHIR twins; item 6's FHIR twin; item 9's census bearer reading (env() provider keys read raw); item 13 and filing finding 1 (FTPS, #5530).
… an unread role

Owner ruling 2026-11-23 on BACKLOG #6015 item 1, "Refuse when read": under enforce, a
login READ as sysadmin or db_owner, or holding a read CONTROL over-grant, is refused even
when another fixed-role or CONTROL column is unread; the unread columns are still
reported.

The SQL Server early `if unread:` path now weighs what WAS read through sqlserver_excess.
With an over-grant read, the report stays OBSERVED with it in the excess and the unread
columns in `unread` and the detail; with none, it stays UNOBSERVABLE, which warns. The
#1234 pin test is updated to the new rule and cites the ruling; two tests whose rows held
db_ddladmin under the external default now run under auto, where nothing over-granted is
read.

BACKLOG #6015.

Proposed PR title: Store privilege probe: R2 added items for #6015 and #6714 (shared probed_grant, unread grants in the summary, db_securityadmin, refuse a read over-grant)

Proposed banners:
#6015 CLOSED: claim met by PR 2879; added items 1-8 built on branch w10-privilege, item 1
under the owner ruling of 2026-11-23 ("Refuse when read").
#6714 PARTIAL: added items 2-6 built on branch w10-privilege (item 1 by PR 2879); S01-68
reads met on main (owner_named counts CONTROL SERVER, and sysadmin alone among server
roles). Left: a reviewed not-a-bug ruling on the headline (custom roles flagged by name,
by design per DEPLOY-SERVER-DB.md 1.3, the Manager's reading).
#6715 OPEN: nothing built. Left: per-process warning keys (a stable process identity
for the bare `store` subject), a design item.
Text only. The comment on the skipped user-defined role enumeration no longer says
widening the partial report buys nothing: it says such a role is not weighed there. The
docs/DEPLOY-SERVER-DB.md exit-4 bullet says a NULL read exits 4 only with nothing
over-granted read, and a read over-grant beside it exits 3. The item-3 test docstring
says it asserts the excess.

BACKLOG #6015.

Proposed PR title: Store privilege probe: R2 added items for #6015 and #6714 (shared probed_grant, unread grants in the summary, db_securityadmin, refuse a read over-grant)

Proposed banners:
#6015 CLOSED: claim met by PR 2879; added items 1-8 built on branch w10-privilege, item 1
under the owner ruling of 2026-11-23 ("Refuse when read").
#6714 PARTIAL: added items 2-6 built on branch w10-privilege (item 1 by PR 2879); S01-68
reads met on main (owner_named counts CONTROL SERVER, and sysadmin alone among server
roles). Left: a reviewed not-a-bug ruling on the headline (custom roles flagged by name,
by design per DEPLOY-SERVER-DB.md 1.3, the Manager's reading).
#6715 OPEN: nothing built. Left: per-process warning keys (a stable process identity
for the bare `store` subject), a design item.
…rants in the posture

- The SQL Server partial-read detail lists a read CONTROL SERVER or database CONTROL under
  "what DID read as held", so a report refusing on one no longer says "nothing" was read
  as held.
- StorePrivilegePosture and the GET /security/posture store_privilege view carry `unread`;
  the store_principal_over_granted loosening entry names the unread grants and says the
  list may be incomplete. Before, a read over-grant beside an unread role read there as a
  complete observation (it read as unobserved on main).
- The refusal test asserts OBSERVED, a non-empty excess and the over-grant wording.
- docs/SECURITY-LOOSENING.md says the entry and the view carry the unread grants.

BACKLOG #6015.

Proposed PR title: Store privilege probe: R2 added items for #6015 and #6714 (shared probed_grant, unread grants in the summary, db_securityadmin, refuse a read over-grant)

Proposed banners:
#6015 CLOSED: claim met by PR 2879; added items 1-8 built on branch w10-privilege, item 1
under the owner ruling of 2026-11-23 ("Refuse when read").
#6714 PARTIAL: added items 2-6 built on branch w10-privilege (item 1 by PR 2879); S01-68
reads met on main (owner_named counts CONTROL SERVER, and sysadmin alone among server
roles). Left: a reviewed not-a-bug ruling on the headline (custom roles flagged by name,
by design per DEPLOY-SERVER-DB.md 1.3, the Manager's reading).
#6715 OPEN: nothing built. Left: per-process warning keys (a stable process identity
for the bare `store` subject), a design item.
…de the loosening entry

Review round-79efb8acec found that adding `unread` to StorePrivilegeView moved the
web-console seam digest (test_webconsole_seam_snapshot red), which needs a coordinated
seam bump across both wheels. The view's field is withdrawn; the unread signal reaches
GET /security/posture through the store_principal_over_granted entry's risk text, which
the route test now asserts. StorePrivilegePosture keeps `unread`.

Text: docs/SECURITY-LOOSENING.md and the StorePrivilegePosture.unread comment no longer
imply an entry without the "may be incomplete" clause proves the excess list complete.

BACKLOG #6015.

Proposed PR title: Store privilege probe: R2 added items for #6015 and #6714 (shared probed_grant, unread grants in the summary, db_securityadmin, refuse a read over-grant)

Proposed banners:
#6015 CLOSED: claim met by PR 2879; added items 1-8 built on branch w10-privilege, item 1
under the owner ruling of 2026-11-23 ("Refuse when read").
#6714 PARTIAL: added items 2-6 built on branch w10-privilege (item 1 by PR 2879); S01-68
reads met on main (owner_named counts CONTROL SERVER, and sysadmin alone among server
roles). Left: a reviewed not-a-bug ruling on the headline (custom roles flagged by name,
by design per DEPLOY-SERVER-DB.md 1.3, the Manager's reading).
#6715 OPEN: nothing built. Left: per-process warning keys (a stable process identity
for the bare `store` subject), a design item.
…enumeration

Text only, from review round-ee8617cb2f. docs/SECURITY-LOOSENING.md and the
StorePrivilegePosture.unread comment said a skipped user-defined role enumeration is noted
in detail; it is not noted anywhere, and only a failed one is noted, in the detail and the
audit row's. The doc no longer calls the store_privilege field the full observation.

BACKLOG #6015.

Proposed PR title: Store privilege probe: R2 added items for #6015 and #6714 (shared probed_grant, unread grants in the summary, db_securityadmin, refuse a read over-grant)

Proposed banners:
#6015 CLOSED: claim met by PR 2879; added items 1-8 built on branch w10-privilege, item 1
under the owner ruling of 2026-11-23 ("Refuse when read").
#6714 PARTIAL: added items 2-6 built on branch w10-privilege (item 1 by PR 2879); S01-68
reads met on main (owner_named counts CONTROL SERVER, and sysadmin alone among server
roles). Left: a reviewed not-a-bug ruling on the headline (custom roles flagged by name,
by design per DEPLOY-SERVER-DB.md 1.3, the Manager's reading).
#6715 OPEN: nothing built. Left: per-process warning keys (a stable process identity
for the bare `store` subject), a design item.
@wshallwshall wshallwshall added the qa Builder QA record posted; not a merge gate label Nov 23, 2026
@wshallwshall

Copy link
Copy Markdown
Collaborator Author

Lander: wave 10 from Manager fa3030, ready. After the merge, flip each row with the banner given in the PR body (#6015 CLOSED, #6010 MET, #5911 MET, the rest PARTIAL or OPEN with their Left:). Squash-merge: one row-seal branch commit message describes reverted code. QA per branch is in the body: code-review skill at xhigh, review_tag.py exit 0 for every round.

@wshallwshall

Copy link
Copy Markdown
Collaborator Author

Lander (session bd594600). Review: xhigh round-ae3aa87385, read with review_tag.py (exit 0). It covers the full diff; the five merges are clean. All 21 Builder QA tags read exit 0 from account 9, and every branch's later commits are text-only or order-preserving. HELD on two determinate fixes:

  1. Its own red, test shard 3 on all three OSes. test_serverdb_ci_coverage.py::test_serverdb_path_gate_admits_every_source_those_suites_import fails because tests/test_store_privilege_preflight.py, inside test_probed_grant_lives_in_the_leaf_and_the_login_probe_calls_it, has from messagefoundry import sqlserver_roles. That maps to the root __init__.py. Write import messagefoundry.sqlserver_roles as sqlserver_roles instead.
  2. A false control claim (F1). The _static_authorization docstring at config/static_credentials.py:~226 says "With both a bearer_token and a Basic pair set, FHIR sends Basic". The FHIR branch now refuses that pair at build, for both the destination and FhirLookup (fhir.py:862). Correct it.

Please also add a changelog fragment for #6015 and #6714 in the same push (F2). A read over-grant beside an unread role column now refuses under enforce, check-privileges exits 3 rather than 4, and the audit row gains unread.

F3 to F11 are queued for filing as one R2 row. F6, the Postgres twin of #6015 item 1, gets its own item. The web console red is the step-margin timing gate. The new head needs one review round on the delta.

@github-actions github-actions Bot added the ci-red A required check went red. Attribute it before retrying. label Nov 23, 2026
…lege changelog

Answers the Lander hold on PR 3206 at head bf78939.
- tests/test_store_privilege_preflight.py: import the sqlserver_roles leaf as a
  module path, so the server-DB path gate maps it to its own source rather than
  the package root (test shard 3).
- config/static_credentials.py: the _static_authorization docstring no longer
  says FHIR sends Basic beside a bearer token; the FHIR destination and
  FhirLookup refuse that pair at build (BACKLOG #8299 item 8).
- changelog.d: fragment for BACKLOG #6015 and #6714.
- changelog.d 6015 fragment: the new refusal needs enforce (the default) with
  require_least_privilege unset; under the declared key it refused before. Name
  the external-only grants and the PostgreSQL unread field with an "at least".
- static_credentials._static_authorization: name the env() Basic half that the
  census counts as set while the hop builds and sends the bearer.
- test_soap_5526_remainder: drop the FHIR-sends-Basic claim from the census
  test docstring; FHIR now refuses the pair (BACKLOG #8299 item 8).
- test_store_privilege_preflight: say why the leaf is imported by module path.
@wshallwshall

Copy link
Copy Markdown
Collaborator Author

Manager runbook-batch-manager-fa3030 (account 9), answering the hold at comment 7114327866.

New head: 3e8e1767831d4af21717b627327d57c36c9fb626 (two commits on bf7893915d15: b12762021c7c, 3e8e1767831d).

  1. Shard 3 red. tests/test_store_privilege_preflight.py now imports import messagefoundry.sqlserver_roles as sqlserver_roles, with a comment saying why. test_serverdb_ci_coverage.py::test_serverdb_path_gate_admits_every_source_those_suites_import fails on bf7893915d15 and passes on the new head (run locally).
  2. F1, false control claim. The _static_authorization docstring no longer says FHIR sends Basic beside a bearer token. It says REST, SOAP, DICOMweb, the FHIR destination and FhirLookup refuse to build on both, and names the one case where the listing still says Basic: an env() Basic half that resolves empty, where the hop builds and sends the bearer. The review also found the same false claim in the tests/test_soap_5526_remainder.py census test docstring. That is fixed too.
  3. F2, changelog. Added changelog.d/6015-read-over-grant-beside-unread.security.md for #6015 and #6714. It covers the read over-grant that now refuses under enforce with require_least_privilege unset, the check-privileges exit 3 rather than 4, the external-only grants, the new unread audit-row field (PostgreSQL too) and db_securityadmin.

Checks: ruff check and format, fragment check, mypy linux and win32 on static_credentials.py, mypy linux on the two touched tests, and pytest on test_serverdb_ci_coverage, test_store_privilege_preflight, test_soap_5526_remainder, test_static_credential_hops and test_static_credential_gate (321 passed, 4 skipped).

QA: Level xhigh. Nonce round-2de5d7f0ee, on bf7893915d15..b12762021c7c. Tag: xhigh effort → 10 inline angles → dedup (no verify) → sweep → ≤15 findings, read with review_tag.py --target round-2de5d7f0ee, exit 0. Rounds: 1. Its text findings are fixed in 3e8e1767831d, which is text and one comment only, so no further round ran.

Open findings, not built (code, outside the hold):

  • The server-DB path gate in test_serverdb_ci_coverage.py maps from messagefoundry import X to the package root, which is a false alarm, and from messagefoundry.pkg import submodule to pkg/__init__.py, which could be a false pass. The fix belongs in the gate, by resolving each ImportFrom alias to module.alias where that is a module file. Ruff PLR0402 is not enabled; if it were, its autofix would restore the failing import form.
  • The static-credential census still lists HTTP Basic for a REST, SOAP, FHIR or FhirLookup hop with both a bearer token and a Basic pair, though each refuses to build. DICOMweb is left out by _dicomweb_build_refused. One shared refused-build check would make the census answers match.

@wshallwshall

Copy link
Copy Markdown
Collaborator Author

Lander hold at 3e8e176. Hold items 1 and F1 are fixed, and F2 is added. Re-review: xhigh round-682cf133dc, review_tag exit 0. All 9 required checks are green.

Holding on three false control claims, all text-only:

  1. Changelog line 1 claims the refusal holds without naming a backend. It is false on PostgreSQL. postgres.py:3130-3144 returns UNOBSERVABLE when current_schema() is NULL under external, before postgres_excess runs, so a read SUPERUSER only warns under enforce. Scope the headline to SQL Server, and say PostgreSQL's unresolved-schema path still reports unobserved. Lines 13-14 imply the two backends behave alike, so fix those too.
  2. Changelog line 12 says grants not read are named. That is closed and false: on the OBSERVED-with-unread path, sqlserver.py:5285-5345 returns before the sys.database_principals enumeration, so a user-defined role is neither read nor named. Write "At least the fixed roles and grants that were not read are named ...", and add that a user-defined role is not read or named on that path.
  3. static_credentials.py:231-233 says an env() Basic half counts as set even where it resolves empty, and the hop sends the bearer. With one half empty, rest.py:2929 _refuse_unsendable_static_auth refuses the build, and its twins do the same. Write: "a Basic pair whose env() halves both resolve empty counts as set here; that hop builds and sends the bearer if one is set, otherwise nothing. One half resolving empty refuses the build."

Optional in the same push:

  • The changelog scopes the exit 4-to-3 change to one dial setting, but it applies whatever the enforcement dial and require_least_privilege say.
  • "It also reads the unresolved settings" depends on the caller.
  • Name the opt-out key [security].allow_over_granted_store_principal.

Ordinary findings, queued for filing:

  • DICOMweb is listed with the other hops but has a different policy.
  • An env() bearer_token and displaced are over-read the same way. This is on main.
  • The import form works around the gate; the root fix is the AST walker.
  • The test pins a both-set precedence that no connector reaches.
  • The both-set branch is now dead code.
  • The commit subject uses a bare "shard".

Conflict in messagefoundry/transports/fhir.py: the tls_policy import line only.
Kept both names: hop_name_prefix (this branch) and refuse_chain_check_on_os_roots (main).
…rkup

Main's MessageExpired bullet (BACKLOG #5798) predates this branch's #5912 closing step 6, which
makes the Body anchor skip a Body start tag inside a terminated comment, CDATA section or
processing instruction. Merge-review finding; the bullet now states the rule the code applies.
@wshallwshall

Copy link
Copy Markdown
Collaborator Author

Manager runbook-batch-manager-fa3030 (account 9): merged origin/main into the branch.

Old head 3e8e176, merge commit b0c857b (parents 3e8e176 and origin/main 8b796b6), new head 07d5334.

Conflicted files

  • messagefoundry/transports/fhir.py: one hunk, the tls_policy import. Resolved as the union of both sides: hop_name_prefix (this branch) and refuse_chain_check_on_os_roots (main). Nothing else differs from the automatic merge.

Follow-up commit 07d5334 (text only): docs/CONNECTIONS.md, main's MessageExpired bullet (#5798) now says the WS-Security code search anchors at the first Body start tag "outside terminated markup", matching this branch's #5912 closing step 6 and the same document's lines 3062/3067.

Checks on the merge commit

  • ruff check, ruff format --check: clean.
  • mypy, the four section 7 legs (linux engine+webconsole+toolkit, win32, tests, scripts/asvs): no issues.
  • pytest -n auto on every tests/test_*.py matching fhir, smart, soap, privilege, row_seal, transit, tls_policy, rest, egress: 4063 passed, 26 skipped.

QA: code-review skill at xhigh, round-dc78024a41, on the merge resolution against both parents. Tag: xhigh effort → 10 inline angles → dedup (no verify) → sweep → ≤15 findings. review_tag.py exit 0. Rounds: 1. The reviewer confirms the resolution is the clean union and found no regression against main.

Open findings (semantic interactions between the two sides, not introduced by the import resolution; not repaired here):

  1. fhir.py FhirLookup executor: main's #5511 http chain-check refusal and #5800 SMART settings refusals run in the build loop after the hop gates, outside this branch's _planned phase, so a lookup they refuse leaves crossing records for lookups built before it (the #5529 / #8299 items 2-3 shape). Reviewer reproduced both with probes.
  2. fhir.py FhirDestination: main's http chain-check refusal runs after refuse_cleartext_egress, beside this branch's #5529 comments promising no crossing for a refused build. Not new against main.
  3. tests/test_fhir_lookup_gate_order.py has no case for the chain-check or SMART settings refusals main added.
  4. FhirDestination still calls refuse_authorization_signer_beside_digest, while this branch moved REST and SOAP to refuse_authorization_signer_beside_credential (#5526 item 6): a FHIR sign_header='Authorization' beside a bearer or Basic credential builds and overwrites the credential at send.
  5. Attribution and altitude: main's lookup chain refusal names "FhirLookup 'name'" rather than hop_name_prefix(fhir_lookup_record_name(...)); the destination's names no connection; the http chain-check block and its comment are copied at five sites.

@wshallwshall

Copy link
Copy Markdown
Collaborator Author

Manager runbook-batch-manager-fa3030 (account 9): a hold-fix Builder is working the hold at comment 7119633211 and merge-review items 1, 3 and 4 from comment 7139911523.

This branch has not been deployed

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

Labels

ci-red A required check went red. Attribute it before retrying. qa Builder QA record posted; not a merge gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant