mirror of
https://github.com/Monkopedia/rouse-context.git
synced 2026-12-02 18:15:31 +00:00
* Fix #389: Provision certs during onboarding so fresh installs land in a usable state Extend OnboardingFlow to chain CertProvisioningFlow.execute after subdomain registration succeeds so a fresh install ends with all three PEMs (ACME server cert, relay-CA client cert, relay CA) persisted on disk instead of just the subdomain file. Without this hop the device appeared functional (dashboard rendered, pending integrations visible) but every incoming AI TLS handshake EOF'd and every WS reconnect 401'd because the store had no certs to present — the root cause of #386 and #387. OnboardingViewModel now routes cert-provisioning outcomes into retryable OnboardingState.Failed / RateLimited surfaces with a "Try again" entry point, and the UI holds on the onboarding screen during the several-second ACME hop instead of silently dropping the user on Home with a half- configured install. The subdomain is preserved across cert failures (#163) so retry re-runs only the cert issuance step. Idempotency via CertProvisioningFlow.AlreadyProvisioned means the existing IntegrationSetupViewModel path is unchanged: enabling an integration on a device that already has certs short-circuits as before. Co-Authored-By: Claude Opus 4 (1M context) <noreply@anthropic.com> * Fix #389 (follow-up): Keep integration harness OnboardingFlow without chained cert provisioning The initial commit wired CertProvisioningFlow into the integration harness's OnboardingFlow override to mirror production. That broke every integration scenario that drives both flows explicitly (HarnessSmokeTest + OnboardingHappyPathTest pattern) because the second explicit cert call returns AlreadyProvisioned instead of Success, tripping the asserts, and also inflated the per-test /register/certs counter assertions. Flip the override back to an OnboardingFlow without the chained cert step so ProvisioningExtensions.provisionDevice keeps its "call both flows explicitly" contract. Production still chains — the change in appModule and the OnboardingFlow surface are untouched. OnboardingInterruptedResumableTest can go back to using the Koin-supplied flow now that the harness override is no-cert-chain again. Co-Authored-By: Claude Opus 4 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| auth-pages | ||
| design | ||
| internal | ||
| notifications | ||
| screenshots | ||
| user | ||
| audit.md | ||
| device-test-report.md | ||
| e2e-status.md | ||
| overnight-plan-2.md | ||
| screenshot_audit_tab.png | ||
| screenshot_connected.png | ||
| screenshot_dashboard.png | ||
| screenshot_settings_tab.png | ||
| security-audit-2026-04-07.md | ||
| security-decisions.md | ||
| security.md | ||
| self-hosting.md | ||
| test-coverage-audit.md | ||
| workflow.md | ||