Files
summercms/.planning/phases/19.6-two-factor-auth-and-device-flow-in-sm-user-plugin/deferred-items.md
Jakub Zych 07f4632dc2 docs(19.6): v0.1.1 release recorded, finding F-1 deferred
- security review: T-19.6-37 closed by sm-mfa-plugin v0.1.1, F-1 deferred
  with the corrected reason for the activate-by-code mint path
- validation map: plan 04 Tasks 5 and 6 green
- todo for F-1; deferred items: tag message resolved, F-1 deferred
2026-10-26 15:34:38 +01:00

5.4 KiB

Deferred Items

  • sm-sociallogin-plugin: signin_event_test.go is not gofmt-clean at origin/master 4d3b2dd (v0.1.3) status: open What: gofmt -l . lists it: logRecorder.Enabled is a one-line method gofmt now splits. It came with 4d3b2dd from another session. Plan 19.6-03 did not touch it. Fix it in a style: commit in sm-sociallogin-plugin.
  • vue-demo-app has no type-check tooling status: open What: the Nuxt build does not type-check, and vue-tsc is not a dependency, so 19.6-03 Task 3 checked the new page, composables and header with vitest and pnpm build only. The user decides whether to add nuxi typecheck.
  • fonoteka.go: five Docker-backed tests in plugins/golem15/fonoteka fail without -short, at the committed user pointer v0.1.10 as well as at v0.1.12 status: open What: found by 19.6-03 Task 6 (baseline run with the user submodule at bfcfea4; the failures are identical):
    • TestPhase09SecurityRoutes: unexpected cabana admin routes (account/contributions, account/preferences, reorder, singleton) from the framework working tree.
    • TestPhase8RedMCPMe, TestOAuthToolsMeRouteIsolation: GET /_user/api/v1/token/me counts as a /me-suffixed route on another surface.
    • TestMustChangePasswordLock: login answers 401 "Invalid email or password".
    • TestPhase14Edges/prune-cutoff-90-days-then-one-second-older: prune leaves the "past" row. None of these tests inventories user-plugin tables, routes or models, so 19.6-03 did not change them. The -short suites are green. The parity inventories (parity/migrate_test.go, parity/schema_diff_test.go) were also red at v0.1.10; 95fd58a fixed them along with the bump.
  • fonoteka.go: root go.mod still requires sm-user-plugin v0.1.10 status: open What: the module resolves through replace => ./plugins/golem15/user, so builds and tests use the v0.1.12 checkout. 19.6-03 Task 6 staged only the paths the plan names. Precedent 06bc9d0 raised the require together with the pointer. Raise it to v0.1.12 (and tidy) in a follow-up chore: commit.
  • sm-mfa-plugin: the v0.1.0 tag message says the two-factor mode is "optional, required or disabled" status: resolved (2026-10-26: the v0.1.1 tag message names the modes disabled, optional and enforced) What: the config values are disabled, optional and enforced. The tag is pushed and is not rewritten (that would need a force-push). The README and config/config.yaml are correct. The next release's tag message should name the right values.
  • sm-demo-app: the release build needs read access to the private sm-mfa-plugin repository status: resolved (2026-10-26: the user made golem15/sm-mfa-plugin public; anonymous HTTPS git ls-remote of v0.1.0 works) What: found by 19.6-03 Task 6 part (1). scripts/build.sh release and scripts/check-pins.sh run with GOWORK=off GOPRIVATE=git.golem15.com/*, so Go fetches every required plugin over anonymous HTTPS. The other sm-*-plugin repositories allow that; sm-mfa-plugin is private, so the fetch fails ("could not read Username for 'https://git.golem15.com'"). On this machine the release build and the pins check pass, because v0.1.0 is already in the module cache: go get filled it through a one-command url.git@git.golem15.com:.insteadOf https://git.golem15.com/ rewrite in the environment, and no global config was changed. A clean module cache, or another build machine, fails. The user decides: make sm-mfa-plugin public like the other plugins, or give the build host credentials (an insteadOf rewrite to SSH or a netrc) and document it in DEPLOY.md. sm-bm-app is not affected (it builds from the submodule through a replace).
  • sm-demo-app: uncommitted journal and oauthserver submodule moves left over from Phase 19.7 plan 05 status: open What: tracked as the pending todo .planning/todos/pending/2026-10-26-sm-demo-app-journal-oauthserver-pointers.md. 19.6-03 left both unstaged.
  • sm-user-plugin: the classes package starts Postgres under -short status: open What: found by 19.6-04. classes/throttle_test.go throttleDB (used by TestCodes and other classes tests) starts a testcontainers Postgres without checking testing.Short(), so go test -short ./... of the user plugin needs Docker (about 45 s on this host) and fails on a host without it. Predates this phase. 19.6-04 fixed the same problem in the updates package (2c68979, its TestMain scanned os.Args for -test.short). Fix it the same way in a test: commit.
  • sm-mfa-plugin and sm-user-plugin: multi-key success bodies carry Go's sorted key order status: open (observation) What: found by 19.6-04 TestPHPErrorBodies. Bodies built from Go maps (the login challenge, 2fa/status, totp/setup, email/send, the WebAuthn register answer, the device initiate and status bodies) list their keys alphabetically, where PHP's response()->json([...]) kept insertion order. Values and key sets match PHP; error bodies and the 422 bodies are byte-identical. JSON clients do not depend on key order, so nothing was changed; recorded in 19.6-SECURITY-REVIEW.md "Residual risks" for a decision if a client ever compares raw bytes.
  • sm-user-plugin: activate-by-code mints a session without the second factor when require_activation is off (finding F-1) status: deferred (user decision at plan 04 Task 5) What: see 19.6-SECURITY-REVIEW.md "Deferred findings" and the todo .planning/todos/pending/2026-10-26-activate-by-code-second-factor.md.