Repository navigation
Browse and edit a Windows device's registry from the website without a remote session - #288
Merged
Merged
Conversation
gccody
force-pushed
the
remote-tools-registry
branch
2 times, most recently
from
November 11, 2026 22:52
0222fd1 to
d15e9c9
Compare
gccody
enabled auto-merge (squash)
November 11, 2026 22:52
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.
Builds on #286 (processes and services), which should merge first. Until it does, this diff includes #286's commit. After #286 merges, this branch will be rebased onto
main, leaving only the registry commit.What
A Registry tool for Windows devices beside Processes and Services. It needs no remote session.
HKEY_LOCAL_MACHINE,HKEY_USERS,HKEY_CLASSES_ROOTandHKEY_CURRENT_CONFIG, in the 64-bit view or the 32-bit one (WOW6432Node). A key shows its subkeys and values. The path bar accepts pasted paths, including Regedit'sComputer\HKEY_…. A filter narrows the list.REG_SZ,REG_EXPAND_SZ,REG_MULTI_SZ,REG_DWORD,REG_QWORD(hexadecimal or decimal) andREG_BINARY. Other types are shown in hexadecimal but can't be edited.unsupportedwithout asking those devices.Design
crates/protocol-types/src/registry.rsplus seven newToolOperations, carried by Show and change a device's processes and services from the website without a remote session #286's request/response flow. Server waits, Agent deadlines, busy handling and the per-device bound all work as in Show and change a device's processes and services from the website without a remote session #286.REG_QWORDtravels as a decimal string, since JavaScript can't hold every 64-bit value.agent/src/remote/tools/registry.rs): Win32 registry calls as SYSTEM, withKEY_WOW64_64KEYorKEY_WOW64_32KEY.RegDeleteTreeW, thenRegDeleteKeyExWon the key in the chosen view.existsandnot_empty.tools.registry.viewandtools.registry.manage, granted to Technician. Every route authorizes throughwindows_device, which calls Show and change a device's processes and services from the website without a remote session #286'sauthorized_device, so device authorization still happens in one place.registry.key.create,registry.key.delete(withrecursive),registry.value.set(type,size,created),registry.value.renameandregistry.value.delete. Each records the key, view and value name, and the result, includingfailedandunconfirmed. Never the data written, which may be a secret. Browsing isn't recorded.Docs: a Registry section in
docs/remote-tools.md(behavior, limits, protected keys, audit, routes, wire format), a row and note inplatform-parity.md, and the README feature list.How it was tested
cargo test -p meshrmm-server --test registryon SQLite and PostgreSQL, using a stand-in Windows Agent. It covers:not_foundandnot_empty;unsupported;tools,users_and_roles,api_tokens,schema_parity,maintenance_windowsandreportstests and the server's unit tests, on both databases.cargo test -p meshrmm-agent registryon Windows against the real registry:HKLM\SOFTWARElisted in both views;HKCU\Software\MeshRMM-test\…key, which the test deletes afterwards.-D warnings(zigbuild), and the Linuxtools::tests.npm run verifyindashboard(370 tests, bundle sizes included): path parsing (includingHKCUrejected), data formatting, the editor's limits and conversion between bases (64-bit values kept exact), and unavailability on other platforms.