Revert "Merge pull request #494 from armosec/sbom" #503
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
User description
This reverts commit d356e60, reversing changes made to 50ffcce.
PR Type
enhancement, tests, configuration changes
Description
workload_tags
withSBOMKeys
andCVEsKeys
.Changes walkthrough 📝
6 files
relevant_cve.py
Refactor to use image IDs for SBOM and CVE retrieval
tests_scripts/helm/relevant_cve.py
workload_tags
withSBOMKeys
andCVEsKeys
in function calls.get_imagesIDs_keys
instead ofget_workloads_images_tags
.base_k8s.py
Use image IDs for SBOM and CVE retrieval
tests_scripts/kubernetes/base_k8s.py
image
toimage_id
inget_image_ids
method.get_SBOM_from_storage
andget_CVEs_from_storage
to use keysinstead of tags.
base_vuln_scan.py
Add method for generating SBOM keys using image IDs
tests_scripts/helm/base_vuln_scan.py
validate_expected_SBOM
.get_imagesIDs_keys
method to generate SBOM keys.redis-fixed.json
Added vulnerability manifest for Redis with CVE details.
configurations/expected-result/filteredCVEs/redis-fixed.json
Redis.
vulnerability information.
python-simple.json
Update vulnerability manifest metadata and source details
configurations/expected-result/CVEs/python-simple.json
metadata
section with newuid
andcreationTimestamp
.annotations
with a newkubescape.io/resource-size
.source
with a newmanifestDigest
andimageSize
.redis_incomplete.json
Add new SBOMSyftFiltered JSON structure with metadata
configurations/expected-result/filteredSBOM/redis_incomplete.json
SBOMSyftFiltered
.metadata
with newname
,uid
, andcreationTimestamp
.spec
to include newtool
version andreport
creation date.3 files
relevant_vuln_scanning_tests.py
Add test configuration for relevancy storage disabled
configurations/system/tests_cases/relevant_vuln_scanning_tests.py
relevancy_storage_disabled
.redis-fixed.json
Update expected CVE results for Redis
configurations/expected-result/CVEs/redis-fixed.json
system_test_mapping.json
Added new test case for relevancy storage disabled scenario.
system_test_mapping.json
12 files
sbomspdxv2p3s.yaml
Update metadata name in unsupported SBOM CRD
configurations/kubescape-crds/unsupported/sbomspdxv2p3s.yaml
metadata.name
field in the YAML configuration.mariadb.yaml
Simplify image reference in MariaDB deployment
configurations/k8s_workloads/deployments/viewsv2kev/mariadb.yaml
mariadb.yaml
Simplified MariaDB image reference in Kubernetes deployment.
configurations/k8s_workloads/deployments/wikijs/mariadb.yaml
'docker.io/library/' prefix.
redis-fixed.yaml
Simplified Redis image reference in Kubernetes deployment.
configurations/k8s_workloads/deployments/redis/redis-fixed.yaml
prefix.
python.yaml
Simplified Python image reference in Kubernetes deployment.
configurations/k8s_workloads/deployments/java-and-python/python.yaml
'docker.io/library/' prefix.
nginx-ingress-deployment.yaml
Simplified Nginx image reference in Kubernetes deployment.
configurations/k8s_workloads/deployments/wikijs/nginx-ingress-deployment.yaml
'docker.io/library/' prefix.
nginx-vuln-scan-new-image.yaml
Simplified Nginx image reference in Kubernetes deployment.
configurations/k8s_workloads/deployments/nginx-vuln-scan-new-image.yaml
'docker.io/library/' prefix.
wikijs.yaml
Simplified Wiki.js image reference in Kubernetes deployment.
configurations/k8s_workloads/deployments/wikijs/wikijs.yaml
prefix.
replicaset.yaml
Updated image digest for frontend application in Kubernetes
replicaset.
configurations/k8s_workloads/synchronizer/replicaset.yaml
SHA256 digest.
java.yaml
Simplified Jetty image reference in Kubernetes deployment.
configurations/k8s_workloads/deployments/java-and-python/java.yaml
'docker.io/library/' prefix.
java-simple.yaml
Simplified Jetty image reference in Kubernetes deployment.
configurations/k8s_workloads/deployments/java-simple/java-simple.yaml
'docker.io/library/' prefix.
python-simple.yaml
Simplified Python image reference in Kubernetes deployment.
configurations/k8s_workloads/deployments/python-simple/python-simple.yaml
'docker.io/library/' prefix.
35 files
redis.json
...
configurations/expected-result/SBOM/redis.json
...
wikijs.json
...
configurations/expected-result/CVEs/wikijs.json
...
java-simple.json
...
configurations/expected-result/filteredSBOM/java-simple.json
...
redis-fixed.json
...
configurations/expected-result/SBOM/redis-fixed.json
...
redis_incomplete.json
...
configurations/expected-result/SBOM/redis_incomplete.json
...
redis_sleep.json
...
configurations/expected-result/SBOM/redis_sleep.json
...
nginx.json
...
configurations/expected-result/filteredSBOM/nginx.json
...
wikijs.json
...
configurations/expected-result/filteredSBOM/wikijs.json
...
nginx.json
...
configurations/expected-result/CVEs/nginx.json
...
mariadb.json
...
configurations/expected-result/filteredCVEs/mariadb.json
...
python-simple.json
...
configurations/expected-result/SBOM/python-simple.json
...
java-simple.json
...
configurations/expected-result/CVEs/java-simple.json
...
python-client-to-java.json
...
configurations/expected-result/filteredSBOM/python-client-to-java.json
...
wikijs.json
...
configurations/expected-result/filteredCVEs/wikijs.json
...
java-simple.json
...
configurations/expected-result/filteredCVEs/java-simple.json
...
golang-dynamic-simple.json
...
configurations/expected-result/CVEs/golang-dynamic-simple.json
...
nginx.json
...
configurations/expected-result/filteredCVEs/nginx.json
...
redis_sleep.json
...
configurations/expected-result/CVEs/redis_sleep.json
...
redis.json
...
configurations/expected-result/CVEs/redis.json
...
redis.json
...
configurations/expected-result/filteredCVEs/redis.json
...
redis_sleep_updated.json
...
configurations/expected-result/filteredCVEs/redis_sleep_updated.json
...
redis_sleep_updated.json
...
configurations/expected-result/filteredSBOM/redis_sleep_updated.json
...
redis-fixed.json
...
configurations/expected-result/filteredSBOM/redis-fixed.json
...
redis_sleep.json
...
configurations/expected-result/filteredSBOM/redis_sleep.json
...
redis.json
...
configurations/expected-result/filteredSBOM/redis.json
...
redis_sleep.json
...
configurations/expected-result/filteredCVEs/redis_sleep.json
...
python-client-to-java.json
...
configurations/expected-result/filteredCVEs/python-client-to-java.json
...
python-simple.json
...
configurations/expected-result/filteredSBOM/python-simple.json
...
python-simple.json
...
configurations/expected-result/filteredCVEs/python-simple.json
...
golang-dynamic-simple.json
...
configurations/expected-result/filteredSBOM/golang-dynamic-simple.json
...
golang-simple.json
...
configurations/expected-result/SBOM/golang-simple.json
...
golang-simple.json
...
configurations/expected-result/filteredSBOM/golang-simple.json
...
golang-dynamic-simple.json
...
configurations/expected-result/filteredCVEs/golang-dynamic-simple.json
...
golang-simple.json
...
configurations/expected-result/CVEs/golang-simple.json
...
golang-simple.json
...
configurations/expected-result/filteredCVEs/golang-simple.json
...