All notable changes to this project are documented in this file.
- Enforced per-user registry isolation in
src/registry/registry.js. DB_BACKUP_REGISTRY_PATHnow falls back to default unless it points inside the current user's home directory.- Registry directory/file creation now uses restrictive permissions (
0700dir,0600file). - Removed legacy registry seeding behavior from repository paths.
- Added ignore rules for local runtime artifacts:
src/registry/backupRegistry.jsonbackups/
- Updated README and installation docs to clarify user-scoped registry behavior and safe override constraints.
- Removed tracked registry artifact from source tree to reduce accidental secret commits.
- Performed repository secret remediation workflow (history cleanup and force-push) for previously leaked registry content.
- Removed the unused shell-string command helper behavior in
src/utils/exec.js. - Reduced shell-invocation risk by keeping command execution argument-based in adapters.
- Updated
SECURITY.mdwith explicit command execution safety notes:- shell-string helper removed
- no
shell: truemode used - adapters use argument-based process spawning
- Improved backup registry entry creation for URI-based connections.
- Added database name inference from URI path when
databaseis missing. - Prevents registry validation failures for URI-only backup flows.
- MySQL remote flow now supports two methods:
- Connection URI
- Manual details
- PostgreSQL remote flow now supports two methods:
- Connection URI
- Manual details
- Added create-command tests for URI database inference and fallback behavior:
tests/commands/backup/create.test.js
- Updated prompt tests to match current remote flow behavior:
tests/prompts/mysqlPrompt.test.jstests/prompts/postgresPrompt.test.js
- Updated option-validation expectation to match current validator behavior:
tests/utils/options.test.js
- Updated README and docs to reflect new remote connection flows and URI behavior.
- Fixed npm README documentation links by switching to absolute URLs via
unpkg:docs/INSTALLATION.mddocs/COMMANDS.mddocs/ARCHITECTURE.md
- Removed shell-string compression command in Mongo backup flow.
- Replaced it with argument-based process execution for tar compression.
- Added filename/path component sanitization for backup artifact names.
- Reduced command-injection and path-traversal risk from untrusted input.
- Added sanitizer test coverage in
tests/utils/sanitize.test.js.
- Updated README for published npm package usage (
backinghum). - Added dedicated documentation pages:
docs/INSTALLATION.mddocs/COMMANDS.mddocs/ARCHITECTURE.md
- Improved installation and quick-start guidance.
- Clarified security publishing guidance (2FA/OTP flow).
- Included
docs/in npm publish allowlist.
- Hardened error handling across commands/adapters/registry.
- Added comprehensive automated tests.
- Reduced runtime dependency surface.
- Added
SECURITY.mdand packaging hardening. - Prepared and published package as
backinghum.