Skip to content

refactor(auth): extract forced password change session cleanup (S08-C1b) - #372

Draft
voidvec wants to merge 2 commits into
ci/tsan-instrumented-framework-dependenciesfrom
refactor/forced-password-change-session-state
Draft

voidvec wants to merge 2 commits into
ci/tsan-instrumented-framework-dependenciesfrom
refactor/forced-password-change-session-state

Conversation

@voidvec

@voidvec voidvec commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Extract eight Session erasures and one ID rotation from the successful refresh-token revocation callback in forced password change. Keep the guard, database operations/failure callbacks, audit, email and response ordering. The helper is private and is not installed as SDK API.

Stacked on #370 (88f1525), current head febc78d. The rebase preserved both C1b patch IDs and all six changed-file hashes. #371 independently restores strict coverage and is not claimed merged.

Completed on this head:

  • Independent plan and code review; inverse substitution reconstructs the entire original controller byte-for-byte. Existing Session fixture/main/five cases are unchanged.
  • Full GCC13/C++17/Release/WERROR build and rebase incremental rebuild passed.
  • All six related complete library/dedicated binaries passed, including all nine real Session cases. Both dependency invalid-client HTTP cases passed ten assertions each, proving the unreachable skip was not taken.
  • Full CTest: 693/694 passed, zero skipped, exit 8. The complete OAuth2Tests binary without -r passed, as did SDK smoke, the legacy executable endpoint suite, FeatureSurface and SocialLoginState.
  • The sole failure was ForcedPasswordChangeSessionState_OutOfProcess: all H1-H5 assertions and retirement of 10/10 UUID users passed, then the server returned -11 after controlled termination. The identical script also observed this on the old inline implementation. The failure is preserved, is not attributed to Drogon teardown use-after-free: pin the exact UAF behind the test binary's fast-exit #300 and is not suppressed, skipped or converted to success.
  • HTTP fixtures use confidential Basic+S256, independent cookie jars, cache disabled, a fresh isolated Console email environment, bounded phases and API-only UUID fixtures.

Final-head CI 45520329432, Sanitizers 45520333465 and Optional Feature Matrix 45520338573 are running. Old-head results do not substitute for their results.

Draft, not ready for merge: overall execution acceptance failed on shutdown and final CI remains pending. No #300 investigation or static-destruction change is included.

@voidvec
voidvec force-pushed the refactor/forced-password-change-session-state branch from 55d2423 to febc78d Compare November 25, 2026 00:43

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant