-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f3de430
commit c4391c8
Showing
8 changed files
with
244 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,213 @@ | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: vulnerabilityreports.trivy-operator.devopstales.io | ||
labels: | ||
app.kubernetes.io/managed-by: trivy-operator | ||
spec: | ||
group: trivy-operator.devopstales.io | ||
versions: | ||
- name: v1 | ||
served: true | ||
storage: true | ||
schema: | ||
openAPIV3Schema: | ||
description: | | ||
VulnerabilityReport summarizes vulnerabilities in application dependencies and operating system packages | ||
built into container images. | ||
type: object | ||
required: | ||
- apiVersion | ||
- kind | ||
- metadata | ||
- report | ||
properties: | ||
apiVersion: | ||
type: string | ||
kind: | ||
type: string | ||
metadata: | ||
type: object | ||
report: | ||
description: | | ||
Report is the actual vulnerability report data. | ||
type: object | ||
required: | ||
- updateTimestamp | ||
- artifact | ||
- summary | ||
- vulnerabilities | ||
properties: | ||
updateTimestamp: | ||
description: | | ||
UpdateTimestamp is a timestamp representing the server time in UTC when this report was updated. | ||
type: string | ||
format: date-time | ||
registry: | ||
description: | | ||
Registry is the registry the Artifact was pulled from. | ||
type: object | ||
properties: | ||
server: | ||
description: | | ||
Server the FQDN of registry server. | ||
type: string | ||
artifact: | ||
description: | | ||
Artifact represents a standalone, executable package of software that includes everything needed to | ||
run an application. | ||
type: object | ||
properties: | ||
repository: | ||
description: | | ||
Repository is the name of the repository in the Artifact registry. | ||
type: string | ||
tag: | ||
description: | | ||
Tag is a mutable, human-readable string used to identify an Artifact. | ||
type: string | ||
summary: | ||
description: | | ||
Summary is a summary of Vulnerability counts grouped by Severity. | ||
type: object | ||
required: | ||
- criticalCount | ||
- highCount | ||
- mediumCount | ||
- lowCount | ||
- unknownCount | ||
- status | ||
properties: | ||
criticalCount: | ||
description: | | ||
CriticalCount is the number of vulnerabilities with Critical Severity. | ||
type: integer | ||
minimum: 0 | ||
highCount: | ||
description: | | ||
HighCount is the number of vulnerabilities with High Severity. | ||
type: integer | ||
minimum: 0 | ||
mediumCount: | ||
description: | | ||
MediumCount is the number of vulnerabilities with Medium Severity. | ||
type: integer | ||
minimum: 0 | ||
lowCount: | ||
description: | | ||
LowCount is the number of vulnerabilities with Low Severity. | ||
type: integer | ||
minimum: 0 | ||
unknownCount: | ||
description: | | ||
UnknownCount is the number of vulnerabilities with unknown severity. | ||
type: integer | ||
minimum: 0 | ||
status: | ||
description: | | ||
The status of the image scann | ||
type: string | ||
enum: | ||
- OK | ||
- ERROR | ||
vulnerabilities: | ||
description: | | ||
Vulnerabilities is a list of operating system (OS) or application software Vulnerability items found in the Artifact. | ||
type: array | ||
items: | ||
type: object | ||
required: | ||
- vulnerabilityID | ||
- resource | ||
- installedVersion | ||
- severity | ||
- title | ||
properties: | ||
vulnerabilityID: | ||
description: | | ||
VulnerabilityID the vulnerability identifier. | ||
type: string | ||
resource: | ||
description: | | ||
Resource is a vulnerable package, application, or library. | ||
type: string | ||
installedVersion: | ||
description: | | ||
InstalledVersion indicates the installed version of the Resource. | ||
type: string | ||
score: | ||
type: number | ||
severity: | ||
type: string | ||
enum: | ||
- CRITICAL | ||
- HIGH | ||
- MEDIUM | ||
- LOW | ||
- UNKNOWN | ||
- NONE | ||
- ERROR | ||
title: | ||
type: string | ||
description: | ||
type: string | ||
primaryLink: | ||
type: string | ||
links: | ||
type: array | ||
items: | ||
type: string | ||
additionalPrinterColumns: | ||
- jsonPath: .report.artifact.repository | ||
type: string | ||
name: Repository | ||
description: The name of image repository | ||
- jsonPath: .report.artifact.tag | ||
type: string | ||
name: Tag | ||
description: The name of image tag | ||
- jsonPath: .metadata.creationTimestamp | ||
type: date | ||
name: Age | ||
description: The age of the report | ||
- jsonPath: .report.summary.criticalCount | ||
type: integer | ||
name: Critical | ||
description: The number of critical vulnerabilities | ||
priority: 1 | ||
- jsonPath: .report.summary.highCount | ||
type: integer | ||
name: High | ||
description: The number of high vulnerabilities | ||
priority: 1 | ||
- jsonPath: .report.summary.mediumCount | ||
type: integer | ||
name: Medium | ||
description: The number of medium vulnerabilities | ||
priority: 1 | ||
- jsonPath: .report.summary.lowCount | ||
type: integer | ||
name: Low | ||
description: The number of low vulnerabilities | ||
priority: 1 | ||
- jsonPath: .report.summary.unknownCount | ||
type: integer | ||
name: Unknown | ||
description: The number of unknown vulnerabilities | ||
priority: 1 | ||
- jsonPath: .report.summary.status | ||
type: string | ||
name: STATUS | ||
description: The status of the image scann | ||
priority: 0 | ||
scope: Namespaced | ||
names: | ||
singular: vulnerabilityreport | ||
plural: vulnerabilityreports | ||
kind: VulnerabilityReport | ||
listKind: VulnerabilityReportList | ||
categories: | ||
- all | ||
shortNames: | ||
- vuln | ||
- vulns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters