Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
c1dbfb3
Store privilege probe: R2 added items for the shared probed_grant, un…
wshallwshall Nov 23, 2026
b967d4f
Row seal: Transit sealer refuses non-finite floats and reads a non-te…
wshallwshall Nov 23, 2026
1cb9005
Transit key names: one read, checked at each use, refusal text kept (…
wshallwshall Nov 23, 2026
ed13b42
FhirLookup checks its pure settings before any hop gate; FHIR refuses…
wshallwshall Nov 23, 2026
2768ad7
Store privilege probe: review round 1 on the R2 added items
wshallwshall Nov 23, 2026
33913ce
SOAP fault anchor and blank code, one Authorization owner beside a si…
wshallwshall Nov 23, 2026
dfe10cc
FhirLookup gate order: narrow the comments to the checks _planned run…
wshallwshall Nov 23, 2026
64548d7
Row seal review round 1: refusal precedes encoder errors, one non-tex…
wshallwshall Nov 23, 2026
6808349
Store privilege probe: review round 2 on the R2 added items
wshallwshall Nov 23, 2026
555fa5e
Transit key names: review round-b0ed9d0765 repairs (BACKLOG #6010, #6…
wshallwshall Nov 23, 2026
5631e84
Review round 1: census env() http_auth, Body anchor fast path, keep D…
wshallwshall Nov 23, 2026
a990d36
Store privilege probe: say when an OBSERVED over-grant with unread gr…
wshallwshall Nov 23, 2026
79439ec
FHIR headers: keep the dict-only table the census reads; name the loo…
wshallwshall Nov 23, 2026
ff4bba4
Row seal: Transit sealer refuses non-finite floats and reads a non-te…
wshallwshall Nov 23, 2026
6dae8c1
Transit key names: review round-7c12744659 repairs (BACKLOG #6010, #6…
wshallwshall Nov 23, 2026
10fb68d
Review round 2: census env() flags and defaults, XML declaration fast…
wshallwshall Nov 23, 2026
65b3d15
FhirLookup refusals this row added name the lookup the scrub-safe way
wshallwshall Nov 23, 2026
01aa5f6
FhirLookup: put the length-gate comment beside its call; scrubber tes…
wshallwshall Nov 23, 2026
cef0ce9
Census: an env() token URL may resolve a bearer provider off
wshallwshall Nov 23, 2026
53f1fef
Census: only an env() SMART token URL may resolve the provider off
wshallwshall Nov 23, 2026
6947230
Census text: name the no-flag OAuth2 token URL gap
wshallwshall Nov 23, 2026
827da66
Store privilege probe: a read over-grant refuses under enforce beside…
wshallwshall Nov 23, 2026
944458a
Store privilege probe: text fixes from review round-0f02503340
wshallwshall Nov 23, 2026
42bda3d
Store privilege probe: name a read CONTROL as read, and keep unread g…
wshallwshall Nov 23, 2026
2aab426
Store privilege probe: keep the posture view's seam; unread grants ri…
wshallwshall Nov 23, 2026
6d02f01
Store privilege probe: correct what records a skipped or failed role …
wshallwshall Nov 23, 2026
41bf791
Merge w10-privilege into wave 10
wshallwshall Nov 23, 2026
19212dc
Merge w10-rowseal-celltag into wave 10
wshallwshall Nov 23, 2026
ab6fc25
Merge w10-transit-kek into wave 10
wshallwshall Nov 23, 2026
c4c681b
Merge w10-fhir-smart into wave 10
wshallwshall Nov 23, 2026
bf78939
Merge w10-soap into wave 10
wshallwshall Nov 23, 2026
b127620
Wave 10 hold fixes: shard-3 import form, FHIR census docstring, privi…
wshallwshall Nov 23, 2026
3e8e176
Wave 10 hold fixes: text repairs from review round-2de5d7f0ee
wshallwshall Nov 23, 2026
b0c857b
Merge origin/main into w10-wave
wshallwshall Nov 24, 2026
07d5334
CONNECTIONS.md: WS-Security code search anchors outside terminated ma…
wshallwshall Nov 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions changelog.d/5526-remainder.security.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
- **One credential owns the `Authorization` header on a SOAP or REST outbound.** A SOAP outbound
now refuses at construction a `bearer_token` beside a Basic pair, as REST and DICOMweb already
did; it used to send Basic and drop the token without a word. A SOAP or REST outbound refuses a
detached-JWS signing header named `Authorization`, in any spelling, beside a configured or
minted credential for that header, at least HTTP Basic, a `bearer_token`, an OAuth2 or SMART
provider, or an `Authorization` entry in `headers`. The signature is written after the
credential, so it replaced the credential on every send; beside HTTP Digest it was already
refused. The FHIR destination still refuses it only beside HTTP Digest. The static-credential
inventory lists HTTP Basic alone where both a `bearer_token` and a Basic pair are set. It reads
an `env()` `http_auth` as the build resolves it, and one it cannot resolve as HTTP Digest,
except beside an OAuth2 or SMART provider whose enabled flags, and SMART token URL, are
literal. The build refuses Digest beside a bearer provider, but at least an `env()` OAuth2
token URL with no `oauth2_enabled` key can still resolve the provider off, and the inventory
does not list Digest there.
(`BACKLOG #5526`)
69 changes: 23 additions & 46 deletions changelog.d/5912.security.md
Original file line number Diff line number Diff line change
@@ -1,48 +1,25 @@
- **A SOAP fault's Sender or Receiver class is read first from its code element.** The code is now
read first from the Fault's first child, a comment, CDATA section or processing instruction before
it stepped over whole: SOAP 1.1's `faultcode`, or SOAP 1.2's `Code` and the `Value` that is the Code's own
first child. The shipped code took the Fault's first `Value` ahead of any `faultcode`. Where the
first-child read yields a code, a `Value` inside a comment, CDATA section or processing
instruction ahead of it no longer decides the class; on a first deployment that could have made a
Sender fault read as a Receiver one and retry until the attempt limit. Where that first-child
read yields no code, the code falls back to the shipped search's rule: from the Fault start tag
the Fault search chose to the first `</Fault>` after it, or the reply's end, the first `Value`
ahead of the first `faultcode`, else that `faultcode`; a `Value` there that holds no code is not passed
over. So there a `Value` in a Subcode, Role,
Node, Reason or Detail ahead of the code element, or one ahead of a SOAP 1.1 `faultcode`, or one
after a `Code` that is empty, self-closing or has no `Value` first, still decides the class, as
in the shipped code, and a Sender fault of such a shape may still retry. Like the shipped search,
the fallback steps over no markup: a `</Fault>` inside a comment ends its range, and a
`faultcode` or `Value` inside markup counts. So
`<soap:Fault><faultstring>busy</faultstring><!-- </soap:Fault> --><faultcode>soap:Server</faultcode>`
reads no code and dead-letters, as in the shipped code. At least these shapes, each ahead of the code
element, take the fallback: a SOAP 1.1 `faultstring` before the `faultcode`, a SOAP 1.2 `Reason`
before the `Code`, a DOCTYPE or other `<!` that opens neither a comment nor CDATA, a lowercase
`<![cdata[`, and an unterminated comment. Where the Fault search chooses the Fault start tag the
shipped code chose, such a reply reads as it did there; the Fault search now steps over markup,
so where a Fault start tag inside a comment, CDATA section or processing instruction came first,
the two can choose differently and the reply can read differently.
A Fault where neither read finds a code reads as a permanent fault, as one with no code always
did; it is never read as delivered. Unchanged: whether
a Fault counts, and the WS-Security check, which still searches the reply
from where the Fault search starts, so a WS-Security code in any Fault text still dead-letters it.
The Fault search steps over terminated comments, CDATA sections and processing instructions too,
and so do the Fault and Code close-tag searches that bound the first-child read, though not the
fallback's range. So, outside the cases below, a Fault start tag inside such markup no longer
decides which Fault is read, and a `</Fault>` or `</Code>` inside it no longer ends the
first-child read; the Fault search reads the reply from its start,
so this holds even where the Body start tag sits in that markup. Where every Fault start tag after
the Body start tag (with no Body start tag, every Fault start tag) is inside such markup, the
first of them is still read as the Fault, as in the shipped code; where no Fault start tag
follows the Body start tag, the first before it outside such markup is read, else the first
before it. So such a reply never newly reads as delivered.
One first-child shape is read again: where the first `</` within the `faultcode` or `Value` is
that element's own close tag inside a comment, CDATA section or processing instruction the code
text opens and does not terminate, and that text names no Sender, Client, Receiver or Server
class, the element is read on to the first tag outside such markup, if that is its own close
tag, with terminated comments and processing instructions left out and CDATA kept, and that
reading is used unless it is empty. So `<faultcode><!-- </faultcode> -->soap:Server</faultcode>`
reads `soap:Server` and retries. No other code text is read again, so such a read never
changes a Sender or Receiver reading. In the fallback such a `</` still ends the code text, as
in the shipped code.
read first from the Fault's first child, a terminated comment, CDATA section or processing
instruction before it stepped over whole: SOAP 1.1's `faultcode`, or SOAP 1.2's `Code` and the
`Value` that is the Code's own first child. The shipped code took the Fault's first `Value` ahead
of any `faultcode`. Where the first-child read yields a code, a `Value` inside a comment, CDATA
section or processing instruction ahead of it no longer decides the class; on a first deployment
that could have made a Sender fault read as a Receiver one and retry until the attempt limit.
Where that read yields no code, the code falls back to the shipped search, which steps over no
markup, so there a `Value` outside the Code, or inside a comment, still decides the class as in
the shipped code, and a Sender fault of such a shape may still retry. A code element that holds
only whitespace now falls back as an empty one does. The read, its fallback and the one shape
read again are stated once, in the `_fault_code` and `_child_code_text` docstrings in
`messagefoundry/transports/soap.py`.
The Fault search, the Body start-tag search it starts from, and the Fault and Code close-tag
searches that bound the first-child read step over terminated comments, CDATA sections and
processing instructions, so a Body or Fault start tag, or a `</Fault>` or `</Code>`, inside such
markup no longer decides which Fault is read or where the read ends; `_find_fault` and
`_fault_code` say where that does not hold. Where every Fault start tag after the Body start
tag is inside such markup, the first of them is still read as the Fault, so such a reply never
newly reads as delivered. A Fault where neither read finds a code reads as a permanent fault,
as one with no code always did. The WS-Security check still searches the reply from where the
Fault search starts, so a WS-Security code ahead of the real Body start tag, behind a Body start
tag inside such markup, no longer dead-letters a reply whose Body holds a Receiver fault; that
reply now retries. Unchanged: whether a Fault counts.
(`BACKLOG #5912`)
8 changes: 8 additions & 0 deletions changelog.d/6010-transit-key-name-refusals.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- **A malformed or unset Vault Transit key name is refused with its own text.** The refusals of a
malformed `MEFOR_STORE_VAULT_TRANSIT_KEY`, `MEFOR_STORE_TRANSIT_KEY` or
`MEFOR_STORE_TRANSIT_AUDIT_KEY`, of an unset `MEFOR_STORE_TRANSIT_KEY`, and of an unwrapped DEK
that is not base64 of 32 bytes under `key_provider = "vault"` now reach the operator as written, naming the variable to fix, where a store open used to
show a generic "the key source failed" or "the Vault Transit cipher could not be built". A data
key name and an audit key name that are both wrong are named in one refusal. The Transit key
type check, the Transit cipher itself and the row seal verify now check the key name too.
(`BACKLOG #6010`, `BACKLOG #6710`)
16 changes: 16 additions & 0 deletions changelog.d/6015-read-over-grant-beside-unread.security.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
- **A store over-grant that was read now refuses under enforce even when a neighbouring grant
could not be read.** On SQL Server, a probe answer that is NULL, or any value but 0 or 1, is
not read. Under `[security].enforcement = "enforce"` (the default) with
`[store].require_least_privilege` unset, an over-grant the store privilege preflight read as
held, such as `sysadmin`, `db_owner` or a `CONTROL`, used to be demoted to an unobserved
warning when a fixed role, `CONTROL SERVER` or database `CONTROL` was not read. The report now stays OBSERVED with that
over-grant in the excess, so the start refuses unless the audited over-grant opt-out accepts it,
and `check-privileges` exits 3 (over-grant) where it used to exit 4 (could not read). Under
`schema_management = "external"` the grants counted only there, at least `CREATE TABLE`,
`ALTER` on the default schema, `VIEW DEFINITION` and the audit-table rights, count as read
over-grants the same way. With `[store].require_least_privilege` set, the start refused before
and still does. Grants that were not read are named in the log line, the over-grant posture
entry and a new `unread` field in the preflight's audit row; the PostgreSQL store probe fills
that field too, for its audit-table grants and an unresolved schema. Under external,
`db_securityadmin` no longer adds a separate `VIEW DEFINITION` finding, since the role carries
that right. (`BACKLOG #6015`, `BACKLOG #6714`)
6 changes: 6 additions & 0 deletions changelog.d/6717-row-seal-transit-non-finite.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- **The Vault Transit row sealer refuses a non-finite float, and reads a non-text seal as
malformed.** It now refuses to seal a float that is a NaN or an infinity, as the local sealer
already did, and both raise `NonFiniteSealValueError`, a `ValueError` subclass. A stored seal
that is not text (a blob or a number) reads as malformed under Transit rather than raising: a
session read with one fails its seal check, and a write over such a row is refused as a failed
seal. The bytes a seal covers are unchanged. (`BACKLOG #6717`, `BACKLOG #6718`)
11 changes: 11 additions & 0 deletions changelog.d/8299-fhir-lookup-gate-order.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
- **A `FhirLookup` refused for a setting leaves no crossing record from another lookup first, in
at least these cases.** Its url and header screens, the length limits on its static url and
headers, its `timeout_seconds` and its hop declarations are now checked for every lookup before
any lookup reaches a hop gate, and a lookup's bearer is judged against a cleartext `http` read
before its SMART token provider is built. A length refusal now names the lookup. A refusal from
a check that runs later in the build can still follow such a record. A FHIR destination or
`FhirLookup` whose `headers` is not a table, which sets one of `basic_user` and
`basic_password` without the other, puts a `:` in `basic_user`, or sets `bearer_token` beside a
Basic pair is refused at build. These used to build and then send no headers, no Basic
credential, a Basic credential split at the wrong colon, or Basic in place of the bearer.
(`BACKLOG #8299`)
Loading
Loading