Skip to content

Release 2.0.2: resolve remaining code-review issues - #32

Merged
wmantly merged 1 commit into
masterfrom
issue-fixes-2026-07-18
Jul 18, 2026
Merged

Release 2.0.2: resolve remaining code-review issues#32
wmantly merged 1 commit into
masterfrom
issue-fixes-2026-07-18

Conversation

@wmantly

@wmantly wmantly commented Jul 18, 2026

Copy link
Copy Markdown
Owner

This PR addresses the outstanding items from docs/issues.md and the root issue.md report, plus a few related cleanups.

Changes

  • Reliable password updates: setPassword now uses chpasswd instead of writing to passwd's stdin.
  • Username length: validateUsername now accepts Linux login names up to 32 characters.
  • Duplicate SSH keys: addSSHtoUser checks authorized_keys and skips appending an already-present key.
  • Consistent spawn handling: removeUser and addUserToGroup now route through spawnWrapper, so they share the same error contract and optional timeout support.
  • Internal entry-point guard: lib/promise.js now enforces the Linux platform check when required directly.
  • Docs/website: documented the addUser string shortcut, chpasswd requirement, and duplicate-key behavior; aligned navigation across all Pages HTML files and updated the copyright year.
  • Tests: added coverage for the 32-character username limit, the addUser string shortcut, and duplicate-key prevention.
  • Version: bumped to 2.0.2 and updated the changelog.

Verification

  • npm test passes (root-only tests are skipped as expected when not running as root).
  • npm run lint passes.

🤖 Generated with Claude Code

- Use chpasswd in setPassword for reliable non-interactive updates
- Accept Linux login names up to 32 characters
- Prevent duplicate SSH keys in addSSHtoUser
- Route removeUser/addUserToGroup through spawnWrapper
- Add Linux platform guard to lib/promise.js
- Update README and docs website for new behavior
- Bump version to 2.0.2

Co-Authored-By: Claude <noreply@anthropic.com>
@wmantly
wmantly merged commit 80e9d60 into master Jul 18, 2026
2 checks passed
@wmantly
wmantly deleted the issue-fixes-2026-07-18 branch July 18, 2026 22:02
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