Skip to content

Document the remote-jobs opt-in and MDM keys - #914

Open
mlsmaycon wants to merge 1 commit into
mainfrom
docs-remote-jobs-optin-mdm
Open

Document the remote-jobs opt-in and MDM keys#914
mlsmaycon wants to merge 1 commit into
mainfrom
docs-remote-jobs-optin-mdm

Conversation

@mlsmaycon

@mlsmaycon mlsmaycon commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Documents the remote-jobs client opt-in and the two new MDM policy keys introduced in netbirdio/netbird#7153, plus the new debug-bundle parameters from netbirdio/netbird#7147.

  • MDM integration reference (client/mdm-integration): add allowRemoteJobs (boolean) and debugBundleUploadURL (string) to the managed-keys table.
  • Remote Jobs (manage/peers/remote-jobs): note that remote jobs are opt-in on the peer (default off; --allow-remote-jobs or the allowRemoteJobs MDM policy), that peers which haven't opted in are surfaced to the Dashboard (Run Remote Job disabled), and add the new Anonymization Level and Upload URL bundle parameters.

Tracked in NET-1489 (parent NET-1484). Pairs with netbirdio/netbird#7153 and #7147; merge alongside them.


Generated by Claude Code

Summary by CodeRabbit

  • Documentation
    • Added MDM policy reference entries for authorizing Remote Jobs and overriding Debug Bundle upload URLs.
    • Clarified that peers must explicitly opt in to Remote Jobs.
    • Documented anonymization levels and configurable Debug Bundle upload URLs.
    • Updated Dashboard guidance for peers that have not opted in.

Remote jobs are now an explicit opt-in on the peer (default off), enabled
with --allow-remote-jobs or the allowRemoteJobs MDM policy, and a new
debugBundleUploadURL MDM policy overrides the debug-bundle upload service.
Document both MDM keys in the MDM integration reference, and note the
opt-in requirement plus the new anonymization-level and upload-URL bundle
parameters on the Remote Jobs page.
@vercel

vercel Bot commented Aug 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview Aug 11, 2026 11:57am

Request Review

@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The documentation adds MDM policies for remote-job opt-in and Debug Bundle upload URLs. It also documents peer opt-in requirements, anonymization settings, Dashboard availability, and related limitations.

Changes

Remote Jobs Documentation

Layer / File(s) Summary
MDM policy reference
src/pages/client/mdm-integration.mdx
Adds allowRemoteJobs and debugBundleUploadURL to the MDM policy reference.
Remote job operation details
src/pages/manage/peers/remote-jobs.mdx
Documents peer opt-in, Debug Bundle parameters, Dashboard button conditions, and opt-in limitations.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Suggested reviewers: riccardomanfrin

Poem

A rabbit reads the jobs with care,
“Opt in first,” it tells the hare.
Debug bundles know where to go,
With HTTPS paths that safely flow.
The Dashboard buttons now agree—
Remote jobs wait for consent to be.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the documented remote-jobs opt-in behavior and MDM policy keys.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs-remote-jobs-optin-mdm

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/pages/client/mdm-integration.mdx`:
- Around line 73-74: Update the policy-key count in the surrounding
documentation to match the table’s 20 rows, or remove the hard-coded count so it
cannot become stale. Keep the descriptions for allowRemoteJobs and
debugBundleUploadURL unchanged.

In `@src/pages/manage/peers/remote-jobs.mdx`:
- Around line 11-13: Update both opt-in descriptions in the Note to explicitly
state that the allowRemoteJobs MDM policy must be set to true, not merely
present, while preserving the existing --allow-remote-jobs option wording.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: eaea6acb-312c-4351-b095-1eca68ba0ce8

📥 Commits

Reviewing files that changed from the base of the PR and between ffe1055 and 11c5f7e.

📒 Files selected for processing (2)
  • src/pages/client/mdm-integration.mdx
  • src/pages/manage/peers/remote-jobs.mdx

Comment on lines +73 to +74
| `allowRemoteJobs` | boolean | Allow management-requested remote jobs (e.g. debug bundles) on this peer. Off by default; equivalent to `--allow-remote-jobs`. |
| `debugBundleUploadURL` | string | Override the upload service used for debug bundles produced by remote jobs, taking precedence over the value requested by Management. Must be an `https` URL with a host. |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Update the policy count.

The preceding text at Line 63 says that the reference contains 16 keys, but the table now contains 20 rows, including these two new keys. Remove the hard-coded count or update it so administrators are not given incorrect documentation.

Proposed fix
-The same 16 keys apply on every platform.
+The same policy keys apply across platform payloads.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/pages/client/mdm-integration.mdx` around lines 73 - 74, Update the
policy-key count in the surrounding documentation to match the table’s 20 rows,
or remove the hard-coded count so it cannot become stale. Keep the descriptions
for allowRemoteJobs and debugBundleUploadURL unchanged.

Comment on lines +11 to +13
<Note>
Remote Jobs are **opt-in on the peer** and disabled by default. A peer accepts remote jobs only when started with `--allow-remote-jobs`, or when the `allowRemoteJobs` [MDM policy](/client/mdm-integration) is set. Enabling it is a privileged operation on the client (like enabling the embedded SSH server). Peers that have not opted in report this to Management, and the Dashboard disables the **Run Remote Job** button for them.
</Note>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

State that the MDM policy must be true.

allowRemoteJobs is a boolean policy. “The policy is set” can be read as “the key is present,” including allowRemoteJobs: false. State that the policy must be set to true in both opt-in descriptions.

Proposed fix
-    ... when the `allowRemoteJobs` MDM policy is set.
+    ... when `allowRemoteJobs` is set to `true` in the MDM policy.
...
-- The target peer must have **opted into remote jobs** (`--allow-remote-jobs` or the `allowRemoteJobs` MDM policy)
+- The target peer must have **opted into remote jobs** (`--allow-remote-jobs` or `allowRemoteJobs: true` in the MDM policy)

Also applies to: 146-146

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/pages/manage/peers/remote-jobs.mdx` around lines 11 - 13, Update both
opt-in descriptions in the Note to explicitly state that the allowRemoteJobs MDM
policy must be set to true, not merely present, while preserving the existing
--allow-remote-jobs option wording.

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