Repository navigation
[M2.2c5] Redact sensitive HTTP error diagnostics - #52
Merged
Merged
Conversation
5 tasks done
samuelmbabhazi
force-pushed
the
feat/m2.2c4c2-auth-http-retries
branch
from
November 4, 2026 11:36
06d806c to
7606393
Compare
samuelmbabhazi
force-pushed
the
fix/m2.2c5-http-secret-boundaries
branch
from
November 4, 2026 11:36
507e9e2 to
42f35ba
Compare
samuelmbabhazi
force-pushed
the
feat/m2.2c4c2-auth-http-retries
branch
from
November 5, 2026 12:31
7606393 to
4467aa9
Compare
samuelmbabhazi
changed the base branch from
feat/m2.2c4c2-auth-http-retries
to
main
November 5, 2026 12:31
samuelmbabhazi
force-pushed
the
fix/m2.2c5-http-secret-boundaries
branch
from
November 5, 2026 12:31
42f35ba to
98423a7
Compare
samuelmbabhazi
added a commit
that referenced
this pull request
Nov 5, 2026
MFA persistence now keeps either an encrypted pending TOTP seed or an active seed. Pending enrollment lasts ten minutes, is tied to the account security version, and cannot activate after expiry, a password change or account disablement. An active seed cannot be overwritten by staging another enrollment. TOTP counters only advance, recovery hashes are consumed once, and all mutations join the existing user transaction. Removing MFA cascades its recovery records. Schema constraints enforce paired fields, ciphertext bounds, counter range and enrollment lifetime. Commands/HTTP wiring follow in M2.2d2/d3. Validation: API lint/typecheck and all 51 real PostgreSQL/TLS SMTP integration tests pass. Four new PostgreSQL tests cover encrypted round trips, expiry/version/disabled-account rejection, concurrent claims across connections, cascade cleanup, invalid hash batches and audit-failure rollback. Security: raw seeds and recovery values never enter the new tables. The adapter only accepts ciphertext; envelope associated data binds it to the user. Application commands must hold the existing per-user lock. This PR introduces persistence only and does not yet enable MFA enrollment publicly. Stacked on #52; no merge requested. - [x] M2.2d1 criteria met - [x] Migration and concurrent claims tested on PostgreSQL - [x] Audit rollback preserves proof availability - [x] Plan and security parameters updated - [x] No new shell invocation or secret exposure path
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
HTTP diagnostics could expose credentials despite header redaction: the request serializer kept URL query strings, the problem instance echoed them, and framework/parser exceptions or unexpected driver errors could include sensitive input.
Request logs and problem instances now keep only the URL path. HTTP exceptions retain status/code but use fixed status text; domain and DTO validation retain their reviewed public messages. Error logs include only request ID, path and status, excluding raw exceptions.
Validation: API lint/typecheck and all 94 unit tests pass. New regression tests send malformed credential JSON through the HTTP pipeline and inject query tokens/raw exception secrets, asserting that responses and diagnostic logs do not contain the values. Existing domain/validation status contracts remain covered.
Security: closes credential reflection and logging paths without a new dependency, command mutation or migration. Plan/threat model updated. Stacked on the HTTP idempotency branch; no merge requested.