-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[management,client] Gate remote jobs behind an admin opt-in with MDM support #7153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
7da4127
[client] Gate remote jobs behind an admin opt-in with MDM support
mlsmaycon 1d93c5e
[management,client] Report the remote-jobs opt-in to management
mlsmaycon 2530b1f
[client] Document the remote-jobs MDM keys in the policy schemas
mlsmaycon a7f7e90
[client] Test remote-jobs config default and MDM application
mlsmaycon 90db57e
[client] Render remote-jobs config in the debug bundle
mlsmaycon c9568ba
[client] Address review: redact and clear the MDM upload URL
mlsmaycon 1bbb3bf
[client] Clear MDM upload URL when the policy empties; cut complexity
mlsmaycon b08120b
[management,client] Plumb anonymize level and upload URL through remo…
mlsmaycon 5c40362
[client] Assert the MDM upload URL never leaks into the debug bundle
mlsmaycon d0bcf82
[management] Validate anonymize_level on the debug bundle job API
mlsmaycon b766a9d
[management] Bump peer-metadata field-count guard for RemoteJobsAllowed
mlsmaycon d325730
[management,client] Normalize anonymize_level and sanity-check the bu…
mlsmaycon 00ee386
[test] Add e2e coverage for remote-jobs opt-in and bundle params
mlsmaycon 72a23bc
[test] Stop leaking management servers in the integration harness
mlsmaycon 3e10f2c
[client] Cut cognitive complexity of the up request builders
mlsmaycon a171aa9
Merge origin/main into debug-bundle-anonymize-level-upload-url
mlsmaycon 3145ad5
Merge debug-bundle-anonymize-level-upload-url into feat/remote-jobs-o…
mlsmaycon b7c2a16
Match main's protoc version header in generated management.pb.go
mlsmaycon 567cd28
Match base's protoc version header in generated management.pb.go
mlsmaycon 16cdd35
Address review feedback on remote-jobs opt-in + MDM
mlsmaycon b074013
Merge branch 'main' into debug-bundle-anonymize-level-upload-url
mlsmaycon 0bb270c
sync pb file
mlsmaycon 680d87d
Merge branch 'debug-bundle-anonymize-level-upload-url' into feat/remo…
mlsmaycon 32d1546
sync pb file
mlsmaycon e52a076
Fix SonarCloud code smells in netbird-macos.sh
mlsmaycon a3176c9
Merge remote-tracking branch 'origin/main' into debug-bundle-anonymiz…
mlsmaycon 6230a95
Merge branch 'debug-bundle-anonymize-level-upload-url' into feat/remo…
mlsmaycon dbeda09
Merge branch 'main' into feat/remote-jobs-optin-mdm
mlsmaycon 40adafb
Address cubic review: revert Flags in isEmpty, reject host-less uploa…
mlsmaycon 4a61019
Install the macOS MDM plist 0600 instead of world-readable
mlsmaycon 2955fd6
Remove stale temp plist before writing it (macOS MDM script)
mlsmaycon 58bb700
Chmod the temp plist to 0600 instead of deleting it
mlsmaycon f778409
Extract the e2e upload URL into a const to clear the SonarCloud smell
mlsmaycon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| package cmd | ||
|
|
||
| // remoteJobsAllowedFlag opts this peer into running remote jobs (e.g. debug | ||
| // bundles) requested by the management server. It defaults to false: remote | ||
| // jobs are an explicit opt-in, and enabling it is a privileged change (see the | ||
| // daemon gate in client/server), mirroring the SSH server opt-in. | ||
| const remoteJobsAllowedFlag = "allow-remote-jobs" | ||
|
|
||
| var remoteJobsAllowed bool | ||
|
|
||
| func init() { | ||
| upCmd.PersistentFlags().BoolVar(&remoteJobsAllowed, remoteJobsAllowedFlag, false, "Allow the management server to run remote jobs (e.g. debug bundles) on this peer") | ||
| } |
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.