Added dynamic open path detector #413
GitHub Actions / JUnit Test Report
failed
Sep 19, 2024 in 0s
1 tests run, 0 passed, 0 skipped, 1 failed.
Annotations
Check failure on line 22 in configurations/system/__pycache__/network_policy.cpython-38.pyc
github-actions / JUnit Test Report
network_policy
validate_expected_backend_results, timeout: 2 minutes, error: network policies workloads list is 0 'CyberArmorTests' (code: 200, message: {"total":{"value":0,"relation":"eq"},"response":[],"cursor":""}
). kwargs: '{'cluster': 'kind-systets-1d639269-4a15-4677-bd70-13ca187c4a11', 'namespace': 'systest-ns-kio7', 'expected_workloads_list': [{'apiVersion': 'apps/v1', 'kind': 'Deployment', 'metadata': {'name': 'nginx'}, 'spec': {'selector': {'matchLabels': {'app': 'nginx'}}, 'replicas': 1, 'template': {'metadata': {'labels': {'app': 'nginx'}}, 'spec': {'containers': [{'name': 'nginx', 'image': 'nginx@sha256:aa0afebbb3cfa473099a62c4b32e9b3fb73ed23f2a75a65ce1d4b4f55a5c2ef2', 'ports': [{'containerPort': 80}], 'volumeMounts': [{'mountPath': '/etc/nginx', 'readOnly': True, 'name': 'nginx-conf'}], 'env': [{'name': 'ARMO_TEST_NAME', 'value': 'network_policy'}, {'name': 'CAA_ENABLE_CRASH_REPORTER', 'value': '1'}]}], 'volumes': [{'name': 'nginx-conf', 'configMap': {'name': 'nginx-conf', 'items': [{'key': 'nginx.conf', 'path': 'nginx.conf'}]}}]}}}}, {'apiVersion': 'apps/v1', 'kind': 'Deployment', 'metadata': {'name': 'wikijs', 'labels': {'app': 'wikijs'}}, 'spec': {'selector': {'matchLabels': {'app': 'wikijs'}}, 'template': {'metadata': {'labels': {'app': 'wikijs'}}, 'spec': {'containers': [{'name': 'wikijs', 'image': 'requarks/wiki@sha256:dd83fff15e77843ff934b25c28c865ac000edf7653e5d11adad1dd51df87439d', 'imagePullPolicy': 'Always', 'env': [{'name': 'DB_TYPE', 'value': 'mariadb'}, {'name': 'DB_HOST', 'value': 'mariadb'}, {'name': 'DB_PORT', 'value': '3306'}, {'name': 'DB_NAME', 'valueFrom': {'secretKeyRef': {'name': 'mariadb-real-secret', 'key': 'DATABASE'}}}, {'name': 'DB_USER', 'valueFrom': {'secretKeyRef': {'name': 'mariadb-real-secret', 'key': 'USER'}}}, {'name': 'DB_PASS', 'valueFrom': {'secretKeyRef': {'name': 'mariadb-real-secret', 'key': 'PASSWORD'}}}, {'name': 'ARMO_TEST_NAME', 'value': 'network_policy'}, {'name': 'CAA_ENABLE_CRASH_REPORTER', 'value': '1'}], 'ports': [{'containerPort': 3000, 'name': 'http'}]}]}}}}, {'apiVersion': 'apps/v1', 'kind': 'Deployment', 'metadata': {'name': 'mariadb', 'labels': {'app': 'mariadb'}}, 'spec': {'selector': {'matchLabels': {'app': 'mariadb'}}, 'template': {'metadata': {'labels': {'app': 'mariadb'}}, 'spec': {'containers': [{'name': 'mariadb', 'image': 'mariadb@sha256:821d0411208eaa88f9e1f0daccd1d534f88d19baf724eb9a2777cbedb10b6c66', 'env': [{'name': 'MYSQL_ROOT_PASSWORD', 'valueFrom': {'secretKeyRef': {'name': 'mariadb-real-secret', 'key': 'ROOT_PASSWORD'}}}, {'name': 'MYSQL_DATABASE', 'valueFrom': {'secretKeyRef': {'name': 'mariadb-real-secret', 'key': 'DATABASE'}}}, {'name': 'MYSQL_USER', 'valueFrom': {'secretKeyRef': {'name': 'mariadb-real-secret', 'key': 'USER'}}}, {'name': 'MYSQL_PASSWORD', 'valueFrom': {'secretKeyRef': {'name': 'mariadb-real-secret', 'key': 'PASSWORD'}}}, {'name': 'ARMO_TEST_NAME', 'value': 'network_policy'}, {'name': 'CAA_ENABLE_CRASH_REPORTER', 'value': '1'}], 'ports': [{'containerPort': 3306, 'name': 'mysql'}], 'volumeMounts': [{'name': 'mariadb-storage', 'mountPath': '/var/lib/mysql'}]}], 'volumes': [{'name': 'mariadb-storage', 'emptyDir': {}}]}}}}], 'expected_network_neighborhood_list': [{'kind': 'NetworkNeighborhood', 'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'metadata': {'name': 'deployment-wikijs', 'namespace': 'systest-ns-j1m4', 'uid': '571e146a-600f-4893-9b7a-ea48c8f5c953', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:07Z', 'labels': {'kubescape.io/workload-api-group': 'apps', 'kubescape.io/workload-api-version': 'v1', 'kubescape.io/workload-kind': 'Deployment', 'kubescape.io/workload-name': 'wikijs'}, 'annotations': {'kubescape.io/completion': 'complete', 'kubescape.io/status': 'ready'}}, 'spec': {'containers': [{'name': 'wikijs', 'egress': [{'identifier': '5ad9341e6dde8c3207c811b3304d1e18601c56151f02dfeb6ec20f4f7b6dfb47', 'type': 'external', 'dns': 'wikipedia.org.', 'dnsNames': ['wikipedia.org.'], 'ports': [{'name': 'TCP-443', 'protocol': 'TCP', 'port': 443}], 'podSelector': None, 'namespaceSelector': None, 'ipAddress': '185.15.58.224'}, {'identifier': '66c89b9fd8bd51e9c16c2eb568c64285e1bf89a98e5eb878c7cfb123246857a6', 'type': 'external', 'dns': 'google.com.', 'dnsNames': ['google.com.'], 'ports': [{'name': 'TCP-443', 'protocol': 'TCP', 'port': 443}], 'podSelector': None, 'namespaceSelector': None, 'ipAddress': '142.250.179.78'}, {'identifier': 'e5e8ca3d76f701a19b7478fdc1c8c24ccc6cef9902b52c8c7e015439e2a1ddf3', 'type': 'internal', 'dns': '', 'ports': [{'name': 'UDP-53', 'protocol': 'UDP', 'port': 53}], 'podSelector': {'matchLabels': {'k8s-app': 'kube-dns'}}, 'namespaceSelector': {'matchLabels': {'kubernetes.io/metadata.name': 'kube-system'}}, 'ipAddress': ''}, {'identifier': '9230d773194d84ea09e198e98b8aaa1dd71fd6f406314796f234240bb5111425', 'type': 'internal', 'dns': '', 'ports': [{'name': 'TCP-3306', 'protocol': 'TCP', 'port': 3306}], 'podSelector': {'matchLabels': {'app': 'mariadb'}}, 'namespaceSelector': None, 'ipAddress': ''}], 'ingress': []}], 'matchLabels': {'app': 'wikijs'}}}, {'kind': 'NetworkNeighborhood', 'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'metadata': {'name': 'deployment-mariadb', 'namespace': 'systest-ns-j1m4', 'uid': '14375c2f-c5c9-49e7-b5e2-d7f76728b0e4', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:06Z', 'labels': {'kubescape.io/workload-api-group': 'apps', 'kubescape.io/workload-api-version': 'v1', 'kubescape.io/workload-kind': 'Deployment', 'kubescape.io/workload-name': 'mariadb'}, 'annotations': {'kubescape.io/completion': 'complete', 'kubescape.io/status': 'ready'}}, 'spec': {'containers': [{'name': 'mariadb', 'egress': [], 'ingress': [{'identifier': 'ee5c5b2f07834fa64174c3d2ad0505366e4b26777174906b91e83dcd163f8ec2', 'type': 'internal', 'dns': '', 'ports': [{'name': 'TCP-3306', 'protocol': 'TCP', 'port': 3306}], 'podSelector': {'matchLabels': {'app': 'wikijs'}}, 'namespaceSelector': None, 'ipAddress': ''}]}], 'matchLabels': {'app': 'mariadb'}}}, {'kind': 'NetworkNeighborhood', 'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'metadata': {'name': 'deployment-nginx', 'namespace': 'systest-ns-j1m4', 'uid': 'e415ac32-19de-4744-9700-61c773e080ca', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:06Z', 'labels': {'kubescape.io/workload-api-group': 'apps', 'kubescape.io/workload-api-version': 'v1', 'kubescape.io/workload-kind': 'Deployment', 'kubescape.io/workload-name': 'nginx'}, 'annotations': {'kubescape.io/completion': 'complete', 'kubescape.io/status': 'ready'}}, 'spec': {'containers': [{'name': 'nginx', 'egress': [], 'ingress': []}], 'matchLabels': {'app': 'nginx'}}}], 'expected_generated_network_policy_list': [{'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'kind': 'GeneratedNetworkPolicy', 'metadata': {'creationTimestamp': '2023-12-14T09:22:59Z', 'labels': {'kubescape.io/workload-api-group': 'apps', 'kubescape.io/workload-api-version': 'v1', 'kubescape.io/workload-kind': 'Deployment', 'kubescape.io/workload-name': 'wikijs'}, 'name': 'deployment-wikijs', 'namespace': 'systest-ns-pjqm'}, 'policyRef': [{'dns': 'google.com.', 'ipBlock': '108.177.120.100/32', 'name': '', 'originalIP': '108.177.120.100', 'server': ''}, {'dns': 'wikipedia.org.', 'ipBlock': '208.80.154.224/32', 'name': '', 'originalIP': '208.80.154.224', 'server': ''}], 'spec': {'apiVersion': 'networking.k8s.io/v1', 'kind': 'NetworkPolicy', 'metadata': {'annotations': {'generated-by': 'kubescape'}, 'creationTimestamp': None, 'labels': {'kubescape.io/workload-api-group': 'apps', 'kubescape.io/workload-api-version': 'v1', 'kubescape.io/workload-kind': 'Deployment', 'kubescape.io/workload-name': 'wikijs'}, 'name': 'deployment-wikijs', 'namespace': 'systest-ns-pjqm'}, 'spec': {'egress': [{'ports': [{'port': 443, 'protocol': 'TCP'}], 'to': [{'ipBlock': {'cidr': '108.177.120.100/32'}}, {'ipBlock': {'cidr': '208.80.154.224/32'}}]}, {'ports': [{'port': 53, 'protocol': 'UDP'}], 'to': [{'namespaceSelector': {'matchLabels': {'kubernetes.io/metadata.name': 'kube-system'}}, 'podSelector': {'matchLabels': {'k8s-app': 'kube-dns'}}}]}, {'ports': [{'port': 3306, 'protocol': 'TCP'}], 'to': [{'podSelector': {'matchLabels': {'app': 'mariadb'}}}]}], 'podSelector': {'matchLabels': {'app': 'wikijs'}}, 'policyTypes': ['Egress']}}}, {'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'kind': 'GeneratedNetworkPolicy', 'metadata': {'creationTimestamp': '2023-12-14T09:24:41Z', 'labels': {'kubescape.io/workload-api-group': 'apps', 'kubescape.io/workload-api-version': 'v1', 'kubescape.io/workload-kind': 'Deployment', 'kubescape.io/workload-name': 'mariadb'}, 'name': 'deployment-mariadb', 'namespace': 'systest-ns-pjqm'}, 'policyRef': [], 'spec': {'apiVersion': 'networking.k8s.io/v1', 'kind': 'NetworkPolicy', 'metadata': {'annotations': {'generated-by': 'kubescape'}, 'creationTimestamp': None, 'labels': {'kubescape.io/workload-api-group': 'apps', 'kubescape.io/workload-api-version': 'v1', 'kubescape.io/workload-kind': 'Deployment', 'kubescape.io/workload-name': 'mariadb'}, 'name': 'deployment-mariadb', 'namespace': 'systest-ns-pjqm'}, 'spec': {'ingress': [{'from': [{'podSelector': {'matchLabels': {'app': 'wikijs'}}}], 'ports': [{'port': 3306, 'protocol': 'TCP'}]}], 'podSelector': {'matchLabels': {'app': 'mariadb'}}, 'policyTypes': ['Ingress']}}}, {'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'kind': 'GeneratedNetworkPolicy', 'metadata': {'creationTimestamp': '2023-12-14T09:25:02Z', 'labels': {'kubescape.io/workload-api-group': 'apps', 'kubescape.io/workload-api-version': 'v1', 'kubescape.io/workload-kind': 'Deployment', 'kubescape.io/workload-name': 'nginx'}, 'name': 'deployment-nginx', 'namespace': 'systest-ns-pjqm'}, 'policyRef': [], 'spec': {'apiVersion': 'networking.k8s.io/v1', 'kind': 'NetworkPolicy', 'metadata': {'annotations': {'generated-by': 'kubescape'}, 'creationTimestamp': None, 'labels': {'kubescape.io/workload-api-group': 'apps', 'kubescape.io/workload-api-version': 'v1', 'kubescape.io/workload-kind': 'Deployment', 'kubescape.io/workload-name': 'nginx'}, 'name': 'deployment-nginx', 'namespace': 'systest-ns-pjqm'}, 'spec': {'egress': [], 'podSelector': {'matchLabels': {'app': 'nginx'}}, 'policyTypes': ['Egress']}}}]}'
Raw output
validate_expected_backend_results, timeout: 2 minutes, error: network policies workloads list is 0 'CyberArmorTests' (code: 200, message: {"total":{"value":0,"relation":"eq"},"response":[],"cursor":""}
). kwargs: '{'cluster': 'kind-systets-1d639269-4a15-4677-bd70-13ca187c4a11', 'namespace': 'systest-ns-kio7', 'expected_workloads_list': [{'apiVersion': 'apps/v1', 'kind': 'Deployment', 'metadata': {'name': 'nginx'}, 'spec': {'selector': {'matchLabels': {'app': 'nginx'}}, 'replicas': 1, 'template': {'metadata': {'labels': {'app': 'nginx'}}, 'spec': {'containers': [{'name': 'nginx', 'image': 'nginx@sha256:aa0afebbb3cfa473099a62c4b32e9b3fb73ed23f2a75a65ce1d4b4f55a5c2ef2', 'ports': [{'containerPort': 80}], 'volumeMounts': [{'mountPath': '/etc/nginx', 'readOnly': True, 'name': 'nginx-conf'}], 'env': [{'name': 'ARMO_TEST_NAME', 'value': 'network_policy'}, {'name': 'CAA_ENABLE_CRASH_REPORTER', 'value': '1'}]}], 'volumes': [{'name': 'nginx-conf', 'configMap': {'name': 'nginx-conf', 'items': [{'key': 'nginx.conf', 'path': 'nginx.conf'}]}}]}}}}, {'apiVersion': 'apps/v1', 'kind': 'Deployment', 'metadata': {'name': 'wikijs', 'labels': {'app': 'wikijs'}}, 'spec': {'selector': {'matchLabels': {'app': 'wikijs'}}, 'template': {'metadata': {'labels': {'app': 'wikijs'}}, 'spec': {'containers': [{'name': 'wikijs', 'image': 'requarks/wiki@sha256:dd83fff15e77843ff934b25c28c865ac000edf7653e5d11adad1dd51df87439d', 'imagePullPolicy': 'Always', 'env': [{'name': 'DB_TYPE', 'value': 'mariadb'}, {'name': 'DB_HOST', 'value': 'mariadb'}, {'name': 'DB_PORT', 'value': '3306'}, {'name': 'DB_NAME', 'valueFrom': {'secretKeyRef': {'name': 'mariadb-real-secret', 'key': 'DATABASE'}}}, {'name': 'DB_USER', 'valueFrom': {'secretKeyRef': {'name': 'mariadb-real-secret', 'key': 'USER'}}}, {'name': 'DB_PASS', 'valueFrom': {'secretKeyRef': {'name': 'mariadb-real-secret', 'key': 'PASSWORD'}}}, {'name': 'ARMO_TEST_NAME', 'value': 'network_policy'}, {'name': 'CAA_ENABLE_CRASH_REPORTER', 'value': '1'}], 'ports': [{'containerPort': 3000, 'name': 'http'}]}]}}}}, {'apiVersion': 'apps/v1', 'kind': 'Deployment', 'metadata': {'name': 'mariadb', 'labels': {'app': 'mariadb'}}, 'spec': {'selector': {'matchLabels': {'app': 'mariadb'}}, 'template': {'metadata': {'labels': {'app': 'mariadb'}}, 'spec': {'containers': [{'name': 'mariadb', 'image': 'mariadb@sha256:821d0411208eaa88f9e1f0daccd1d534f88d19baf724eb9a2777cbedb10b6c66', 'env': [{'name': 'MYSQL_ROOT_PASSWORD', 'valueFrom': {'secretKeyRef': {'name': 'mariadb-real-secret', 'key': 'ROOT_PASSWORD'}}}, {'name': 'MYSQL_DATABASE', 'valueFrom': {'secretKeyRef': {'name': 'mariadb-real-secret', 'key': 'DATABASE'}}}, {'name': 'MYSQL_USER', 'valueFrom': {'secretKeyRef': {'name': 'mariadb-real-secret', 'key': 'USER'}}}, {'name': 'MYSQL_PASSWORD', 'valueFrom': {'secretKeyRef': {'name': 'mariadb-real-secret', 'key': 'PASSWORD'}}}, {'name': 'ARMO_TEST_NAME', 'value': 'network_policy'}, {'name': 'CAA_ENABLE_CRASH_REPORTER', 'value': '1'}], 'ports': [{'containerPort': 3306, 'name': 'mysql'}], 'volumeMounts': [{'name': 'mariadb-storage', 'mountPath': '/var/lib/mysql'}]}], 'volumes': [{'name': 'mariadb-storage', 'emptyDir': {}}]}}}}], 'expected_network_neighborhood_list': [{'kind': 'NetworkNeighborhood', 'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'metadata': {'name': 'deployment-wikijs', 'namespace': 'systest-ns-j1m4', 'uid': '571e146a-600f-4893-9b7a-ea48c8f5c953', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:07Z', 'labels': {'kubescape.io/workload-api-group': 'apps', 'kubescape.io/workload-api-version': 'v1', 'kubescape.io/workload-kind': 'Deployment', 'kubescape.io/workload-name': 'wikijs'}, 'annotations': {'kubescape.io/completion': 'complete', 'kubescape.io/status': 'ready'}}, 'spec': {'containers': [{'name': 'wikijs', 'egress': [{'identifier': '5ad9341e6dde8c3207c811b3304d1e18601c56151f02dfeb6ec20f4f7b6dfb47', 'type': 'external', 'dns': 'wikipedia.org.', 'dnsNames': ['wikipedia.org.'], 'ports': [{'name': 'TCP-443', 'protocol': 'TCP', 'port': 443}], 'podSelector': None, 'namespaceSelector': None, 'ipAddress': '185.15.58.224'}, {'identifier': '66c89b9fd8bd51e9c16c2eb568c64285e1bf89a98e5eb878c7cfb123246857a6', 'type': 'external', 'dns': 'google.com.', 'dnsNames': ['google.com.'], 'ports': [{'name': 'TCP-443', 'protocol': 'TCP', 'port': 443}], 'podSelector': None, 'namespaceSelector': None, 'ipAddress': '142.250.179.78'}, {'identifier': 'e5e8ca3d76f701a19b7478fdc1c8c24ccc6cef9902b52c8c7e015439e2a1ddf3', 'type': 'internal', 'dns': '', 'ports': [{'name': 'UDP-53', 'protocol': 'UDP', 'port': 53}], 'podSelector': {'matchLabels': {'k8s-app': 'kube-dns'}}, 'namespaceSelector': {'matchLabels': {'kubernetes.io/metadata.name': 'kube-system'}}, 'ipAddress': ''}, {'identifier': '9230d773194d84ea09e198e98b8aaa1dd71fd6f406314796f234240bb5111425', 'type': 'internal', 'dns': '', 'ports': [{'name': 'TCP-3306', 'protocol': 'TCP', 'port': 3306}], 'podSelector': {'matchLabels': {'app': 'mariadb'}}, 'namespaceSelector': None, 'ipAddress': ''}], 'ingress': []}], 'matchLabels': {'app': 'wikijs'}}}, {'kind': 'NetworkNeighborhood', 'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'metadata': {'name': 'deployment-mariadb', 'namespace': 'systest-ns-j1m4', 'uid': '14375c2f-c5c9-49e7-b5e2-d7f76728b0e4', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:06Z', 'labels': {'kubescape.io/workload-api-group': 'apps', 'kubescape.io/workload-api-version': 'v1', 'kubescape.io/workload-kind': 'Deployment', 'kubescape.io/workload-name': 'mariadb'}, 'annotations': {'kubescape.io/completion': 'complete', 'kubescape.io/status': 'ready'}}, 'spec': {'containers': [{'name': 'mariadb', 'egress': [], 'ingress': [{'identifier': 'ee5c5b2f07834fa64174c3d2ad0505366e4b26777174906b91e83dcd163f8ec2', 'type': 'internal', 'dns': '', 'ports': [{'name': 'TCP-3306', 'protocol': 'TCP', 'port': 3306}], 'podSelector': {'matchLabels': {'app': 'wikijs'}}, 'namespaceSelector': None, 'ipAddress': ''}]}], 'matchLabels': {'app': 'mariadb'}}}, {'kind': 'NetworkNeighborhood', 'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'metadata': {'name': 'deployment-nginx', 'namespace': 'systest-ns-j1m4', 'uid': 'e415ac32-19de-4744-9700-61c773e080ca', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:06Z', 'labels': {'kubescape.io/workload-api-group': 'apps', 'kubescape.io/workload-api-version': 'v1', 'kubescape.io/workload-kind': 'Deployment', 'kubescape.io/workload-name': 'nginx'}, 'annotations': {'kubescape.io/completion': 'complete', 'kubescape.io/status': 'ready'}}, 'spec': {'containers': [{'name': 'nginx', 'egress': [], 'ingress': []}], 'matchLabels': {'app': 'nginx'}}}], 'expected_generated_network_policy_list': [{'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'kind': 'GeneratedNetworkPolicy', 'metadata': {'creationTimestamp': '2023-12-14T09:22:59Z', 'labels': {'kubescape.io/workload-api-group': 'apps', 'kubescape.io/workload-api-version': 'v1', 'kubescape.io/workload-kind': 'Deployment', 'kubescape.io/workload-name': 'wikijs'}, 'name': 'deployment-wikijs', 'namespace': 'systest-ns-pjqm'}, 'policyRef': [{'dns': 'google.com.', 'ipBlock': '108.177.120.100/32', 'name': '', 'originalIP': '108.177.120.100', 'server': ''}, {'dns': 'wikipedia.org.', 'ipBlock': '208.80.154.224/32', 'name': '', 'originalIP': '208.80.154.224', 'server': ''}], 'spec': {'apiVersion': 'networking.k8s.io/v1', 'kind': 'NetworkPolicy', 'metadata': {'annotations': {'generated-by': 'kubescape'}, 'creationTimestamp': None, 'labels': {'kubescape.io/workload-api-group': 'apps', 'kubescape.io/workload-api-version': 'v1', 'kubescape.io/workload-kind': 'Deployment', 'kubescape.io/workload-name': 'wikijs'}, 'name': 'deployment-wikijs', 'namespace': 'systest-ns-pjqm'}, 'spec': {'egress': [{'ports': [{'port': 443, 'protocol': 'TCP'}], 'to': [{'ipBlock': {'cidr': '108.177.120.100/32'}}, {'ipBlock': {'cidr': '208.80.154.224/32'}}]}, {'ports': [{'port': 53, 'protocol': 'UDP'}], 'to': [{'namespaceSelector': {'matchLabels': {'kubernetes.io/metadata.name': 'kube-system'}}, 'podSelector': {'matchLabels': {'k8s-app': 'kube-dns'}}}]}, {'ports': [{'port': 3306, 'protocol': 'TCP'}], 'to': [{'podSelector': {'matchLabels': {'app': 'mariadb'}}}]}], 'podSelector': {'matchLabels': {'app': 'wikijs'}}, 'policyTypes': ['Egress']}}}, {'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'kind': 'GeneratedNetworkPolicy', 'metadata': {'creationTimestamp': '2023-12-14T09:24:41Z', 'labels': {'kubescape.io/workload-api-group': 'apps', 'kubescape.io/workload-api-version': 'v1', 'kubescape.io/workload-kind': 'Deployment', 'kubescape.io/workload-name': 'mariadb'}, 'name': 'deployment-mariadb', 'namespace': 'systest-ns-pjqm'}, 'policyRef': [], 'spec': {'apiVersion': 'networking.k8s.io/v1', 'kind': 'NetworkPolicy', 'metadata': {'annotations': {'generated-by': 'kubescape'}, 'creationTimestamp': None, 'labels': {'kubescape.io/workload-api-group': 'apps', 'kubescape.io/workload-api-version': 'v1', 'kubescape.io/workload-kind': 'Deployment', 'kubescape.io/workload-name': 'mariadb'}, 'name': 'deployment-mariadb', 'namespace': 'systest-ns-pjqm'}, 'spec': {'ingress': [{'from': [{'podSelector': {'matchLabels': {'app': 'wikijs'}}}], 'ports': [{'port': 3306, 'protocol': 'TCP'}]}], 'podSelector': {'matchLabels': {'app': 'mariadb'}}, 'policyTypes': ['Ingress']}}}, {'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'kind': 'GeneratedNetworkPolicy', 'metadata': {'creationTimestamp': '2023-12-14T09:25:02Z', 'labels': {'kubescape.io/workload-api-group': 'apps', 'kubescape.io/workload-api-version': 'v1', 'kubescape.io/workload-kind': 'Deployment', 'kubescape.io/workload-name': 'nginx'}, 'name': 'deployment-nginx', 'namespace': 'systest-ns-pjqm'}, 'policyRef': [], 'spec': {'apiVersion': 'networking.k8s.io/v1', 'kind': 'NetworkPolicy', 'metadata': {'annotations': {'generated-by': 'kubescape'}, 'creationTimestamp': None, 'labels': {'kubescape.io/workload-api-group': 'apps', 'kubescape.io/workload-api-version': 'v1', 'kubescape.io/workload-kind': 'Deployment', 'kubescape.io/workload-name': 'nginx'}, 'name': 'deployment-nginx', 'namespace': 'systest-ns-pjqm'}, 'spec': {'egress': [], 'podSelector': {'matchLabels': {'app': 'nginx'}}, 'policyTypes': ['Egress']}}}]}'
Loading