-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputOLD.sarif
179 lines (179 loc) · 5.97 KB
/
outputOLD.sarif
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
{
"version": "2.1.0",
"$schema": "https://json.schemastore.org/sarif-2.1.0-rtm.5.json",
"runs": [
{
"tool": {
"driver": {
"informationUri": "https://github.com/datreeio/datree",
"name": "datree",
"rules": [
{
"id": "CONTAINERS_MISSING_MEMORY_LIMIT_KEY",
"shortDescription": {
"text": "Ensure each container has a configured memory limit"
},
"fullDescription": {
"text": "Missing property object `limits.memory` - value should be within the accepted boundaries recommended by the organization"
},
"helpUri": "https://hub.datree.io/built-in-rules",
"help": {
"text": "https://hub.datree.io/built-in-rules"
},
"properties": {
"kind": "Deployment",
"metadata.name": "rss-site"
}
},
{
"id": "WORKLOAD_INVALID_LABELS_VALUE",
"shortDescription": {
"text": "Ensure workload has valid label values"
},
"fullDescription": {
"text": "Incorrect value for key(s) under `labels` - the vales syntax is not valid so the Kubernetes engine will not accept it"
},
"helpUri": "https://hub.datree.io/built-in-rules",
"help": {
"text": "https://hub.datree.io/built-in-rules"
},
"properties": {
"kind": "Deployment",
"metadata.name": "rss-site"
}
},
{
"id": "CONTAINERS_MISSING_LIVENESSPROBE_KEY",
"shortDescription": {
"text": "Ensure each container has a configured liveness probe"
},
"fullDescription": {
"text": "Missing property object `livenessProbe` - add a properly configured livenessProbe to catch possible deadlocks"
},
"helpUri": "https://hub.datree.io/built-in-rules",
"help": {
"text": "https://hub.datree.io/built-in-rules"
},
"properties": {
"kind": "Deployment",
"metadata.name": "rss-site"
}
},
{
"id": "CONTAINERS_MISSING_IMAGE_VALUE_VERSION",
"shortDescription": {
"text": "Ensure each container image has a pinned (tag) version"
},
"fullDescription": {
"text": "Incorrect value for key `image` - specify an image version to avoid unpleasant \"version surprises\" in the future"
},
"helpUri": "https://hub.datree.io/built-in-rules",
"help": {
"text": "https://hub.datree.io/built-in-rules"
},
"properties": {
"kind": "Deployment",
"metadata.name": "rss-site"
}
}
],
"semanticVersion": "1.0.0"
}
},
"results": [
{
"ruleId": "CONTAINERS_MISSING_MEMORY_LIMIT_KEY",
"ruleIndex": 0,
"message": {
"text": "Missing property object `limits.memory` - value should be within the accepted boundaries recommended by the organization"
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "exampleFile.yaml"
},
"region": {
"startLine": 1,
"endLine": 1,
"startColumn": 2,
"endColumn": 2
}
}
}
]
},
{
"ruleId": "CONTAINERS_MISSING_MEMORY_LIMIT_KEY",
"ruleIndex": 0,
"message": {
"text": "Missing property object `limits.memory` - value should be within the accepted boundaries recommended by the organization"
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "exampleFile.yaml"
},
"region": {
"startLine": 50,
"endLine": 50,
"startColumn": 8,
"endColumn": 9
}
}
}
]
},
{
"ruleId": "WORKLOAD_INVALID_LABELS_VALUE",
"ruleIndex": 1,
"message": {
"text": "Incorrect value for key(s) under `labels` - the vales syntax is not valid so the Kubernetes engine will not accept it"
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "/Users/hadarco/.datree/k8s-demo.yaml"
}
}
}
]
},
{
"ruleId": "CONTAINERS_MISSING_LIVENESSPROBE_KEY",
"ruleIndex": 2,
"message": {
"text": "Missing property object `livenessProbe` - add a properly configured livenessProbe to catch possible deadlocks"
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "/Users/hadarco/.datree/k8s-demo.yaml"
}
}
}
]
},
{
"ruleId": "CONTAINERS_MISSING_IMAGE_VALUE_VERSION",
"ruleIndex": 3,
"message": {
"text": "Incorrect value for key `image` - specify an image version to avoid unpleasant \"version surprises\" in the future"
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "/Users/hadarco/.datree/k8s-demo.yaml"
}
}
}
]
}
]
}
]
}