Skip to content

Commit 57ef092

Browse files
committed
Merge remote-tracking branch 'origin/release/v11.2.0' into release/v11.2.0
2 parents 8bfedba + fed0e4b commit 57ef092

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

plugins/crowdStrike/config/config.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package config
33
import (
44
"context"
55
"fmt"
6-
"log"
76
"strings"
87
sync "sync"
98
"time"
@@ -133,7 +132,7 @@ func StartConfigurationSystem() {
133132

134133
switch message := in.Payload.(type) {
135134
case *BiDirectionalMessage_Config:
136-
log.Printf("Received configuration update: %v", message.Config)
135+
catcher.Info("Received configuration update", map[string]any{"config": message.Config})
137136
cnf = message.Config
138137
}
139138
}

plugins/crowdStrike/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,13 @@ func getCrowdStrikeProcessor(group *config.ModuleGroup) CrowdStrikeProcessor {
109109

110110
for _, cnf := range group.ModuleGroupConfigurations {
111111
switch cnf.ConfKey {
112-
case "client_id":
112+
case "crowdstrike_client_id":
113113
processor.ClientID = cnf.ConfValue
114-
case "client_secret":
114+
case "crowdstrike_client_secret":
115115
processor.ClientSecret = cnf.ConfValue
116-
case "cloud":
116+
case "crowdstrike_cloud_region_url":
117117
processor.Cloud = cnf.ConfValue
118-
case "app_name":
118+
case "crowdstrike_app_name":
119119
processor.AppName = cnf.ConfValue
120120
}
121121
}

plugins/modules-config/validations/crowdstrike.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ func ValidateCrowdstrikeConfig(config *config.ModuleGroup) error {
1919

2020
for _, cnf := range config.ModuleGroupConfigurations {
2121
switch cnf.ConfKey {
22-
case "client_id":
22+
case "crowdstrike_client_id":
2323
clientID = cnf.ConfValue
24-
case "client_secret":
24+
case "crowdstrike_client_secret":
2525
clientSecret = cnf.ConfValue
26-
case "cloud":
26+
case "crowdstrike_cloud_region_url":
2727
cloud = cnf.ConfValue
28-
case "app_name":
28+
case "crowdstrike_app_name":
2929
appName = cnf.ConfValue
3030
}
3131
}

0 commit comments

Comments
 (0)