Skip to content

revert(start-os): take the SMTP password change out of the registry-cache integration - #4903

Merged
dr-bonez merged 1 commit into
integration/registry-cache-syncfrom
revert/integration-smtp-password
Nov 24, 2026
Merged

dr-bonez merged 1 commit into
integration/registry-cache-syncfrom
revert/integration-smtp-password

Conversation

@helix-red

@helix-red helix-red commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

This takes #4892 (SMTP password out of the public database) back out of integration/registry-cache-sync, as @dr-bonez asked. The integration branch accepts changes only through a PR, so the revert lands here rather than on #4898 directly. Once this merges, #4898's diff against master contains no SMTP change. The SMTP fix will need to land separately if it's still wanted.

What returns to how master has it

  • The full SMTP settings, password included, stay in public.serverInfo.smtp, so every authenticated browser can still read them. That was the exposure fix(start-os): keep the SMTP password out of the public database #4892 fixed, and it is not fixed by this integration.
  • System → SMTP prefills the saved password again. The saved-password notice and the remove action are gone.
  • set-smtp loses keepPassword, and test-smtp no longer falls back to the saved password. The CLI man pages, TS bindings and MCP catalog are regenerated to match.
  • The 0.4.3 migration count returns to 3. Revision 4 (moving the settings to private.smtp) never shipped: it existed only on this unmerged integration branch, so no installed server has run it.
  • The pending security changelog fragment for the SMTP change is removed.

Implementation diff: +203 / −359 lines in 19 files (excludes lockfiles, tests, docs, release notes, and changelog). The generated MCP catalog and TS bindings make up about half of it. I counted the regenerated man pages as docs.

The one non-mechanical edit. Outside the five i18n dictionaries this is an exact git revert -m 1 of the #4892 merge. In the dictionaries, #4894 had added "Last synced" and "just now" as 1313/1314, after #4892's two SMTP strings (1311/1312). The revert removes the SMTP strings and renumbers the last-synced pair to 1311/1312 in all five languages, so the IDs stay contiguous. Neither ID set has reached master.

Testing (on this head, a137651ec)

  • make -k generated-artifacts-check: regenerating the man pages, TS bindings and MCP catalog leaves no differences.
  • make start-core-test: 1953 passed, 0 failed, including the version-revision tests at revision 3.
  • npm run build:deps, then check:i18n, check:shared (137), check:marketplace (14) and check:ui (typecheck + 315 tests): all pass. Prettier is clean.
  • git merge-tree is clean against both the integration branch and master.
  • Not exercised on a server: there is no running instance with migration revision 4 to downgrade from, and none could exist outside this branch.
  • CI: SDK, Runtime & Script Tests fails only on the known exec.lifecycle.test.ts flake (timedOutAfter: null); test(sdk): settle health-check commands before the next exec test starts #4905 fixes that on the integration branch. The binary builds and the generated-artifact job were still pending at hand-off.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5

…ivate"

This reverts commit 1c1e676, reversing
changes made to 4c758d3.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
@helix-red

Copy link
Copy Markdown
Contributor Author

The SDK, Runtime & Script Tests failure is unrelated to this revert. The one failing test is exec.lifecycle.test.ts › "the deadline covers a stdin callback that never arrives" (timedOutAfter was null, expected 10). It's the pre-existing flaky SDK exec test that open #4881 fixes, and #4898's description already notes it. This PR touches no SDK or runtime code; the other 417 tests in that job passed. I'm not changing code for it. The remaining jobs are still running.

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved at a137651ecef06d7c1d111ed760c7ff6de58f8ae4. Outside the five dictionaries, the diff is the exact inverse of #4892's merge. SMTP storage, service watching, RPC/CLI contracts, generated artifacts, form/mock behavior and migration revision are restored consistently. The dictionaries retain “Last synced” and “just now” with matching IDs in all five languages. The integration's net diff against master contains no changed SMTP/password lines.

git merge-tree is clean against integration/registry-cache-sync. No correctness findings or proposal; the PR branch remains untouched. No builds, tests, typechecks, lint or formatters were run during review.

CI is not green: core/generated checks and platform builds remain pending. I inspected the failed SDK job: its sole failing test is the documented hung-stdin exec flake (timedOutAfter: null instead of 10; 417 other SDK tests passed), outside this revert's changes. This approval is a code verdict, not a claim of merge readiness.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@dr-bonez
dr-bonez merged commit bf419bc into integration/registry-cache-sync Nov 24, 2026
59 of 60 checks passed
@helix-red

Copy link
Copy Markdown
Contributor Author

Re-ran the failed SDK, Runtime & Script Tests job. Its only failure was the exec.lifecycle.test.ts flake that #4905 fixes, and it's the one check blocking auto-merge. Every other check passed.

@DritzPS

DritzPS commented Nov 25, 2026

Copy link
Copy Markdown

At b7ed50e5febdff8dd801773d0b2f106745e3f102 the SMTP password is back in serverInfo.smtp (shared-libs/crates/start-core/src/db/model/public.rs:227, system/mod.rs:1247-1248), and get-system-smtp reads /public/serverInfo/smtp again (service/effects/system.rs:22). The revert message says the change was taken out of the registry-cache integration; I could not find an open PR that brings it back to master. Is that still planned?

Thanks,
dritzps

MattDHill added a commit that referenced this pull request Nov 25, 2026
Re-lands #4892 on master; #4903 took it back out of
integration/registry-cache-sync so #4898 carried no SMTP change.

The full SMTP settings move to private.smtp; serverInfo.smtp becomes
SmtpInfo (no password, plus passwordSet). set-smtp takes keepPassword,
test-smtp falls back to the saved password when host, port and username
match, and get-system-smtp watches private.smtp. The SMTP page no longer
prefills the password, notes when one is saved and can remove it.

The 0.4.3 migration goes to revision 5 (master's revision 4 is the
shared-volume rename); hide_smtp_password skips a value that already has
passwordSet, so it is idempotent with revision 4. The new web strings
take IDs 1315/1316.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: helix-white <267227783+helix-a@users.noreply.github.com>
Co-Authored-By: helix-red <355572797+helix-red@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants