Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
20d5470
feat(migrate): converter + differential oracle for user-defined AP/NN…
Jul 23, 2026
3f9299b
feat(migrate): node-agent reads a user-defined ContainerProfile as th…
Jul 24, 2026
1be5ede
test(migrate): port Test_28 to a single user-defined ContainerProfile
Jul 24, 2026
d9108c1
test(migrate): benchmark user-defined CP projection vs legacy AP+NN o…
Jul 24, 2026
a251069
test(migrate): port Test_27/32/33 to user-defined ContainerProfiles
Jul 24, 2026
903443d
fix(projection): classify '*' path entries as Patterns, not Values
Jul 2, 2026
8c82261
test(migrate): Test_33 must enable R0002 file-access monitoring
Jul 24, 2026
f2f730f
feat(migrate): user-managed ContainerProfiles carry no lifecycle anno…
Jul 24, 2026
d1bab20
test(migrate): clean user-defined CPs + restore an authoring yaml exa…
Jul 24, 2026
856dc36
docs(migrate): ContainerProfile authoring examples for network endpoints
Jul 24, 2026
aacf398
test(migrate): migrate legacy AP/NN CT fixtures to ContainerProfile
Jul 24, 2026
8231702
remove migration tooling
entlein Jul 25, 2026
83bc9fb
remove useless readme
entlein Jul 25, 2026
fd5ed04
couldnt find any active consumers of user-defined AP/NN, so opting to…
entlein Jul 27, 2026
b5bdc01
next step of many, also opened PRs in charts, backend, synchronizer, …
entlein Jul 28, 2026
c1242c4
next step :now removing the previous crds completely, trying out mutl…
entlein Jul 28, 2026
0bf5924
merge main
entlein Jul 28, 2026
f08681a
Apply suggestions from code review
entlein Jul 28, 2026
a5b538e
more decommissioning
entlein Jul 28, 2026
5e1d37d
test: add projection Apply golden-corpus oracle
Jul 29, 2026
06180a6
test: author projection corpus with ContainerProfile-native fields
Jul 29, 2026
976f850
refactor: rename AP/NN CEL libraries to ContainerProfile (cp.* namesp…
Jul 29, 2026
e0922f4
test: consolidate network-wildcard fixtures into network-wildcards
Jul 29, 2026
243bb34
IMPORANT: add Test_08_ApplicationProfilePatching to component-tes…
entlein Jul 29, 2026
be4643b
Update component-tests.yaml
entlein Jul 29, 2026
d907c49
Merge up/main into migrate/sbob
Jul 30, 2026
371cbeb
test: close ContainerProfile CEL + rule-engine coverage gaps
Jul 30, 2026
6eb22ef
test(component): make Test_20/21 deterministic (authored profile, not…
Jul 30, 2026
e21c2f3
test(component): gate Test_16 on real profile completion, not a fixed…
Jul 30, 2026
5bc3259
last fixes, only concerning test utils that coderabbit complained about
entlein Jul 31, 2026
f91d4a5
merge in main
entlein Jul 31, 2026
eab532e
merge in main fix dupes
entlein Jul 31, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/component-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
# Test_05_MemoryLeak_10K_Alerts,
Test_06_KillProcessInTheMiddle,
Test_07_RuleBindingApplyTest,
Test_08_ApplicationProfilePatching,
Test_08_ContainerProfilePatching,
Test_10_MalwareDetectionTest,
Test_11_EndpointTest,
Test_12_MergingProfilesTest,
Expand Down
45 changes: 6 additions & 39 deletions mocks/readfiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"path"
"runtime"

"github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1"
corev1 "k8s.io/api/core/v1"
k8sruntime "k8s.io/apimachinery/pkg/runtime"

Expand All @@ -20,8 +19,6 @@ const (
TestKindPod TestKinds = "Pod"
TestKindRS TestKinds = "ReplicaSet"
TestKindDeploy TestKinds = "Deployment"
TestKindAP TestKinds = "ApplicationProfile"
TestKindNN TestKinds = "NetworkNeighborhood"
)

const (
Expand All @@ -30,20 +27,14 @@ const (
)

const (
nginxPodBytes = "testdata/nginx_pod.json"
nginxRSBytes = "testdata/nginx_rs.json"
nginxDeploymentBytes = "testdata/nginx_deploy.json"
nginxApplicationProfileBytes = "testdata/nginx_applicationprofiles.json"
nginxApplicationActivityBytes = "testdata/nginx_applicationactivities.json"
nginxNetworkNeighborhoodBytes = "testdata/nginx_networkneighborhood.json"
nginxPodBytes = "testdata/nginx_pod.json"
nginxRSBytes = "testdata/nginx_rs.json"
nginxDeploymentBytes = "testdata/nginx_deploy.json"
)
const (
collectionPodBytes = "testdata/collection_pod.json"
collectionRSBytes = "testdata/collection_rs.json"
collectionDeploymentBytes = "testdata/collection_deploy.json"
collectionApplicationProfileBytes = "testdata/collection_applicationprofiles.json"
collectionApplicationActivityBytes = "testdata/collection_applicationactivities.json"
collectionNetworkNeighborhoodBytes = "testdata/collection_networkneighborhood.json"
collectionPodBytes = "testdata/collection_pod.json"
collectionRSBytes = "testdata/collection_rs.json"
collectionDeploymentBytes = "testdata/collection_deploy.json"
)

var NAMESPACE = ""
Expand Down Expand Up @@ -86,16 +77,6 @@ func UnstructuredToRuntime(u *unstructured.Unstructured) k8sruntime.Object {
if err := k8sruntime.DefaultUnstructuredConverter.FromUnstructured(u.Object, deploy); err == nil {
return deploy
}
case TestKindAP:
ap := &v1beta1.ApplicationProfile{}
if err := k8sruntime.DefaultUnstructuredConverter.FromUnstructured(u.Object, ap); err == nil {
return ap
}
case TestKindNN:
nn := &v1beta1.NetworkNeighborhood{}
if err := k8sruntime.DefaultUnstructuredConverter.FromUnstructured(u.Object, nn); err == nil {
return nn
}
}
return nil
}
Expand Down Expand Up @@ -143,20 +124,6 @@ func GetBytes(kind TestKinds, name TestName) []byte {
case TestCollection:
return readFile(collectionDeploymentBytes)
}
case TestKindAP:
switch name {
case TestNginx:
return readFile(nginxApplicationProfileBytes)
case TestCollection:
return readFile(collectionApplicationProfileBytes)
}
case TestKindNN:
switch name {
case TestNginx:
return readFile(nginxNetworkNeighborhoodBytes)
case TestCollection:
return readFile(collectionNetworkNeighborhoodBytes)
}
}
return []byte{}
}
16 changes: 0 additions & 16 deletions mocks/readfiles_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,6 @@ func TestUnstructuredToPod(t *testing.T) {
name: TestNginx,
kind: TestKindDeploy,
},
{
name: TestNginx,
kind: TestKindAP,
},
{
name: TestNginx,
kind: TestKindNN,
},
{
name: TestCollection,
kind: TestKindPod,
Expand All @@ -45,14 +37,6 @@ func TestUnstructuredToPod(t *testing.T) {
name: TestCollection,
kind: TestKindDeploy,
},
{
name: TestCollection,
kind: TestKindAP,
},
{
name: TestCollection,
kind: TestKindNN,
},
}
for _, tt := range tests {
t.Run(fmt.Sprintf("%s/%s", tt.name, tt.kind), func(t *testing.T) {
Expand Down
253 changes: 0 additions & 253 deletions mocks/testdata/collection_applicationprofiles.json

This file was deleted.

Loading
Loading