mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-12 15:50:15 -08:00
feat(suse): added SUSE Linux Enterprise Micro support (#7294)
Signed-off-by: Marcus Meissner <meissner@suse.de> Signed-off-by: knqyf263 <knqyf263@gmail.com> Co-authored-by: knqyf263 <knqyf263@gmail.com>
This commit is contained in:
@@ -220,6 +220,13 @@ func TestClientServer(t *testing.T) {
|
||||
},
|
||||
golden: "testdata/opensuse-tumbleweed.json.golden",
|
||||
},
|
||||
{
|
||||
name: "sle micro rancher 5.4",
|
||||
args: csArgs{
|
||||
Input: "testdata/fixtures/images/sle-micro-rancher-5.4_ndb.tar.gz",
|
||||
},
|
||||
golden: "testdata/sl-micro-rancher5.4.json.golden",
|
||||
},
|
||||
{
|
||||
name: "photon 3.0",
|
||||
args: csArgs{
|
||||
|
||||
@@ -198,6 +198,12 @@ func TestDockerEngine(t *testing.T) {
|
||||
input: "testdata/fixtures/images/opensuse-tumbleweed.tar.gz",
|
||||
golden: "testdata/opensuse-tumbleweed.json.golden",
|
||||
},
|
||||
{
|
||||
name: "sle micro rancher 5.4",
|
||||
imageTag: "ghcr.io/aquasecurity/trivy-test-images:sle-micro-rancher-5.4_ndb",
|
||||
input: "testdata/fixtures/images/sle-micro-rancher-5.4_ndb.tar.gz",
|
||||
golden: "testdata/sl-micro-rancher5.4.json.golden",
|
||||
},
|
||||
{
|
||||
name: "photon 3.0",
|
||||
imageTag: "ghcr.io/aquasecurity/trivy-test-images:photon-30",
|
||||
|
||||
@@ -341,6 +341,14 @@ func TestTar(t *testing.T) {
|
||||
},
|
||||
golden: "testdata/opensuse-tumbleweed.json.golden",
|
||||
},
|
||||
{
|
||||
name: "sle micro rancher 5.4",
|
||||
args: args{
|
||||
Format: types.FormatJSON,
|
||||
Input: "testdata/fixtures/images/sle-micro-rancher-5.4_ndb.tar.gz",
|
||||
},
|
||||
golden: "testdata/sl-micro-rancher5.4.json.golden",
|
||||
},
|
||||
{
|
||||
name: "photon 3.0",
|
||||
args: args{
|
||||
|
||||
19
integration/testdata/fixtures/db/suse.yaml
vendored
Normal file
19
integration/testdata/fixtures/db/suse.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
- bucket: "SUSE Linux Enterprise 15-SP3"
|
||||
pairs:
|
||||
- bucket: libopenssl1_1
|
||||
pairs:
|
||||
- key: "SUSE-SU-2022:2251-1"
|
||||
value:
|
||||
FixedVersion: 1.1.1d-150200.11.48.1
|
||||
- bucket: openssl-1_1
|
||||
pairs:
|
||||
- key: "SUSE-SU-2022:2251-1"
|
||||
value:
|
||||
FixedVersion: 1.1.1d-150200.11.48.1
|
||||
- bucket: "SUSE Linux Enterprise Micro 5.3"
|
||||
pairs:
|
||||
- bucket: libopenssl1_1
|
||||
pairs:
|
||||
- key: "SUSE-SU-2023:0311-1"
|
||||
value:
|
||||
FixedVersion: 1.1.1l-150400.7.22.1
|
||||
@@ -1349,6 +1349,15 @@
|
||||
- "https://www.suse.com/security/cve/CVE-2023-2975/"
|
||||
- "https://www.suse.com/security/cve/CVE-2023-3446/"
|
||||
- "https://www.suse.com/support/security/rating/"
|
||||
- key: SUSE-SU-2022:2251-1
|
||||
value:
|
||||
Title: "Security update for openssl-1_1"
|
||||
Description: "This update for openssl-1_1 fixes the following issues:\nCVE-2022-1292: Fixed command injection in c_rehash (bsc#1199166).\nCVE-2022-2068: Fixed more shell code injection issues in c_rehash. (bsc#1200550)"
|
||||
Severity: MEDIUM
|
||||
References:
|
||||
- "https://www.suse.com/security/cve/CVE-2022-1292/"
|
||||
- "https://www.suse.com/security/cve/CVE-2022-2068/"
|
||||
- "https://www.suse.com/support/security/rating/"
|
||||
- key: CVE-2022-22965
|
||||
value:
|
||||
Title: "spring-framework: RCE via Data Binding on JDK 9+"
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
"PkgID": "libopenssl1_1@1.1.0i-lp151.8.3.1.x86_64",
|
||||
"PkgName": "libopenssl1_1",
|
||||
"PkgIdentifier": {
|
||||
"PURL": "pkg:rpm/opensuse.leap/libopenssl1_1@1.1.0i-lp151.8.3.1?arch=x86_64\u0026distro=opensuse.leap-15.1",
|
||||
"PURL": "pkg:rpm/opensuse/libopenssl1_1@1.1.0i-lp151.8.3.1?arch=x86_64\u0026distro=opensuse.leap-15.1",
|
||||
"UID": "898b73ddd0412f57"
|
||||
},
|
||||
"InstalledVersion": "1.1.0i-lp151.8.3.1",
|
||||
@@ -99,7 +99,7 @@
|
||||
"PkgID": "openssl-1_1@1.1.0i-lp151.8.3.1.x86_64",
|
||||
"PkgName": "openssl-1_1",
|
||||
"PkgIdentifier": {
|
||||
"PURL": "pkg:rpm/opensuse.leap/openssl-1_1@1.1.0i-lp151.8.3.1?arch=x86_64\u0026distro=opensuse.leap-15.1",
|
||||
"PURL": "pkg:rpm/opensuse/openssl-1_1@1.1.0i-lp151.8.3.1?arch=x86_64\u0026distro=opensuse.leap-15.1",
|
||||
"UID": "58980d005de43f54"
|
||||
},
|
||||
"InstalledVersion": "1.1.0i-lp151.8.3.1",
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
"PkgID": "libopenssl3@3.1.4-9.1.x86_64",
|
||||
"PkgName": "libopenssl3",
|
||||
"PkgIdentifier": {
|
||||
"PURL": "pkg:rpm/opensuse.tumbleweed/libopenssl3@3.1.4-9.1?arch=x86_64\u0026distro=opensuse.tumbleweed-20240607",
|
||||
"PURL": "pkg:rpm/opensuse/libopenssl3@3.1.4-9.1?arch=x86_64\u0026distro=opensuse.tumbleweed-20240607",
|
||||
"UID": "f051425f385d2b99"
|
||||
},
|
||||
"InstalledVersion": "3.1.4-9.1",
|
||||
|
||||
69
integration/testdata/sl-micro-rancher5.4.json.golden
vendored
Normal file
69
integration/testdata/sl-micro-rancher5.4.json.golden
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"SchemaVersion": 2,
|
||||
"CreatedAt": "2021-08-25T12:20:30.000000005Z",
|
||||
"ArtifactName": "testdata/fixtures/images/sle-micro-rancher-5.4_ndb.tar.gz",
|
||||
"ArtifactType": "container_image",
|
||||
"Metadata": {
|
||||
"OS": {
|
||||
"Family": "suse linux enterprise micro",
|
||||
"Name": "5.4"
|
||||
},
|
||||
"ImageID": "sha256:c45ec974938acac29c893b5d273d73e4ebdd7e6a97b6fa861dfbd8dd430b9016",
|
||||
"DiffIDs": [
|
||||
"sha256:7cdd3aec849d122d63dc83a5e1e2fb89b341c67b03e25979131ca335a463bb57"
|
||||
],
|
||||
"ImageConfig": {
|
||||
"architecture": "amd64",
|
||||
"author": "SUSE LLC (https://www.suse.com/)",
|
||||
"created": "2024-09-03T17:54:39Z",
|
||||
"history": [
|
||||
{
|
||||
"author": "SUSE LLC \u003chttps://www.suse.com/\u003e",
|
||||
"created": "2024-09-03T17:54:39Z",
|
||||
"created_by": "KIWI 9.24.43"
|
||||
}
|
||||
],
|
||||
"os": "linux",
|
||||
"rootfs": {
|
||||
"type": "layers",
|
||||
"diff_ids": [
|
||||
"sha256:7cdd3aec849d122d63dc83a5e1e2fb89b341c67b03e25979131ca335a463bb57"
|
||||
]
|
||||
},
|
||||
"config": {
|
||||
"Cmd": [
|
||||
"/bin/bash"
|
||||
],
|
||||
"Labels": {
|
||||
"com.suse.eula": "sle-eula",
|
||||
"com.suse.image-type": "sle-micro",
|
||||
"com.suse.release-stage": "released",
|
||||
"com.suse.sle.micro.rancher.created": "2024-09-03T17:53:32.129328086Z",
|
||||
"com.suse.sle.micro.rancher.description": "Image containing a micro environment for containers based on the SLE Micro for Rancher.",
|
||||
"com.suse.sle.micro.rancher.disturl": "obs://build.suse.de/SUSE:SLE-15-SP4:Update:Products:Micro54:Update:CR/images/fcaa3a91b132f1955fa900b902aef7f2-SLE-Micro-Rancher",
|
||||
"com.suse.sle.micro.rancher.reference": "registry.suse.com/suse/sle-micro-rancher/5.4:%PKG_VERSION%-%RELEASE",
|
||||
"com.suse.sle.micro.rancher.title": "SLE Micro for Rancher Base Container",
|
||||
"com.suse.sle.micro.rancher.url": "https://www.suse.com/products/micro/",
|
||||
"com.suse.sle.micro.rancher.vendor": "SUSE LLC",
|
||||
"com.suse.sle.micro.rancher.version": "5.4",
|
||||
"com.suse.supportlevel": "l3",
|
||||
"org.openbuildservice.disturl": "obs://build.suse.de/SUSE:SLE-15-SP4:Update:Products:Micro54:Update:CR/images/fcaa3a91b132f1955fa900b902aef7f2-SLE-Micro-Rancher",
|
||||
"org.opencontainers.image.created": "2024-09-03T17:53:32.129328086Z",
|
||||
"org.opencontainers.image.description": "Image containing a micro environment for containers based on the SLE Micro for Rancher.",
|
||||
"org.opencontainers.image.title": "SLE Micro for Rancher Base Container",
|
||||
"org.opencontainers.image.url": "https://www.suse.com/products/micro/",
|
||||
"org.opencontainers.image.vendor": "SUSE LLC",
|
||||
"org.opencontainers.image.version": "5.4",
|
||||
"org.suse.reference": "registry.suse.com/suse/sle-micro-rancher/5.4:%PKG_VERSION%-%RELEASE"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Results": [
|
||||
{
|
||||
"Target": "testdata/fixtures/images/sle-micro-rancher-5.4_ndb.tar.gz (suse linux enterprise micro 5.4)",
|
||||
"Class": "os-pkgs",
|
||||
"Type": "suse linux enterprise micro"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user