Skip to content

Protect the SIP password with DPAPI; bump workflow opens a pull request for review - #116

Open
Neo-Desktop wants to merge 2 commits into
mainfrom
claude/project-thread-x0krhu
Open

Neo-Desktop wants to merge 2 commits into
mainfrom
claude/project-thread-x0krhu

Conversation

@Neo-Desktop

Copy link
Copy Markdown
Contributor

Requested by Sydney · project thread

Summary

SIP password protected with DPAPI

  • On Windows 2000 and later, dmodem.ini keeps the SIP password protected with CryptProtectData (current user, no UI, an app-specific entropy) as hex in sip-password-protected.
  • The first start moves a plain sip-password of an older version to the protected key and removes the plain key.
  • crypt32.dll is loaded at run time, so there is no new import and the app still starts on Windows 95, 98, ME and NT 4.0. There, and in the winport app (Linux, macOS, Haiku), the password stays in plain text in sip-password, as before.
  • docs/design.md describes this.

D-Modem bump workflow, nightly

  • d-modem-bump.yml opens or updates the bump pull request and stops. It does not merge it. A person reviews and merges it.
  • The checkout uses the read-only workflow token with persist-credentials: false. Only the push step and the gh step get DMODEM_BUMP_TOKEN.
  • nightly.yml: top-level permissions: contents: read; the nightly job gets contents: write and actions: read. build.yml already had contents: read.

Behaviour changes

  • Bump pull requests are no longer merged automatically. To merge with no person again: make the Build checks required on main, then turn on auto-merge for the bump pull request.
  • On Windows, a protected password does not open for another user or on another computer (a copied dmodem.ini): the field is empty and the user types the password again.
  • A downgrade to an older version shows an empty SIP password.

Tests

  • clang-retro builds of dmodem-app for win7 and win32-picolibc: no warnings in config.cpp. check-imports.py (Windows 95/98/ME and --nt 4.0): pass, no new DLL.
  • winport dmodem-win32 (Linux, clang): builds.

Generated by Claude Code

Neo-Desktop and others added 2 commits December 1, 2026 11:49
dmodem.ini kept the SIP password as plain text in "sip-password". On
Windows 2000 and later the app now protects it with CryptProtectData
(current user, no UI) and keeps the result as hex in
"sip-password-protected". The first start moves a plain password of an
older version to the protected key and removes the plain key.

crypt32.dll is loaded at run time, thus the app still starts on Windows
95, 98, ME and NT 4.0 (no new import). There, and in the app on Linux,
macOS and Haiku (winport), the password stays in plain text as before.
A protected value that does not open (another user or computer) gives an
empty password: the user types it again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRS8zc7PwDMpc5KSjwa
Signed-off-by: Neo-Desktop <321592+Neo-Desktop@users.noreply.github.com>
…coped to its job

The bump workflow merged its pull request when the checks passed, with
no review. Now it opens or updates the pull request and stops: a person
reviews it and merges it. The checkout keeps no credentials
(persist-credentials: false): only the push and the gh steps get
DMODEM_BUMP_TOKEN.

nightly.yml: the workflow is read-only by default, and the nightly job
gets contents: write and actions: read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRS8zc7PwDMpc5KSjwa
Signed-off-by: Neo-Desktop <321592+Neo-Desktop@users.noreply.github.com>
@Neo-Desktop Neo-Desktop self-assigned this Dec 1, 2026

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