Repository navigation
Protect the SIP password with DPAPI; bump workflow opens a pull request for review - #116
Open
Neo-Desktop wants to merge 2 commits into
Open
Neo-Desktop wants to merge 2 commits into
Neo-Desktop wants to merge 2 commits into
Conversation
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>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Sydney · project thread
Summary
SIP password protected with DPAPI
dmodem.inikeeps the SIP password protected withCryptProtectData(current user, no UI, an app-specific entropy) as hex insip-password-protected.sip-passwordof an older version to the protected key and removes the plain key.crypt32.dllis 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 insip-password, as before.docs/design.mddescribes this.D-Modem bump workflow, nightly
d-modem-bump.ymlopens or updates the bump pull request and stops. It does not merge it. A person reviews and merges it.persist-credentials: false. Only the push step and theghstep getDMODEM_BUMP_TOKEN.nightly.yml: top-levelpermissions: contents: read; thenightlyjob getscontents: writeandactions: read.build.ymlalready hadcontents: read.Behaviour changes
main, then turn on auto-merge for the bump pull request.dmodem.ini): the field is empty and the user types the password again.Tests
dmodem-appforwin7andwin32-picolibc: no warnings inconfig.cpp.check-imports.py(Windows 95/98/ME and--nt 4.0): pass, no new DLL.dmodem-win32(Linux, clang): builds.Generated by Claude Code