Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
9306cb4
[cluster.vip] refuses every address in 0.0.0.0/8, not only 0.0.0.0 (B…
wshallwshall Dec 2, 2026
d51b3c9
docs: [cluster.vip] refusal list names 0.0.0.0/8, not "unspecified" (…
wshallwshall Dec 2, 2026
c72d538
[cluster.vip] 0.0.0.0/8 refusal uses netaddr's helper and names the b…
wshallwshall Dec 2, 2026
aaf08a1
docs: [cluster.vip] refusal lists name 0.0.0.0/8; CHANGELOG entry (BA…
wshallwshall Dec 2, 2026
ec58193
[cluster.vip] address refusal names its own reason (BACKLOG #5132)
wshallwshall Dec 2, 2026
0e5ff8c
docs: ADR 0056 records the 0.0.0.0/8 refusal as a dated amendment (BA…
wshallwshall Dec 2, 2026
760d965
[auth] oidc_allowed_username_domains of only blanks refuses in both f…
wshallwshall Dec 2, 2026
a20178b
docs: oidc_allowed_username_domains blanks-only refusal; CHANGELOG (B…
wshallwshall Dec 2, 2026
8b57cdc
[auth] blanks-only username domains refuse only with OIDC on, after t…
wshallwshall Dec 2, 2026
371b922
docs: username-domains refusal scoped to OIDC on; fallback needs it u…
wshallwshall Dec 2, 2026
3e2a6a8
[auth] username-domains refusal reads strip_domain too, and reuses th…
wshallwshall Dec 2, 2026
5c2c31e
docs: username-domains refusal needs stripping on too; CHANGELOG trim…
wshallwshall Dec 2, 2026
87225b8
settings: public origin and OIDC host refusals quote no part of the v…
wshallwshall Dec 2, 2026
2765e7a
settings: public-origin parse refusal raised after its handler; canar…
wshallwshall Dec 2, 2026
917f365
docs: CHANGELOG entry for the refusals that stop quoting the value (B…
wshallwshall Dec 2, 2026
e40d764
settings: OIDC host refusal quotes no allow-list either; origin split…
wshallwshall Dec 2, 2026
175842b
docs: CHANGELOG says the OIDC host refusal quotes no allow-list (BACK…
wshallwshall Dec 2, 2026
b4c01c9
[backup]/[dr] paths checked positively; DR runner logs no non-path de…
wshallwshall Dec 2, 2026
b612832
docs: CHANGELOG entry for the [backup]/[dr] path-shape check (BACKLOG…
wshallwshall Dec 2, 2026
25f000e
[backup]/[dr] path check also refuses a drive-letter scheme with user…
wshallwshall Dec 2, 2026
377c08c
docs: CHANGELOG names seed_dir and the wider path-shape refusal (BACK…
wshallwshall Dec 2, 2026
df087a8
[backup]/[dr] path check refuses controls and any slash run; refusal …
wshallwshall Dec 2, 2026
a0042f9
docs: 5110 changelog entry moves to a changelog.d fragment (BACKLOG #…
wshallwshall Dec 2, 2026
1b650f1
Sibling refusals name the setting and what it accepts, and quote no v…
wshallwshall Dec 2, 2026
da3d53f
docs: changelog fragment for the refusals that stop quoting the value…
wshallwshall Dec 2, 2026
9f5f2bb
Scheme refusals name the connection; api client base-URL refusal quot…
wshallwshall Dec 2, 2026
14eefe8
docs: 5111 fragment names the OAuth2 token endpoint and the API clien…
wshallwshall Dec 2, 2026
3505444
Scheme refusals name the connection through hop_name_prefix (BACKLOG …
wshallwshall Dec 2, 2026
73cac06
docs: 5111 fragment says which refusals name the connection (BACKLOG …
wshallwshall Dec 2, 2026
1039ab1
Snapshot hazard test keeps "?" out of the backup destination (BACKLOG…
wshallwshall Dec 2, 2026
a7f17a5
Merge origin/main into b20055-5111 (BACKLOG #5111)
wshallwshall Dec 2, 2026
290bc72
Comments name _is_local_or_unc_path and the CRL refusals as they now …
wshallwshall Dec 2, 2026
991b29c
docs: [backup]/[dr] path rows name _is_local_or_unc_path and its refu…
wshallwshall Dec 2, 2026
6b0e120
docs: [backup]/[dr] path rows say which URLs load and render as one c…
wshallwshall Dec 2, 2026
8cd99fb
Backup destination docs say what the path screen refuses, not every U…
wshallwshall Dec 2, 2026
9f54f62
Backup destination docs name C0 control characters and keep the query…
wshallwshall Dec 2, 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
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Changelog

All notable changes to MessageFoundry are documented here. The format follows
Expand All @@ -12,6 +12,19 @@
`LIN` or `PAT` in a 270), was kept in `X12SegmentError.segment_id` and `message`, as the 0.5.3
notes said. It is now `None`, shown as `?`, and `line` still locates it. Sender text the walk
accepts as a segment at that point is still kept. (`BACKLOG #5370`)
- **`[cluster.vip].address` refuses every address in `0.0.0.0/8`.** Only `0.0.0.0` was refused,
so an address such as `0.1.2.3`, which is not valid as a destination, loaded as the floating
address. A config that 0.5.3 loads with such an address now fails to load. (`BACKLOG #5132`)
- **`[auth].oidc_allowed_username_domains` holding only blanks refuses at load, in both forms,
while `oidc_enabled` and `oidc_username_strip_domain` are on.** A blank
`MEFOR_AUTH_OIDC_ALLOWED_USERNAME_DOMAINS` over a real TOML list loaded as empty and moved the
UPN suffix check to `[auth].ad_domain`. To fall back to `ad_domain`, leave the setting unset or
empty in the file and unset in the environment. (`BACKLOG #5131`)
- **Three settings refusals no longer quote the value they refuse.** A
`[security].web_console_public_address` that does not parse as a URL, or names an IP-literal host
while a TLS posture is declared, is refused without the address, which can keep a password. An
`[auth]` OIDC endpoint whose host is not in `oidc_allowed_endpoints` is refused without the host
or the allow-list. (`BACKLOG #5109`)
- **`serve` refuses an alert email relay that `[alerts].smtp_allowed_hosts` omits when the alert
email transport dials it, not only the security notifier.** With
`[auth].notify_security_events` off and the alert email transport configured (`email_smtp_host`,
Expand Down
10 changes: 10 additions & 0 deletions changelog.d/5110.security.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
- **`[backup].destination`, `[dr].seed_archive`, `[dr].seed_dir` and `[dr].restore_token` must
have a local or UNC path's shape.** Besides a `<scheme>://` URL whose scheme has two or more
characters (a one-letter scheme reads as a drive letter and can load), a value is now refused at
load when it has a `:` anywhere but right after a leading drive letter, a character Windows
refuses in a path (such as `?`) or a C0 control character (U+0000 to U+001F) inside the value
(a leading or trailing TAB, LF, VT, FF, CR or U+001C to U+001F is not refused by this rule), or
an `@` in the segment after a drive letter's `//`. A `\\?\` or `\\.\` prefix, in any slash
spelling, is read past first. That catches URL shapes the scheme test missed, and also refuses a
POSIX path holding one of them. The DR backup runner's startup lines no longer log a destination
that is not such a path. (`BACKLOG #5110`)
9 changes: 9 additions & 0 deletions changelog.d/5111.security.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
- **Scheme, clock-time and missing-file refusals no longer quote the value.** A refused URL scheme
on the `[ai]` endpoint, a REST, SOAP, FHIR or DICOMweb destination, a FHIR lookup, a SMART or
OAuth2 token endpoint, a `proxy_url` or the API client's base URL; a refused
`[backup].schedule_at`, `[backup].snapshot_method` or `[retention].vacuum_at`; and a CRL setting
or `[store].ssl_root_cert` naming no file at load now name the setting and nothing of the value,
since the text in front of `://` can be a password. Most also say what the setting accepts. The
scheme refusal of a destination, a SMART token endpoint or a `proxy_url` now leads with the
connection's name where the engine knows it; other refusals on the same connection may not.
(`BACKLOG #5111`)
14 changes: 7 additions & 7 deletions docs/CONFIGURATION.md

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion docs/adr/0056-engine-managed-vip-failover.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ refused, as in every section. With `enabled = true`, the engine refuses to load:
`ServiceSettings._cluster_requires_server_db`, which any clustered node on SQLite already fails;
- with both `prefix` and `netmask`, or with neither;
- with an `address` that is not IPv4, or is unspecified, loopback, link-local, multicast, reserved, or
the network or broadcast address of its own subnet;
the network or broadcast address of its own subnet (amended 2026-12-01, BACKLOG #5132: the
unspecified test now covers the whole 0.0.0.0/8 block, not only 0.0.0.0);
- with a missing or blank `interface`, or one with surrounding whitespace, a double quote, or a
non-printable character;
- with `release_grace_seconds` below zero, or not below `[cluster].leader_fence_timeout_seconds`
Expand Down
4 changes: 3 additions & 1 deletion messagefoundry/apiclient/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,9 @@ def _assert_safe_transport(base_url: str, *, allow_insecure: bool) -> bool:
raise ApiError("refusing a base URL that does not parse as a URL.")
scheme = url.scheme.lower()
if scheme not in _ALLOWED_URL_SCHEMES:
found = f"scheme {scheme!r}" if scheme else "no scheme"
# The scheme is not quoted: the text in front of ':' is the URL's own, so a user name or
# password there would print (BACKLOG #5111).
found = "another scheme" if scheme else "no scheme"
raise ApiError(
f"refusing a base URL with {found}: this client permits only the "
f"{' and '.join(sorted(_ALLOWED_URL_SCHEMES))} schemes."
Expand Down
7 changes: 4 additions & 3 deletions messagefoundry/config/input_hiding.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ def _refuse_without_input(value: Any, handler: ValidatorFunctionWrapHandler) ->
validator's own ``PydanticCustomError`` keeps its rendered message only). THIS HIDES THE INPUT
ONLY. The message and ``ctx`` stay as raised, and they can quote the value: a validator that
quotes what it refused still shows it there, and so does at least one error a library raised
inside a validator. :func:`settings_error_detail` names at least the ones known. None is meant
to hold a secret, but a URL can carry one, so a validator message must name the setting, never
quote a secret value.
inside a validator. :func:`settings_error_detail`'s docstring names some of each, as examples
and not a census: nothing lists every message that quotes a value. None is meant to hold a
secret, but a URL can carry one, so a validator message must name the setting, never quote a
secret value.
"""
try:
return handler(value)
Expand Down
Loading
Loading