mirror of
https://github.com/netbirdio/docs.git
synced 2026-10-09 15:19:04 +02:00
docs: group MDM policy keys by job and split delivery into per-platform pages (#1020)
* docs: document the MDM keys added since the page was written, and iOS The reference table listed 18 of the 23 keys the client recognises, and claimed a count of 16. Six keys were missing from every downloadable template as well, including lazyConnection, which the page already documented: - lazyConnection, disableAdvancedView, enableLocalMetrics, localMetricsAddress, allowRemoteJobs and debugBundleUploadURL are now in the reference table and in netbird.admx/.adml, io.netbird.client.plist, netbird-macos.mobileconfig, netbird-macos.sh and netbird-policy.reg. - Notes call out the two pairs that read as related but are not: disableMetricsCollection (anonymous telemetry) versus enableLocalMetrics (the client's own Prometheus endpoint), and disableAdvancedView being UI-only, so unlike its neighbours it never causes a request to be rejected. iOS and tvOS now have a section of their own. The channel is Apple's Managed App Configuration against bundle id io.netbird.app (io.netbird.app.tv on tvOS), with a new netbird-ios-appconfig.plist template and per-provider instructions. The section states what the policy reaches today: the app locks its interface and refuses configuration changes, while the tunnel engine runs in a Network Extension that does not receive the app configuration, so keys the engine applies to the connection are not enforced there yet. Two template defects found on the way: - netbird-macos.mobileconfig was not well-formed XML. Its header comment contained a double hyphen, which XML forbids inside a comment, so plutil -lint and any strict parser rejected the file an admin downloaded. - netbird-policy.reg had one LF-terminated line among CRLF ones; normalised, with the UTF-16LE encoding reg import requires preserved. Verified with npm run build and npm run lint:mdx, plus XML well-formedness on all five XML templates, bash -n on the shell template, and a cross-reference check that every string and presentation the ADMX references is defined in the ADML. * docs: iOS enforces every key; document when a change reaches the tunnel The iOS section was written while the policy stopped at the app: the network extension that runs the engine has its own preferences domain, and Apple's app-configuration channel does not deliver there. The app now mirrors the configuration into the shared App Group and tells the extension when it changes, so the keys the engine applies to the connection are enforced too. What replaces the old warning is a timing caveat, which is what an admin actually needs in order to plan a rollout. The hand-off happens only while the app is running: in the foreground a change reaches the tunnel within about 30 seconds or immediately on activation, but iOS suspends a backgrounded app, so a policy pushed — or withdrawn — in that window applies the next time the app is opened. A tunnel brought up by VPN On Demand or the widget therefore runs on the last policy the app saw. tvOS keeps the old behaviour and now says so: the hand-off needs a shared app group, which does not work between the tvOS app and its extension, so only the interface is enforced there. Also corrected: blockInbound, wireguardPort and lazyConnection are no longer listed as having no effect but as having no control to lock, and debugBundleUploadURL moves out of the ignored list, since the engine applies it when a remote job produces a bundle. The app-config template carries the same three keys and the same timing note. * docs: list allowRemoteJobs among the keys iOS enforces without a control The key is enforced on iOS like the other engine-applied ones: a peer whose policy withholds it refuses management-requested jobs. What is not there yet is the lock on the Troubleshoot toggle, which arrives with the iOS client PR that introduces that toggle — so promising it in the table of what the user sees would describe a screen that does not exist. Moved to the group of keys the engine applies with nothing on screen to mark, next to blockInbound, wireguardPort, lazyConnection and debugBundleUploadURL. It moves back to the table once the toggle ships. * docs: sign macOS profiles with CMS, and scope the iOS claims properly Three review findings, all correct. `productsign` signs installer packages, not configuration profiles, and an Apple Developer ID certificate cannot sign a profile at all — Apple's own guidance is that a `.mobileconfig` is a CMS signed-data message. The instruction predates this branch but the commit that fixed the malformed XML comment rewrote it, so it is fixed here rather than carried forward. It was also misleading in a second way: a profile delivered through an MDM is signed by the MDM channel, so a managed rollout has nothing to sign by hand. The step now says that, and gives `security cms -S` for the case where the profile is handed out some other way. "Every key is enforced on iOS" contradicted the list of platform-inapplicable keys three paragraphs below it; it now reads "every key that applies to the platform", and points at that list. The engine-applied group — blockInbound, wireguardPort, lazyConnection, allowRemoteJobs, debugBundleUploadURL — was stated without qualification under a table headed "iOS / tvOS", while the warning just above says the tvOS engine never receives the policy. Marked as iOS, with the tvOS case pointed back at that warning. * docs: group MDM policy keys by job and split delivery into per-platform pages Rewrite /client/mdm-integration as the concept page and key reference: a running example (a three-key baseline), the "pinned switches" model (present means pinned, even as false), and the 23 keys grouped by the job they do, each with its own anchor and the mistake it invites. Correct claims that disagree with the client source (v0.80.0): - disableClientRoutes stops the device using routes (resources, exit nodes); it was described as not routing for others - blockInbound also stops the SSH server and routing; not a kill switch - since v0.75.0 the app hides managed settings, no "(MDM)" tag - a policy change restarts the connection - splitTunnel* have no effect today (Android has no MDM channel yet) - managementURL pins the server, not the account, on NetBird Cloud - the pre-shared key is readable by local users on Windows and macOS Move Windows, macOS and iOS delivery into their own pages under MDM Deployment, add them to the nav, and point inbound links at the new per-key anchors. * docs: fix MDM accuracy points found in review - integer booleans are ignored on macOS (plist decodes as uint64); say so - disableAutostart and disableAdvancedView lock nothing; qualify the lock claim - managementURL: drop the disableProfiles advice, no key pins the account - drop the unverifiable restart duration and a disableAdvancedView claim - macOS page: fix 'never write the file' vs the shell-script channel - Windows page: warn that the sample .reg pins every key - tighten wording * docs: say what disableAdvancedView hides (Peers and Resources tabs) * docs: make clear disableNetworks removes the choice, not the networks * docs: add recommended MDM policies by device role * docs: lazyConnection follows the account setting, on by default since v0.74.0 * docs: drop the open-an-issue line from MDM troubleshooting * docs: make remote jobs optional for every device role * docs: make disableNetworks and disableAdvancedView optional for laptops * docs: rename Recap to TL;DR on the MDM pages * docs: TL;DR on the main MDM page only, drop the lead-in * docs: list MDM Integration first under MDM Deployment in the nav * docs: second review pass on the MDM pages - macOS integer booleans are locked as well as unapplied; say so - the lock-nothing keys are not desktop-only (disableAdvancedView on iOS) - drop Linux from disableAutostart (no MDM channel there) - blockInbound: drop the redundant routed-network clause - encryption intro: Rosenpass permissive does not need to match - troubleshooting: check macOS boolean types, no warning is logged - wording fixes * docs: correct MDM timing and CLI claims from a macOS lab run (v0.80.0) - netbird debug config reads the policy file on each call; the daemon applies a change at its next reload and logs 'MDM policy changed' - netbird up --flag on a connected client ignores its flags; the rejection examples now say login --flag or up on a disconnected client - settings-field locks apply immediately; the disableUpdateSettings, disableProfiles and disableNetworks gates apply at the next reload - the restart on a policy change takes a second or two * docs: MDM results from the Windows and macOS profile labs (v0.80.0) - netbird logout works under every key and deregisters the peer; with managementURL, disableProfiles and disableUpdateSettings pinned, logout plus up --setup-key moves a device to another account on the same URL - a profile-installed macOS policy file is a binary plist, root:wheel 644 - a REG_BINARY (or other unread type) value is not listed as managed - the policy key inherits Authenticated Users read access * docs: tighten four MDM statements to what the labs and source show - no key blocks netbird logout of the active profile (source: only a non-active profile logout is gated, by disableProfiles) - the engine-restart log line appears only while the client is connected - macOS: binary plist is what a configuration profile produces; the shell script writes the same owner and mode - Windows: the observed fact is that the NetBird key inherits Authenticated Users read access, not a statement about the parent key * docs: address CodeRabbit review on the MDM delivery pages - iOS: the app must be managed by the MDM, not necessarily installed by it (Apple supports taking over a user-installed app); same in the iOS app-config template - macOS: Jamf's Application & Custom Settings takes the bare plist, so point Jamf at io.netbird.client.plist (and note the signed .mobileconfig upload route); JumpCloud's MDM Custom Configuration Profile takes a .mobileconfig per JumpCloud's docs, so drop the bare-plist claim and its troubleshooting entry - Windows: ADMXInstall only ingests the template; values are set through Policy/Config/NetBird~Policy~NetBird/<PolicyName>; drop the unverified Registry CSP path * docs: address CodeRabbit's second review of the MDM templates - netbird-macos.sh: managementURL, allowServerSSH and wireguardPort now default to $NULL like every other key; the old defaults pinned them (allowServerSSH=true pinned the SSH server allowed) on any run that did not edit those lines - drop the claim that disableMetricsCollection governs anonymous usage telemetry from the mobileconfig, the bare plist, the script and the ADML help text; the client recognizes the key but nothing reads it * docs: correct the Mosyle path for the macOS MDM profile Mosyle takes the .mobileconfig under Management > Management Profiles > Certificates / Custom Profiles; there is no Custom Settings option with a preference domain (per Orb and SI Prep deployment guides; Mosyle's own docs need a login). Drop Mosyle from the bare-plist template header, and align the mobileconfig header with the Jamf advice on the page. * docs: drop the profiles-command install tip from the macOS template macOS 11 and later cannot install configuration profiles with the profiles command (man profiles, profiles tool 8.0+); point local testing at a double-click and System Settings > General > Device Management, the path the lab used. * docs: make the Windows MDM page Intune-first, with a registry reference section The page now leads with the Intune workflow: import the NetBird ADMX/ADML once, create an Imported Administrative templates profile, assign it to a device group, sync and verify, then the OMA-URI fallback and Intune troubleshooting. Group Policy, .reg files, JumpCloud and the value-type table move to a Registry reference section with its own troubleshooting. New, from Microsoft Learn (Import custom ADMX templates): the current portal paths, en-us ADML only, and that re-importing an updated template fails until the profiles and the old template are deleted. netbird.admx has no namespace dependencies and no combo boxes, so it imports alone. The Intune install page stays separate; both pages now link to each other. Main-page links follow the renamed anchors (#value-types, #intune-troubleshooting). * docs: move the enforce-settings link to the end of the Intune deploy page * docs: group the Windows page's Intune steps under one heading Mirrors the Registry reference section, so the page's table of contents shows the Intune/registry split. Heading texts and anchors are unchanged. * docs: rename the first MDM key group to Set the server and startup The old heading named only managementURL; the group also holds disableAutoConnect and disableAutostart. * docs: add a use case to the Lock the client app section What a developer on a locked Acme laptop sees (app tabs, the two CLI errors, what still works), plus the finance team's disableNetworks and Auto Apply exit node variant. Every behaviour is from the macOS and Windows labs (v0.80.0). * docs: replace the Lock the client app use case with a plain goals table Goal, setting, and what users can still do, written for a junior admin. disableProfiles row says plainly that signing out and into another account still works (Windows lab W12). * docs: OMA-URI payloads: <disabled/> pins an on/off setting off The ADMX's on/off policies write enabledValue 1 and disabledValue 0, so <enabled/> can only pin a setting on; document <disabled/> for off, the String data type, and that un-pinning means Not configured (check the device with reg query, since removing an OMA-URI may not clear it). * docs: add What you can achieve tables to every MDM key section Same goal / setting / what-to-know format as Lock the client app, for server and startup, device exposure, encryption, support and monitoring, and connection tuning; Lock's table now names values too. Every line restates a claim already verified in the labs or source. * docs: reorder the MDM page: goals first, key reference after - What you can achieve (the six goal tables) comes first, then Recommended policies, How the client applies a policy, and the Policy keys reference; goal-table keys link down to their reference entries - reference groups get noun names (Server and startup keys, ...) so no two headings share an anchor - the Acme running example is gone; its three keys become The laptop baseline under Recommended policies, which the Windows, macOS and iOS pages now link to as their example - a one-line pin rule opens the goals, since the explanation now follows * docs: laptop baseline goes to the user-devices group, not just laptops * docs: rename the laptop baseline to the user device baseline It applies to every user device (and the iOS page uses it), so the Recommended policies column becomes User devices, the anchor becomes #the-user-device-baseline, and the three platform pages follow. --------- Co-authored-by: riccardom <riccardomanfrin@gmail.com>
This commit is contained in:
@@ -3,9 +3,8 @@
|
||||
<!--
|
||||
NetBird MDM preferences (macOS) — bare plist for MDM platforms that
|
||||
accept a managed-preferences plist tied to a bundle identifier
|
||||
(e.g. JumpCloud "Mac Application Custom Settings", Mosyle "Custom
|
||||
Settings", Jamf "Application & Custom Settings" → External
|
||||
Application).
|
||||
(e.g. Jamf Pro "Application & Custom Settings" → External
|
||||
Applications).
|
||||
|
||||
Bundle identifier (preference domain): io.netbird.client
|
||||
|
||||
@@ -18,7 +17,8 @@
|
||||
loader reads on every 1-minute MDM reload tick.
|
||||
|
||||
For MDM platforms that expect a full Configuration Profile instead
|
||||
of a bare plist (Custom Configuration Profile / .mobileconfig upload),
|
||||
of a bare plist (a .mobileconfig upload, such as JumpCloud's "MDM
|
||||
Custom Configuration Profile" policy),
|
||||
use docs/netbird-macos.mobileconfig — same keys, additional Payload*
|
||||
envelope.
|
||||
|
||||
@@ -85,6 +85,15 @@
|
||||
<false/>
|
||||
-->
|
||||
|
||||
<!-- ===== Lazy connections =====
|
||||
true forces lazy connections on, false forces them off, and an
|
||||
absent key defers to the Management setting. NB_LAZY_CONN
|
||||
takes precedence when both are configured. -->
|
||||
<!--
|
||||
<key>lazyConnection</key>
|
||||
<true/>
|
||||
-->
|
||||
|
||||
<!-- ===== WireGuard UDP port =====
|
||||
Range 1-65535. Omit to keep the daemon default. -->
|
||||
<!--
|
||||
@@ -92,6 +101,33 @@
|
||||
<integer>51820</integer>
|
||||
-->
|
||||
|
||||
<!-- ===== Remote jobs =====
|
||||
allowRemoteJobs : allow management-requested remote jobs
|
||||
(e.g. debug bundles) on this peer. Off by
|
||||
default. Present at any value locks the
|
||||
client toggle, so false pins it off.
|
||||
debugBundleUploadURL: 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. -->
|
||||
<!--
|
||||
<key>allowRemoteJobs</key>
|
||||
<false/>
|
||||
|
||||
<key>debugBundleUploadURL</key>
|
||||
<string>https://uploads.example.com</string>
|
||||
-->
|
||||
|
||||
<!-- ===== Local Prometheus metrics endpoint ===== -->
|
||||
<!--
|
||||
<key>enableLocalMetrics</key>
|
||||
<true/>
|
||||
|
||||
<key>localMetricsAddress</key>
|
||||
<string>127.0.0.1:9191</string>
|
||||
-->
|
||||
|
||||
<!-- ===== UI / lockdown kill switches =====
|
||||
disableUpdateSettings : block every config change from UI and CLI
|
||||
on this device (Settings view stays
|
||||
@@ -99,7 +135,10 @@
|
||||
disableProfiles : hide the profile menu, reject profile CRUD.
|
||||
disableNetworks : hide the Networks / Exit Node menus,
|
||||
reject the related RPCs.
|
||||
disableMetricsCollection: opt out of anonymous usage telemetry. -->
|
||||
disableAdvancedView : hide the advanced section of the UI.
|
||||
UI-only: nothing is rejected on its
|
||||
account.
|
||||
disableMetricsCollection: reserved; recognized but no effect yet. -->
|
||||
<!--
|
||||
<key>disableUpdateSettings</key>
|
||||
<true/>
|
||||
@@ -110,6 +149,9 @@
|
||||
<key>disableNetworks</key>
|
||||
<true/>
|
||||
|
||||
<key>disableAdvancedView</key>
|
||||
<true/>
|
||||
|
||||
<key>disableMetricsCollection</key>
|
||||
<false/>
|
||||
-->
|
||||
|
||||
@@ -0,0 +1,133 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<!--
|
||||
NetBird Managed App Configuration (iOS / iPadOS / tvOS).
|
||||
|
||||
Bundle identifier of the managed app:
|
||||
io.netbird.app (iOS, iPadOS)
|
||||
io.netbird.app.tv (tvOS)
|
||||
|
||||
Delivery: your MDM sends this dictionary alongside the managed app
|
||||
(Intune "App configuration policies" → Enter XML data; Jamf Pro
|
||||
"Mobile Device Apps → App Configuration"; the equivalent App
|
||||
Configuration field on Kandji, Mosyle, Workspace ONE, JumpCloud).
|
||||
iOS hands it to the app, which reads it on every policy load.
|
||||
|
||||
The app must be MANAGED by the MDM that sends this configuration.
|
||||
It need not have been installed by it: the MDM can take over a copy
|
||||
the user installed from the App Store (the user must accept on an
|
||||
unsupervised device). Until then the app receives no configuration
|
||||
and NetBird runs with no policy at all.
|
||||
|
||||
Editing this file:
|
||||
- Delete or comment out every key you do NOT want to enforce. An
|
||||
absent key means "no enforcement" for that field.
|
||||
- Some MDM consoles want only the inner <dict>; paste from
|
||||
<dict> to </dict> and drop the plist envelope in that case.
|
||||
- Validate locally with:
|
||||
plutil -lint netbird-ios-appconfig.plist
|
||||
|
||||
When a change takes effect: iOS hands this configuration to the
|
||||
NetBird app, and the app passes it to the network extension that
|
||||
runs the tunnel whenever the app is running. With the app in the
|
||||
foreground a change reaches the tunnel within about 30 seconds;
|
||||
while the app is closed or backgrounded iOS suspends it, so a
|
||||
policy pushed (or withdrawn) in that window applies the next time
|
||||
the app is opened. A tunnel brought up by VPN On Demand or the
|
||||
widget runs on the last policy the app saw.
|
||||
|
||||
tvOS: only the interface is enforced. The hand-off needs a shared
|
||||
app group, which does not work between the tvOS app and its
|
||||
extension, so the tvOS engine runs without the policy.
|
||||
|
||||
Keys that do not apply to the platform are parsed and ignored here,
|
||||
so one payload can be shared with desktop devices: allowServerSSH,
|
||||
disableServerRoutes, disableAutostart, disableMetricsCollection,
|
||||
enableLocalMetrics, localMetricsAddress, splitTunnelMode,
|
||||
splitTunnelApps.
|
||||
|
||||
See the iOS section of docs/src/pages/client/mdm-integration.mdx.
|
||||
-->
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
|
||||
<!-- ===== Identity / auth ===== -->
|
||||
<key>managementURL</key>
|
||||
<string>https://api.netbird.io:443</string>
|
||||
|
||||
<!--
|
||||
Pre-shared key: secret. Remove the entry entirely when not
|
||||
used; do NOT leave an empty <string></string>, which the
|
||||
client treats as a deliberate empty-PSK enforcement.
|
||||
-->
|
||||
<!--
|
||||
<key>preSharedKey</key>
|
||||
<string>REPLACE_ME</string>
|
||||
-->
|
||||
|
||||
<!-- ===== Interface lockdown =====
|
||||
disableUpdateSettings : read-only mode — nothing is hidden,
|
||||
every configuration control is locked.
|
||||
disableProfiles : hide the Profiles section (no create,
|
||||
switch or remove).
|
||||
disableNetworks : remove the Resources tab.
|
||||
disableAdvancedView : hide Advanced (on tvOS, the whole
|
||||
section). -->
|
||||
<!--
|
||||
<key>disableUpdateSettings</key>
|
||||
<true/>
|
||||
|
||||
<key>disableProfiles</key>
|
||||
<true/>
|
||||
|
||||
<key>disableNetworks</key>
|
||||
<true/>
|
||||
|
||||
<key>disableAdvancedView</key>
|
||||
<true/>
|
||||
-->
|
||||
|
||||
<!-- ===== Connection controls =====
|
||||
Each of these locks its own control in the app. -->
|
||||
<!--
|
||||
<key>disableAutoConnect</key>
|
||||
<false/>
|
||||
|
||||
<key>disableClientRoutes</key>
|
||||
<false/>
|
||||
|
||||
<key>rosenpassEnabled</key>
|
||||
<true/>
|
||||
|
||||
<key>rosenpassPermissive</key>
|
||||
<false/>
|
||||
-->
|
||||
|
||||
<!-- ===== Remote jobs =====
|
||||
allowRemoteJobs present at any value locks the client toggle,
|
||||
so pushing false pins remote jobs off. debugBundleUploadURL
|
||||
overrides where a bundle produced by a remote job is sent. -->
|
||||
<!--
|
||||
<key>allowRemoteJobs</key>
|
||||
<false/>
|
||||
|
||||
<key>debugBundleUploadURL</key>
|
||||
<string>https://uploads.example.com</string>
|
||||
-->
|
||||
|
||||
<!-- ===== Applied by the tunnel engine =====
|
||||
No control to lock in the app - the engine applies these to
|
||||
the connection itself. -->
|
||||
<!--
|
||||
<key>blockInbound</key>
|
||||
<false/>
|
||||
|
||||
<key>wireguardPort</key>
|
||||
<integer>51820</integer>
|
||||
|
||||
<key>lazyConnection</key>
|
||||
<true/>
|
||||
-->
|
||||
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -16,11 +16,22 @@
|
||||
(confirm against the signed pkg before fleet roll-out)
|
||||
|
||||
Distribution:
|
||||
- sign with `productsign --sign "Developer ID Installer: ..." ...`
|
||||
before fleet roll-out (Apple-Configurator-2 won't install an
|
||||
unsigned profile on Sonoma+ without user override).
|
||||
- For local dev install: `sudo profiles install -path netbird-macos.mobileconfig`.
|
||||
- For MDM (Jamf/Kandji/Mosyle/Intune): upload as a Custom Profile.
|
||||
- delivered through an MDM, the profile is signed by the MDM
|
||||
channel itself; nothing to sign by hand,
|
||||
- handed out any other way (Apple Configurator, double-click), it
|
||||
installs unsigned and asks the user to confirm on recent macOS.
|
||||
To avoid that, sign it as a CMS message with an identity the
|
||||
target Macs trust:
|
||||
security cms -S -N "Your Signing Identity" \
|
||||
-i netbird-macos.mobileconfig -o signed.mobileconfig
|
||||
Configuration profiles are not signed with productsign, which
|
||||
handles installer packages.
|
||||
- For a local test: double-click the file, then install it from
|
||||
System Settings > General > Device Management. macOS 11 and later
|
||||
cannot install configuration profiles with the `profiles` command.
|
||||
- For MDM (Kandji/Mosyle/Intune/Workspace ONE/JumpCloud): upload as
|
||||
a custom profile. Jamf Pro: prefer io.netbird.client.plist in
|
||||
Application & Custom Settings, or sign this profile before upload.
|
||||
|
||||
Editing:
|
||||
- Replace UUID placeholders below with fresh UUIDs (`uuidgen` on
|
||||
@@ -121,6 +132,15 @@
|
||||
<false/>
|
||||
-->
|
||||
|
||||
<!-- ===== Lazy connections (bool) =====
|
||||
true forces them on, false forces them off, an
|
||||
absent key defers to the Management setting.
|
||||
NB_LAZY_CONN wins over both. -->
|
||||
<!--
|
||||
<key>lazyConnection</key>
|
||||
<true/>
|
||||
-->
|
||||
|
||||
<!-- ===== WireGuard UDP port (int) =====
|
||||
Range 1-65535. Omit to keep the default. -->
|
||||
<!--
|
||||
@@ -128,6 +148,27 @@
|
||||
<integer>51820</integer>
|
||||
-->
|
||||
|
||||
<!-- ===== Remote jobs =====
|
||||
allowRemoteJobs is off by default; present at any
|
||||
value it locks the client toggle, so false pins
|
||||
remote jobs off. debugBundleUploadURL overrides the
|
||||
upload service for bundles produced by remote jobs
|
||||
and must be an https URL with a host. -->
|
||||
<!--
|
||||
<key>allowRemoteJobs</key>
|
||||
<false/>
|
||||
<key>debugBundleUploadURL</key>
|
||||
<string>https://uploads.example.com</string>
|
||||
-->
|
||||
|
||||
<!-- ===== Local Prometheus metrics endpoint ===== -->
|
||||
<!--
|
||||
<key>enableLocalMetrics</key>
|
||||
<true/>
|
||||
<key>localMetricsAddress</key>
|
||||
<string>127.0.0.1:9191</string>
|
||||
-->
|
||||
|
||||
<!-- ===== Split tunnel (Android-only at the daemon level)
|
||||
Pushed harmlessly on macOS for fleets with mixed
|
||||
desktop+mobile devices; the macOS daemon ignores it. -->
|
||||
@@ -138,7 +179,9 @@
|
||||
<string>com.acme.app1,com.acme.app2</string>
|
||||
-->
|
||||
|
||||
<!-- ===== UI / kill switches (bool) ===== -->
|
||||
<!-- ===== UI / kill switches (bool) =====
|
||||
disableAdvancedView is UI-only: it hides the
|
||||
advanced section and rejects nothing. -->
|
||||
<!--
|
||||
<key>disableUpdateSettings</key>
|
||||
<true/>
|
||||
@@ -146,6 +189,8 @@
|
||||
<true/>
|
||||
<key>disableNetworks</key>
|
||||
<true/>
|
||||
<key>disableAdvancedView</key>
|
||||
<true/>
|
||||
<key>disableMetricsCollection</key>
|
||||
<false/>
|
||||
-->
|
||||
|
||||
@@ -53,9 +53,9 @@ set -euo pipefail
|
||||
# docs/netbird.admx + .adml (Windows ADMX schema)
|
||||
#
|
||||
NULL='__UNSET__'
|
||||
managementURL='https://api.netbird.io:443'
|
||||
managementURL="$NULL"
|
||||
preSharedKey="$NULL" # secret; redacted in log
|
||||
allowServerSSH='true'
|
||||
allowServerSSH="$NULL"
|
||||
blockInbound="$NULL"
|
||||
disableAutoConnect="$NULL"
|
||||
disableAutostart="$NULL"
|
||||
@@ -65,9 +65,15 @@ disableMetricsCollection="$NULL"
|
||||
disableUpdateSettings="$NULL"
|
||||
disableProfiles="$NULL"
|
||||
disableNetworks="$NULL"
|
||||
disableAdvancedView="$NULL" # UI-only: hides the advanced section, rejects nothing
|
||||
rosenpassEnabled="$NULL"
|
||||
rosenpassPermissive="$NULL"
|
||||
wireguardPort='51820'
|
||||
lazyConnection="$NULL" # "true"/"false"; absent defers to the Management setting
|
||||
wireguardPort="$NULL"
|
||||
allowRemoteJobs="$NULL" # present at any value locks the client toggle
|
||||
debugBundleUploadURL="$NULL" # https URL with a host
|
||||
enableLocalMetrics="$NULL" # local Prometheus endpoint; unrelated to disableMetricsCollection
|
||||
localMetricsAddress="$NULL" # default 127.0.0.1:9191
|
||||
splitTunnelMode="$NULL" # "allow" or "disallow", Android-only at the daemon level
|
||||
splitTunnelApps="$NULL" # comma-separated app IDs, Android-only
|
||||
##############################################################################
|
||||
@@ -175,9 +181,15 @@ main() {
|
||||
is_set "$disableUpdateSettings" && emit_bool disableUpdateSettings "$disableUpdateSettings"
|
||||
is_set "$disableProfiles" && emit_bool disableProfiles "$disableProfiles"
|
||||
is_set "$disableNetworks" && emit_bool disableNetworks "$disableNetworks"
|
||||
is_set "$disableAdvancedView" && emit_bool disableAdvancedView "$disableAdvancedView"
|
||||
is_set "$rosenpassEnabled" && emit_bool rosenpassEnabled "$rosenpassEnabled"
|
||||
is_set "$rosenpassPermissive" && emit_bool rosenpassPermissive "$rosenpassPermissive"
|
||||
is_set "$lazyConnection" && emit_bool lazyConnection "$lazyConnection"
|
||||
is_set "$wireguardPort" && emit_int wireguardPort "$wireguardPort"
|
||||
is_set "$allowRemoteJobs" && emit_bool allowRemoteJobs "$allowRemoteJobs"
|
||||
is_set "$debugBundleUploadURL" && emit_string debugBundleUploadURL "$debugBundleUploadURL"
|
||||
is_set "$enableLocalMetrics" && emit_bool enableLocalMetrics "$enableLocalMetrics"
|
||||
is_set "$localMetricsAddress" && emit_string localMetricsAddress "$localMetricsAddress"
|
||||
is_set "$splitTunnelMode" && emit_split_tunnel_mode "$splitTunnelMode"
|
||||
is_set "$splitTunnelApps" && emit_string splitTunnelApps "$splitTunnelApps"
|
||||
|
||||
|
||||
Binary file not shown.
@@ -64,7 +64,25 @@
|
||||
<string id="DisableNetworks_Help">When enabled, the client UI/CLI cannot list, select or deselect NetBird networks (the corresponding daemon RPCs return Unavailable). Equivalent to --disable-networks.</string>
|
||||
|
||||
<string id="DisableMetricsCollection_Name">Disable metrics collection</string>
|
||||
<string id="DisableMetricsCollection_Help">When enabled, the client does not collect or report local usage metrics.</string>
|
||||
<string id="DisableMetricsCollection_Help">Reserved for a future client telemetry feature. The client recognizes this setting but it has no effect in current releases.</string>
|
||||
|
||||
<string id="DisableAdvancedView_Name">Disable advanced view</string>
|
||||
<string id="DisableAdvancedView_Help">When enabled, the client hides the advanced section of its interface. This policy only changes what the interface offers: it is not part of the daemon configuration and never causes a configuration change to be rejected. Setting it to Disabled explicitly re-enables the section.</string>
|
||||
|
||||
<string id="LazyConnection_Name">Lazy connections</string>
|
||||
<string id="LazyConnection_Help">Local override for lazy connections. Enabled forces lazy connections on, Disabled forces them off, and leaving the policy Not Configured defers to the Management setting. The NB_LAZY_CONN environment variable takes precedence over this policy.</string>
|
||||
|
||||
<string id="AllowRemoteJobs_Name">Allow remote jobs</string>
|
||||
<string id="AllowRemoteJobs_Help">Allows management-requested remote jobs, such as debug bundle requests, to run on this peer. Off by default; equivalent to --allow-remote-jobs. Configuring this policy at either value locks the corresponding client toggle, so Disabled pins remote jobs off.</string>
|
||||
|
||||
<string id="DebugBundleUploadURL_Name">Debug bundle upload URL</string>
|
||||
<string id="DebugBundleUploadURL_Help">Overrides the upload service used for debug bundles produced by remote jobs, taking precedence over the value requested by Management. Must be an https URL including a host.</string>
|
||||
|
||||
<string id="EnableLocalMetrics_Name">Enable local metrics endpoint</string>
|
||||
<string id="EnableLocalMetrics_Help">Exposes the client's local Prometheus /metrics endpoint. Unrelated to "Disable metrics collection".</string>
|
||||
|
||||
<string id="LocalMetricsAddress_Name">Local metrics listen address</string>
|
||||
<string id="LocalMetricsAddress_Help">Listen address of the local Prometheus /metrics endpoint. Defaults to 127.0.0.1:9191 when the endpoint is enabled and this policy is Not Configured.</string>
|
||||
|
||||
</stringTable>
|
||||
<presentationTable>
|
||||
@@ -93,6 +111,19 @@
|
||||
</textBox>
|
||||
</presentation>
|
||||
|
||||
<presentation id="DebugBundleUploadURL_Pres">
|
||||
<textBox refId="DebugBundleUploadURL_Text">
|
||||
<label>Debug bundle upload URL:</label>
|
||||
</textBox>
|
||||
</presentation>
|
||||
|
||||
<presentation id="LocalMetricsAddress_Pres">
|
||||
<textBox refId="LocalMetricsAddress_Text">
|
||||
<label>Listen address:</label>
|
||||
<defaultValue>127.0.0.1:9191</defaultValue>
|
||||
</textBox>
|
||||
</presentation>
|
||||
|
||||
</presentationTable>
|
||||
</resources>
|
||||
</policyDefinitionResources>
|
||||
|
||||
@@ -231,5 +231,79 @@
|
||||
<disabledValue><decimal value="0" /></disabledValue>
|
||||
</policy>
|
||||
|
||||
<policy name="DisableAdvancedView"
|
||||
class="Machine"
|
||||
displayName="$(string.DisableAdvancedView_Name)"
|
||||
explainText="$(string.DisableAdvancedView_Help)"
|
||||
key="Software\Policies\NetBird"
|
||||
valueName="DisableAdvancedView">
|
||||
<parentCategory ref="NetBird" />
|
||||
<supportedOn ref="SUPPORTED_NetBird_All" />
|
||||
<enabledValue><decimal value="1" /></enabledValue>
|
||||
<disabledValue><decimal value="0" /></disabledValue>
|
||||
</policy>
|
||||
|
||||
<policy name="LazyConnection"
|
||||
class="Machine"
|
||||
displayName="$(string.LazyConnection_Name)"
|
||||
explainText="$(string.LazyConnection_Help)"
|
||||
key="Software\Policies\NetBird"
|
||||
valueName="LazyConnection">
|
||||
<parentCategory ref="NetBird" />
|
||||
<supportedOn ref="SUPPORTED_NetBird_All" />
|
||||
<enabledValue><decimal value="1" /></enabledValue>
|
||||
<disabledValue><decimal value="0" /></disabledValue>
|
||||
</policy>
|
||||
|
||||
<policy name="AllowRemoteJobs"
|
||||
class="Machine"
|
||||
displayName="$(string.AllowRemoteJobs_Name)"
|
||||
explainText="$(string.AllowRemoteJobs_Help)"
|
||||
key="Software\Policies\NetBird"
|
||||
valueName="AllowRemoteJobs">
|
||||
<parentCategory ref="NetBird" />
|
||||
<supportedOn ref="SUPPORTED_NetBird_All" />
|
||||
<enabledValue><decimal value="1" /></enabledValue>
|
||||
<disabledValue><decimal value="0" /></disabledValue>
|
||||
</policy>
|
||||
|
||||
<policy name="DebugBundleUploadURL"
|
||||
class="Machine"
|
||||
displayName="$(string.DebugBundleUploadURL_Name)"
|
||||
explainText="$(string.DebugBundleUploadURL_Help)"
|
||||
key="Software\Policies\NetBird"
|
||||
presentation="$(presentation.DebugBundleUploadURL_Pres)">
|
||||
<parentCategory ref="NetBird" />
|
||||
<supportedOn ref="SUPPORTED_NetBird_All" />
|
||||
<elements>
|
||||
<text id="DebugBundleUploadURL_Text" valueName="DebugBundleUploadURL" required="true" />
|
||||
</elements>
|
||||
</policy>
|
||||
|
||||
<policy name="EnableLocalMetrics"
|
||||
class="Machine"
|
||||
displayName="$(string.EnableLocalMetrics_Name)"
|
||||
explainText="$(string.EnableLocalMetrics_Help)"
|
||||
key="Software\Policies\NetBird"
|
||||
valueName="EnableLocalMetrics">
|
||||
<parentCategory ref="NetBird" />
|
||||
<supportedOn ref="SUPPORTED_NetBird_All" />
|
||||
<enabledValue><decimal value="1" /></enabledValue>
|
||||
<disabledValue><decimal value="0" /></disabledValue>
|
||||
</policy>
|
||||
|
||||
<policy name="LocalMetricsAddress"
|
||||
class="Machine"
|
||||
displayName="$(string.LocalMetricsAddress_Name)"
|
||||
explainText="$(string.LocalMetricsAddress_Help)"
|
||||
key="Software\Policies\NetBird"
|
||||
presentation="$(presentation.LocalMetricsAddress_Pres)">
|
||||
<parentCategory ref="NetBird" />
|
||||
<supportedOn ref="SUPPORTED_NetBird_All" />
|
||||
<elements>
|
||||
<text id="LocalMetricsAddress_Text" valueName="LocalMetricsAddress" required="true" />
|
||||
</elements>
|
||||
</policy>
|
||||
|
||||
</policies>
|
||||
</policyDefinitions>
|
||||
|
||||
Reference in New Issue
Block a user