Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package kubearmor-client for openSUSE:Factory checked in at 2025-06-06 22:43:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kubearmor-client (Old) and /work/SRC/openSUSE:Factory/.kubearmor-client.new.19631 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kubearmor-client" Fri Jun 6 22:43:23 2025 rev:17 rq:1283516 version:1.4.2 Changes: -------- --- /work/SRC/openSUSE:Factory/kubearmor-client/kubearmor-client.changes 2025-05-22 16:56:30.308989754 +0200 +++ /work/SRC/openSUSE:Factory/.kubearmor-client.new.19631/kubearmor-client.changes 2025-06-06 22:44:05.259367051 +0200 @@ -1,0 +2,6 @@ +Fri Jun 06 05:49:25 UTC 2025 - Johannes Kastl <opensuse_buildserv...@ojkastl.de> + +- Update to version 1.4.2: + * fix: karmor profile filtering logic + +------------------------------------------------------------------- Old: ---- kubearmor-client-1.4.1.obscpio New: ---- kubearmor-client-1.4.2.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kubearmor-client.spec ++++++ --- /var/tmp/diff_new_pack.TEZfK4/_old 2025-06-06 22:44:08.503501496 +0200 +++ /var/tmp/diff_new_pack.TEZfK4/_new 2025-06-06 22:44:08.503501496 +0200 @@ -17,7 +17,7 @@ Name: kubearmor-client -Version: 1.4.1 +Version: 1.4.2 Release: 0 Summary: KubeArmor cli tool aka kArmor License: Apache-2.0 ++++++ _service ++++++ --- /var/tmp/diff_new_pack.TEZfK4/_old 2025-06-06 22:44:08.535502822 +0200 +++ /var/tmp/diff_new_pack.TEZfK4/_new 2025-06-06 22:44:08.543503153 +0200 @@ -3,7 +3,7 @@ <param name="url">https://github.com/kubearmor/kubearmor-client</param> <param name="scm">git</param> <param name="exclude">.git</param> - <param name="revision">v1.4.1</param> + <param name="revision">v1.4.2</param> <param name="versionformat">@PARENT_TAG@</param> <param name="versionrewrite-pattern">v(.*)</param> <param name="changesgenerate">enable</param> ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.TEZfK4/_old 2025-06-06 22:44:08.567504149 +0200 +++ /var/tmp/diff_new_pack.TEZfK4/_new 2025-06-06 22:44:08.567504149 +0200 @@ -1,6 +1,6 @@ <servicedata> <service name="tar_scm"> <param name="url">https://github.com/kubearmor/kubearmor-client</param> - <param name="changesrevision">e20ce4f31bc70beadf0dc7d3b7f6963343b299fe</param></service></servicedata> + <param name="changesrevision">829e9c0601ff20d38471b165604150395efcd831</param></service></servicedata> (No newline at EOF) ++++++ kubearmor-client-1.4.1.obscpio -> kubearmor-client-1.4.2.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubearmor-client-1.4.1/profile/Client/profileClient.go new/kubearmor-client-1.4.2/profile/Client/profileClient.go --- old/kubearmor-client-1.4.1/profile/Client/profileClient.go 2025-05-21 15:18:50.000000000 +0200 +++ new/kubearmor-client-1.4.2/profile/Client/profileClient.go 2025-06-04 13:24:28.000000000 +0200 @@ -403,60 +403,67 @@ return json.Marshal(x(p)) } -func generateRowsFromData(data []pb.Log, Operation string) []table.Row { +func generateRowsFromData(data []pb.Log, operation string) []table.Row { var s SomeData var jsondata []Profile m := make(map[Profile]int) w := make(map[Profile]*Frequency) for _, entry := range data { - if entry.Operation == Operation { - if (entry.NamespaceName == o1.Namespace) || - (entry.PodName == o1.Pod) || - (entry.ContainerName == o1.Container) || - (len(o1.Namespace) == 0 && len(o1.Pod) == 0 && len(o1.Container) == 0) { - var p Profile - var logType string - if entry.Type == "HostLog" { - logType = "Host" - entry.NamespaceName = "--" - entry.ContainerName = "--" - } else { - logType = "Container" - } - - if entry.Operation == "Syscall" { - p = Profile{ - LogSource: logType, - Namespace: entry.NamespaceName, - ContainerName: entry.ContainerName, - Process: entry.ProcessName, - Resource: entry.Data, - Result: entry.Result, - } - } else { - p = Profile{ - LogSource: logType, - Namespace: entry.NamespaceName, - ContainerName: entry.ContainerName, - Process: entry.ProcessName, - Resource: entry.Resource, - Result: entry.Result, - } - } - - f := &Frequency{ - time: entry.UpdatedTime, - } - w[p] = f - m[p]++ - w[p].freq = m[p] + if entry.Operation != operation { + continue + } + + if (o1.Namespace != "") && (entry.NamespaceName != o1.Namespace) { + continue + } + if (o1.Pod != "") && (entry.PodName != o1.Pod) { + continue + } + if (o1.Container != "") && (entry.ContainerName != o1.Container) { + continue + } + var p Profile + var logType string + if entry.Type == "HostLog" { + logType = "Host" + entry.NamespaceName = "--" + entry.ContainerName = "--" + } else { + logType = "Container" + } + + if entry.Operation == "Syscall" { + p = Profile{ + LogSource: logType, + Namespace: entry.NamespaceName, + ContainerName: entry.ContainerName, + Process: entry.ProcessName, + Resource: entry.Data, + Result: entry.Result, + } + } else { + p = Profile{ + LogSource: logType, + Namespace: entry.NamespaceName, + ContainerName: entry.ContainerName, + Process: entry.ProcessName, + Resource: entry.Resource, + Result: entry.Result, } } + + f := &Frequency{ + time: entry.UpdatedTime, + } + w[p] = f + m[p]++ + w[p].freq = m[p] + } - finalmap := AggregateSummary(w, Operation) + finalmap := AggregateSummary(w, operation) for r, frequency := range finalmap { row := table.NewRow(table.RowData{ ColumnLogSource: r.LogSource, @@ -482,13 +489,13 @@ } if o1.Save { - if Operation == "File" { + if operation == "File" { convertToJSON("File", jsondata) - } else if Operation == "Process" { + } else if operation == "Process" { convertToJSON("Process", jsondata) - } else if Operation == "Network" { + } else if operation == "Network" { convertToJSON("Network", jsondata) - } else if Operation == "Syscall" { + } else if operation == "Syscall" { convertToJSON("Syscall", jsondata) } } ++++++ kubearmor-client.obsinfo ++++++ --- /var/tmp/diff_new_pack.TEZfK4/_old 2025-06-06 22:44:08.735511111 +0200 +++ /var/tmp/diff_new_pack.TEZfK4/_new 2025-06-06 22:44:08.739511276 +0200 @@ -1,5 +1,5 @@ name: kubearmor-client -version: 1.4.1 -mtime: 1747833530 -commit: e20ce4f31bc70beadf0dc7d3b7f6963343b299fe +version: 1.4.2 +mtime: 1749036268 +commit: 829e9c0601ff20d38471b165604150395efcd831 ++++++ vendor.tar.gz ++++++ /work/SRC/openSUSE:Factory/kubearmor-client/vendor.tar.gz /work/SRC/openSUSE:Factory/.kubearmor-client.new.19631/vendor.tar.gz differ: char 149, line 1