-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix tests for node local sbom generation #494
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Failed to generate code suggestions for PR |
c4cd0f8
to
4e83cfb
Compare
Signed-off-by: Matthias Bertschy <[email protected]>
8f4afb5
to
e954290
Compare
Signed-off-by: Matthias Bertschy <[email protected]>
Revert "Merge pull request #494 from armosec/sbom"
PR Type
enhancement, configuration changes
Description
Changes walkthrough 📝
4 files
relevant_cve.py
Refactor SBOM and CVE retrieval to use workload tags
tests_scripts/helm/relevant_cve.py
get_imagesIDs_keys
withget_workloads_images_tags
for SBOMand CVE retrieval.
workload_tags
instead ofSBOMKeys
andCVEsKeys
.base_k8s.py
Refactor image handling and storage retrieval logic
tests_scripts/kubernetes/base_k8s.py
get_image_ids
to useimage
instead ofimage_id
.get_SBOM_from_storage
andget_CVEs_from_storage
to useworkload_tags
.python-client-to-java.json
Update vulnerability manifest for Python client
configurations/expected-result/filteredCVEs/python-client-to-java.json
metadata
andspec
fields with new values.uid
,name
, andcreationTimestamp
.annotations
andsource
fields.golang-dynamic-simple.json
Update SBOM for Golang dynamic deployment
configurations/expected-result/filteredSBOM/golang-dynamic-simple.json
metadata
andspec
fields with new values.uid
,name
, andcreationTimestamp
.tool
version andsource
metadata.9 files
python-simple.json
Update Python vulnerability manifest metadata
configurations/expected-result/CVEs/python-simple.json
golang-simple.json
Update Golang vulnerability manifest with new metadata
configurations/expected-result/CVEs/golang-simple.json
for Golang.
redis-fixed.yaml
Update Redis deployment image reference
configurations/k8s_workloads/deployments/redis/redis-fixed.yaml
docker.io
prefix.sbomspdxv2p3s.yaml
Update metadata name for Golang SBOM
configurations/kubescape-crds/unsupported/sbomspdxv2p3s.yaml
python.yaml
Update Python deployment image reference
configurations/k8s_workloads/deployments/java-and-python/python.yaml
docker.io
prefix.python-simple.yaml
Update Python deployment image reference
configurations/k8s_workloads/deployments/python-simple/python-simple.yaml
java.yaml
Update Java deployment image reference
configurations/k8s_workloads/deployments/java-and-python/java.yaml
java-simple.yaml
Update Java simple deployment image reference
configurations/k8s_workloads/deployments/java-simple/java-simple.yaml
redis-fixed.json
Update vulnerability manifest for Redis with new metadata and tool
version.
configurations/expected-result/filteredCVEs/redis-fixed.json
name
,uid
, andcreationTimestamp
.spec
section.source
section.29 files
wikijs.json
...
configurations/expected-result/CVEs/wikijs.json
...
java-simple.json
...
configurations/expected-result/filteredSBOM/java-simple.json
...
python-simple.json
...
configurations/expected-result/SBOM/python-simple.json
...
redis.json
...
configurations/expected-result/SBOM/redis.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
...
redis_incomplete.json
...
configurations/expected-result/SBOM/redis_incomplete.json
...
redis_sleep.json
...
configurations/expected-result/SBOM/redis_sleep.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
...
java-simple.json
...
configurations/expected-result/filteredCVEs/java-simple.json
...
golang-dynamic-simple.json
...
configurations/expected-result/CVEs/golang-dynamic-simple.json
...
redis.json
...
configurations/expected-result/CVEs/redis.json
...
redis_sleep.json
...
configurations/expected-result/CVEs/redis_sleep.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-simple.json
...
configurations/expected-result/filteredSBOM/python-simple.json
...
python-simple.json
...
configurations/expected-result/filteredCVEs/python-simple.json
...
redis_incomplete.json
...
configurations/expected-result/filteredSBOM/redis_incomplete.json
...
golang-dynamic-simple.json
...
configurations/expected-result/filteredCVEs/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-simple.json
...
configurations/expected-result/filteredCVEs/golang-simple.json
...