mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-02 13:01:29 +02:00
[client] Render remote-jobs config in the debug bundle
TestAddConfig_AllFieldsCovered fails on any new Config field that is neither rendered nor excluded. Render RemoteJobsAllowed alongside the other collection toggles, and exclude DebugBundleUploadURL with a justification: it is an MDM-provided URL that can carry credentials or query tokens, so it stays out of the shared bundle.
This commit is contained in:
@@ -703,6 +703,9 @@ func (g *BundleGenerator) addCommonConfigFields(configContent *strings.Builder)
|
||||
if g.internalConfig.ServerSSHAllowed != nil {
|
||||
configContent.WriteString(fmt.Sprintf("ServerSSHAllowed: %v\n", *g.internalConfig.ServerSSHAllowed))
|
||||
}
|
||||
if g.internalConfig.RemoteJobsAllowed != nil {
|
||||
configContent.WriteString(fmt.Sprintf("RemoteJobsAllowed: %v\n", *g.internalConfig.RemoteJobsAllowed))
|
||||
}
|
||||
if g.internalConfig.EnableSSHRoot != nil {
|
||||
configContent.WriteString(fmt.Sprintf("EnableSSHRoot: %v\n", *g.internalConfig.EnableSSHRoot))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user