Skip to content

Commit 00d78d9

Browse files
KbayeroJocLRojas
andauthored
Release/v10.8.3 (#1247)
* update golang dependencies to latest version * update threatwinds dependencies * refactor(aws): Replace manual sleep with ticker for consistent polling * refactor(office365): Replace manual sleep with ticker for consistent polling * refactor(sophos): Implement consistent time-based polling with ticker * improve o365, aws and sophos integrations --------- Co-authored-by: JocLRojas <[email protected]>
1 parent 6bf64fe commit 00d78d9

File tree

34 files changed

+885
-950
lines changed

34 files changed

+885
-950
lines changed

agent-manager/go.mod

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
11
module github.com/utmstack/UTMStack/agent-manager
22

3-
go 1.22.4
3+
go 1.23.0
44

5-
toolchain go1.23.4
5+
toolchain go1.24.2
66

77
require (
88
github.com/AtlasInsideCorp/AtlasInsideAES v1.0.0
9-
github.com/gin-contrib/gzip v1.2.2
10-
github.com/gin-gonic/gin v1.10.0
9+
github.com/gin-contrib/gzip v1.2.3
10+
github.com/gin-gonic/gin v1.10.1
1111
github.com/google/uuid v1.6.0
12-
github.com/threatwinds/logger v1.2.1
13-
google.golang.org/grpc v1.71.0
14-
google.golang.org/protobuf v1.36.5
15-
gorm.io/driver/postgres v1.5.11
16-
gorm.io/gorm v1.25.12
12+
github.com/threatwinds/logger v1.2.2
13+
google.golang.org/grpc v1.73.0
14+
google.golang.org/protobuf v1.36.6
15+
gorm.io/driver/postgres v1.6.0
16+
gorm.io/gorm v1.30.0
1717
)
1818

1919
require (
20-
github.com/bytedance/sonic v1.12.7 // indirect
21-
github.com/bytedance/sonic/loader v0.2.2 // indirect
22-
github.com/cloudwego/base64x v0.1.4 // indirect
23-
github.com/gabriel-vasile/mimetype v1.4.8 // indirect
24-
github.com/gin-contrib/sse v1.0.0 // indirect
20+
github.com/bytedance/sonic v1.13.3 // indirect
21+
github.com/bytedance/sonic/loader v0.2.4 // indirect
22+
github.com/cloudwego/base64x v0.1.5 // indirect
23+
github.com/gabriel-vasile/mimetype v1.4.9 // indirect
24+
github.com/gin-contrib/sse v1.1.0 // indirect
2525
github.com/go-playground/locales v0.14.1 // indirect
2626
github.com/go-playground/universal-translator v0.18.1 // indirect
27-
github.com/go-playground/validator/v10 v10.24.0 // indirect
28-
github.com/goccy/go-json v0.10.4 // indirect
27+
github.com/go-playground/validator/v10 v10.26.0 // indirect
28+
github.com/goccy/go-json v0.10.5 // indirect
2929
github.com/jackc/pgpassfile v1.0.0 // indirect
30-
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
31-
github.com/jackc/pgx/v5 v5.5.5 // indirect
32-
github.com/jackc/puddle/v2 v2.2.1 // indirect
30+
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
31+
github.com/jackc/pgx/v5 v5.7.5 // indirect
32+
github.com/jackc/puddle/v2 v2.2.2 // indirect
3333
github.com/jinzhu/inflection v1.0.0 // indirect
3434
github.com/jinzhu/now v1.1.5 // indirect
3535
github.com/json-iterator/go v1.1.12 // indirect
36-
github.com/klauspost/cpuid/v2 v2.2.9 // indirect
36+
github.com/klauspost/cpuid/v2 v2.2.10 // indirect
3737
github.com/kr/text v0.2.0 // indirect
3838
github.com/leodido/go-urn v1.4.0 // indirect
3939
github.com/mattn/go-isatty v0.0.20 // indirect
4040
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
4141
github.com/modern-go/reflect2 v1.0.2 // indirect
42-
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
43-
github.com/rogpeppe/go-internal v1.12.0 // indirect
42+
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
43+
github.com/rogpeppe/go-internal v1.14.1 // indirect
4444
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
45-
github.com/ugorji/go/codec v1.2.12 // indirect
46-
golang.org/x/arch v0.13.0 // indirect
47-
golang.org/x/crypto v0.32.0 // indirect
48-
golang.org/x/net v0.34.0 // indirect
49-
golang.org/x/sync v0.10.0 // indirect
50-
golang.org/x/sys v0.29.0 // indirect
51-
golang.org/x/text v0.21.0 // indirect
52-
google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f // indirect
45+
github.com/ugorji/go/codec v1.2.14 // indirect
46+
golang.org/x/arch v0.18.0 // indirect
47+
golang.org/x/crypto v0.39.0 // indirect
48+
golang.org/x/net v0.41.0 // indirect
49+
golang.org/x/sync v0.15.0 // indirect
50+
golang.org/x/sys v0.33.0 // indirect
51+
golang.org/x/text v0.26.0 // indirect
52+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250528174236-200df99c418a // indirect
5353
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
5454
gopkg.in/yaml.v3 v3.0.1 // indirect
5555
)

agent-manager/go.sum

Lines changed: 68 additions & 70 deletions
Large diffs are not rendered by default.

agent/collectors/macos.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import (
99
"os/exec"
1010
"path/filepath"
1111

12-
"github.com/threatwinds/validations"
12+
twsdk "github.com/threatwinds/go-sdk/entities"
13+
1314
"github.com/utmstack/UTMStack/agent/config"
1415
"github.com/utmstack/UTMStack/agent/logservice"
1516
"github.com/utmstack/UTMStack/agent/utils"
@@ -62,7 +63,7 @@ func (d Darwin) SendLogs() {
6263

6364
utils.Logger.LogF(100, "output: %s", logLine)
6465

65-
validatedLog, _, err := validations.ValidateString(logLine, false)
66+
validatedLog, _, err := twsdk.ValidateString(logLine, false)
6667
if err != nil {
6768
utils.Logger.ErrorF("error validating log: %s: %v", logLine, err)
6869
continue

agent/collectors/windows_amd64.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"fmt"
88
"path/filepath"
99

10-
"github.com/threatwinds/validations"
10+
twsdk "github.com/threatwinds/go-sdk/entities"
1111
"github.com/utmstack/UTMStack/agent/config"
1212
"github.com/utmstack/UTMStack/agent/logservice"
1313
"github.com/utmstack/UTMStack/agent/utils"
@@ -80,7 +80,7 @@ func (w Windows) SendLogs() {
8080
logLine := <-logLinesChan
8181
validatedLogs := []string{}
8282
for _, log := range logLine {
83-
validatedLog, _, err := validations.ValidateString(log, false)
83+
validatedLog, _, err := twsdk.ValidateString(log, false)
8484
if err != nil {
8585
utils.Logger.ErrorF("error validating log: %s: %v", log, err)
8686
continue

agent/collectors/windows_arm64.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"time"
1717
"unsafe"
1818

19-
"github.com/threatwinds/validations"
19+
twsdk "github.com/threatwinds/go-sdk/entities"
2020
"github.com/utmstack/UTMStack/agent/config"
2121
"github.com/utmstack/UTMStack/agent/logservice"
2222
"github.com/utmstack/UTMStack/agent/utils"
@@ -206,7 +206,7 @@ func eventWorker() {
206206
continue
207207
}
208208

209-
validatedLog, _, err := validations.ValidateString(eventJSON, false)
209+
validatedLog, _, err := twsdk.ValidateString(eventJSON, false)
210210
if err != nil {
211211
utils.Logger.LogF(100, "validation error: %s: %v", eventJSON, err)
212212
continue

agent/go.mod

Lines changed: 34 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,57 @@
11
module github.com/utmstack/UTMStack/agent
22

3-
go 1.23.0
4-
5-
toolchain go1.23.4
3+
go 1.24.2
64

75
require (
86
github.com/AtlasInsideCorp/AtlasInsideAES v1.0.0
9-
github.com/elastic/go-sysinfo v1.15.1
7+
github.com/elastic/go-sysinfo v1.15.3
108
github.com/google/uuid v1.6.0
119
github.com/kardianos/service v1.2.2
1210
github.com/tehmaze/netflow v0.0.0-20240303214733-8c13bb004068
13-
github.com/threatwinds/logger v1.2.1
14-
github.com/threatwinds/validations v1.0.9
15-
golang.org/x/sys v0.31.0
16-
google.golang.org/grpc v1.71.0
17-
google.golang.org/protobuf v1.36.5
11+
github.com/threatwinds/go-sdk v1.0.40
12+
github.com/threatwinds/logger v1.2.2
13+
golang.org/x/sys v0.33.0
14+
google.golang.org/grpc v1.73.0
15+
google.golang.org/protobuf v1.36.6
1816
gopkg.in/yaml.v2 v2.4.0
1917
)
2018

2119
require (
22-
github.com/bytedance/sonic v1.12.1 // indirect
23-
github.com/bytedance/sonic/loader v0.2.0 // indirect
24-
github.com/cloudwego/base64x v0.1.4 // indirect
25-
github.com/cloudwego/iasm v0.2.0 // indirect
26-
github.com/elastic/go-windows v1.0.0 // indirect
27-
github.com/gabriel-vasile/mimetype v1.4.5 // indirect
28-
github.com/gin-contrib/sse v0.1.0 // indirect
29-
github.com/gin-gonic/gin v1.10.0 // indirect
20+
github.com/bytedance/sonic v1.13.3 // indirect
21+
github.com/bytedance/sonic/loader v0.2.4 // indirect
22+
github.com/cloudwego/base64x v0.1.5 // indirect
23+
github.com/elastic/go-windows v1.0.2 // indirect
24+
github.com/gabriel-vasile/mimetype v1.4.9 // indirect
25+
github.com/gin-contrib/sse v1.1.0 // indirect
26+
github.com/gin-gonic/gin v1.10.1 // indirect
3027
github.com/go-playground/locales v0.14.1 // indirect
3128
github.com/go-playground/universal-translator v0.18.1 // indirect
32-
github.com/go-playground/validator/v10 v10.22.0 // indirect
33-
github.com/goccy/go-json v0.10.3 // indirect
29+
github.com/go-playground/validator/v10 v10.26.0 // indirect
30+
github.com/goccy/go-json v0.10.5 // indirect
3431
github.com/json-iterator/go v1.1.12 // indirect
35-
github.com/klauspost/cpuid/v2 v2.2.8 // indirect
32+
github.com/klauspost/cpuid/v2 v2.2.10 // indirect
33+
github.com/kr/text v0.2.0 // indirect
3634
github.com/leodido/go-urn v1.4.0 // indirect
3735
github.com/mattn/go-isatty v0.0.20 // indirect
3836
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
3937
github.com/modern-go/reflect2 v1.0.2 // indirect
40-
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
41-
github.com/pkg/errors v0.9.1 // indirect
42-
github.com/prometheus/procfs v0.15.1 // indirect
38+
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
39+
github.com/prometheus/procfs v0.16.1 // indirect
40+
github.com/tidwall/gjson v1.18.0 // indirect
41+
github.com/tidwall/match v1.1.1 // indirect
42+
github.com/tidwall/pretty v1.2.1 // indirect
4343
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
44-
github.com/ugorji/go/codec v1.2.12 // indirect
45-
golang.org/x/arch v0.9.0 // indirect
46-
golang.org/x/crypto v0.36.0 // indirect
47-
golang.org/x/net v0.37.0 // indirect
48-
golang.org/x/text v0.23.0 // indirect
49-
google.golang.org/genproto/googleapis/rpc v0.0.0-20250115164207-1a7da9e5054f // indirect
44+
github.com/ugorji/go/codec v1.2.14 // indirect
45+
go.opentelemetry.io/otel/metric v1.36.0 // indirect
46+
go.opentelemetry.io/otel/sdk v1.36.0 // indirect
47+
go.opentelemetry.io/otel/trace v1.36.0 // indirect
48+
golang.org/x/arch v0.18.0 // indirect
49+
golang.org/x/crypto v0.39.0 // indirect
50+
golang.org/x/net v0.41.0 // indirect
51+
golang.org/x/text v0.26.0 // indirect
52+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250603155806-513f23925822 // indirect
5053
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
5154
gopkg.in/yaml.v3 v3.0.1 // indirect
52-
howett.net/plist v0.0.0-20181124034731-591f970eefbb // indirect
55+
howett.net/plist v1.0.1 // indirect
56+
sigs.k8s.io/yaml v1.4.0 // indirect
5357
)

0 commit comments

Comments
 (0)