Repository navigation
docs(adr): ADR-0044 — toml replaces the unmaintained basic-toml as the config parser (Proposed) - #213
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
APIError: Insufficient Balance (request_id: eb534bfa-be61-4a5a-b3e5-75a6cb79dbde) |
PR Review: docs(adr): ADR-0044 — toml replaces the unmaintained basic-toml as the config parser (#213)Decision: 🟢 Approved Executive summaryADR-0044 is a well-reasoned dependency supersession triggered by RUSTSEC-2026-0374. The decision correctly scopes the supersession to only the "Parser crate" bullet of ADR-0029, the dependency justification is thorough (licences, MSRV, RustSec all checked by hand), and explicitly excluding the One wording imprecision in Decision §3 is worth correcting before the ADR is flipped to Accepted, since accepted ADRs are immutable except Status and errata (ADR-0015). New findings💡 Suggestions (nice to have)
|
|
Applied in 0184781: §3 now says only the multi-line file excerpt stays out of stderr and the log. The message may still quote the offending key or value, as serde's (and |
|
@codex review |
|
APIError: Insufficient Balance (request_id: a4116c59-a3c8-450f-b023-c4c74cce31f5) |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
The ignore's comment and reason presented the toml migration as decided. ADR-0044 is still Proposed in #213, so both now say TBD and point at it. Claude-Session: https://claude.ai/code/session_01QpBZ4qUr3ypV22CvmVwwHp Signed-off-by: Gonzalo Fleming <[email protected]>
|
@codex review |
|
APIError: Insufficient Balance (request_id: 30f96440-99dc-4062-8ddd-d1e92ec9fa50) |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
PR Review: docs(adr): ADR-0044 — toml replaces the unmaintained basic-toml as the config parser (#213)Decision: 🟢 Approved Executive summaryADR-0044 records the supersession of Previous issues
|
…nore RUSTSEC-2026-0374 (#212) * chore(deny): ignore RUSTSEC-2026-0374 until basic-toml is replaced RustSec marked basic-toml, the ADR-0029 config parser, unmaintained on 2026-09-26 (informational, no patched version). cargo deny has failed on main since, which blocks every merge. basic-toml parses only the operator's config file after the StrictModes checks, never peer input. The migration to toml, under an ADR superseding ADR-0029's parser choice, removes the entry. Claude-Session: https://claude.ai/code/session_01QpBZ4qUr3ypV22CvmVwwHp Signed-off-by: Gonzalo Fleming <[email protected]> * fix(deps): ctutils 0.4.6 for RUSTSEC-2026-0385 ctutils before 0.4.4 generates masks and compares u128 values in non-constant time (crypto-failure). aes-gcm, hybrid-array, module-lattice and universal-hash reach it. Lockfile only; 0.4.6 is the newest Rust 1.92-compatible release. Claude-Session: https://claude.ai/code/session_01QpBZ4qUr3ypV22CvmVwwHp Signed-off-by: Gonzalo Fleming <[email protected]> * fix(deps): tokio 1.51.6 for RUSTSEC-2026-0386 tokio 1.51.6 deprecates the safe AsyncFd constructors, which are unsound for a descriptor closed or replaced under a live AsyncFd, in favour of unsafe register constructors that ADR-0018 forbids. The three uses keep the deprecated constructor under #[allow(deprecated)]: each AsyncFd owns its OwnedFd (the pidfd, the PTY master), which is never duplicated or closed underneath it. The ponytail comments name the upgrade path. Claude-Session: https://claude.ai/code/session_01QpBZ4qUr3ypV22CvmVwwHp Signed-off-by: Gonzalo Fleming <[email protected]> * docs(changelog): ctutils and tokio security updates Claude-Session: https://claude.ai/code/session_01QpBZ4qUr3ypV22CvmVwwHp Signed-off-by: Gonzalo Fleming <[email protected]> * chore(deny): mark the basic-toml replacement as TBD (ADR-0044, Proposed) The ignore's comment and reason presented the toml migration as decided. ADR-0044 is still Proposed in #213, so both now say TBD and point at it. Claude-Session: https://claude.ai/code/session_01QpBZ4qUr3ypV22CvmVwwHp Signed-off-by: Gonzalo Fleming <[email protected]> --------- Signed-off-by: Gonzalo Fleming <[email protected]>
…e config parser (Proposed) RUSTSEC-2026-0374 marks basic-toml unmaintained, and cargo deny fails on main because of it (#212 is the stopgap ignore). ADR-0044 supersedes ADR-0029's parser-crate bullet: toml 1.1.8 with std, serde and parse only, so the recursion limit stays in force, five crates in and one out, and a single-line schema_error built from message() and span(), with no file excerpt. Claude-Session: https://claude.ai/code/session_01QpBZ4qUr3ypV22CvmVwwHp Signed-off-by: Gonzalo Fleming <[email protected]>
Only the multi-line file excerpt is kept out of the log. serde's message text still names the key or value at fault, as basic-toml's did, and the config holds no key material. Claude-Session: https://claude.ai/code/session_01QpBZ4qUr3ypV22CvmVwwHp Signed-off-by: Gonzalo Fleming <[email protected]>
…t claimed The third requirement was not ADR-0029's, and only its recursion half holds: config::load reads the whole file with read_to_string, which RFC-0010 allows for the operator's own file. The Context now says so. Claude-Session: https://claude.ai/code/session_01QpBZ4qUr3ypV22CvmVwwHp Signed-off-by: Gonzalo Fleming <[email protected]>
c5b15e3 to
5ec6d7b
Compare
|
APIError: Insufficient Balance (request_id: 2f66f554-9cfc-468e-a616-557693a4a1ac) |
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
Summary
ADR-0044 replaces
basic-tomlwithtomlas the config-file parser. It supersedes only the "Parser crate" bullet of ADR-0029; the rest of ADR-0029 stands.basic-tomlunmaintained. The repository is archived, there is no patched version, and the advisory namestomlas the alternative.cargo denyfails onmainbecause of it, and fix(deps): clear cargo deny on main — ctutils 0.4.6, tokio 1.51.6, ignore RUSTSEC-2026-0374 #212 is the stopgap ignore until this lands.toml1.1.8 withdefault-features = falseand onlystd,serdeandparse.unboundedis not enabled, so the parser's recursion limit stays in force.display,preserve_orderanddebugare left out.toml,toml_parser,toml_datetime,serde_spanned,winnow) andbasic-tomlleaves, so the net change is four.MIT OR Apache-2.0, andMITforwinnow.schema_errorstays one line:{origin}: {message} at line {L} column {C}, built fromError::message()andError::span(). The crate's multi-lineDisplayexcerpt is not used, so no config text reaches stderr or the log.toml-span(no serde derive, so hand-written key checks),toml_edit(formatting preservation the binary does not need), and a first-party parser for a TOML subset.The ADR stays
Proposed. The implementing PR swaps the dependency, removes the #212 ignore, flips this ADR toAccepted, and points ADR-0029's Status field at it.Refs #109, #212
Type of change
Checklist
Developer Certificate of Origin
(
git commit -s).cargo fmt --allandcargo clippy --workspace --all-targets -- -D warningslocally. (Docs only.)docs/, orREADME.md) where appropriate.CHANGELOG.mdentry under## [Unreleased]if this change is user-visible. (The implementing PR adds it.)cargo deny check. (Justified here.cargo deny checkruns in the implementing PR.)Security considerations
The parser reads the operator's own config file, after the StrictModes checks. It never reads peer input and is off the pre-authentication path (threat model §4.1). The trust base grows by four crates, all checked by hand above. The recursion limit and the fail-closed
deny_unknown_fieldsrule are kept.https://claude.ai/code/session_01QpBZ4qUr3ypV22CvmVwwHp