aboutsummaryrefslogtreecommitdiffstats
path: root/bin/common/datasource.json
blob: 060b18e2d6b91f1cadeccaaa64d7d6cad6f59e51 (plain)
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
{
  "srtsetting" : [
    {
      "name" : "SRTOOL_LOGO",
      "helptext" : "The SRTool logo",
      "value" : "Yocto Project,/static/img/logo.png,/"
    },
    {
      "_comment_": "This is an out-of-box courtesy to provide some CVEs for triage in newly initialized systems",
      "name" : "CVE_INIT_NEW_DELTA",
      "helptext" : "CVEs found during the initialization phase become 'NEW' instead of 'HISTORICAL' if created within this number of days before today",
      "value" : "30"
    }
  ],

  "datasource" : [
    {
      "key" : "0000-common-schema",
      "data" : "database_schema",
      "source" : "common",
      "name" : "SRT Schema",
      "description" : "SRT database schema for command line tools",
      "cve_filter" : "",
      "init" : "bin/common/srtool_common.py --generate-schema-header",
      "update" : "bin/common/srtool_common.py --generate-schema-header",
      "lookup" : "",
      "update_frequency" : "6",
      "update_time" : "{}"
    },
    {
      "key" : "0001-common-keywords",
      "data" : "package_keywords",
      "source" : "common",
      "name" : "Packages",
      "description" : "Table of package keyword filters",
      "cve_filter" : "",
      "init" : "bin/common/srtool_common.py --init-package-keywords",
      "update" : "",
      "lookup" : "",
      "update_frequency" : "3",
      "_comment_" : "Update on Saturdays at 2:00 am",
      "update_time" : "{\"weekday\":\"5\",\"hour\":\"2\"}"
    },
    {
      "key" : "0001-common-notify",
      "data" : "notify_categories",
      "source" : "common",
      "name" : "Notifications",
      "description" : "Table of notification categories",
      "cve_filter" : "",
      "init" : "bin/common/srtool_common.py --init-notify-categories",
      "update" : "",
      "lookup" : "",
      "update_frequency" : "3",
      "_comment_" : "Update on Saturdays at 2:00 am",
      "update_time" : "{\"weekday\":\"5\",\"hour\":\"2\"}"
    },

    {
      "key" : "0900-common-local",
      "data" : "local_cve",
      "source" : "common",
      "name" : "Local",
      "description" : "Local CVE",
      "cve_filter" : "",
      "init" : "",
      "update" : "",
      "lookup" : "",
      "update_frequency" : "5",
      "update_time" : ""
    },
    {
      "key" : "0910-common-weekly",
      "data" : "backup_weekly",
      "source" : "common",
      "name" : "Weekly Backup",
      "description" : "Weekly archive database backup",
      "cve_filter" : "",
      "init" : "",
      "update" : "bin/common/srtool_backup.py --backup-db",
      "lookup" : "",
      "update_frequency" : "3",
      "_comment_" : "Update on Saturdays at 2:00 am",
      "update_time" : "{\"weekday\":\"5\",\"hour\":\"2\"}"
    },
    {
      "key" : "0911-common-daily",
      "data" : "backup_daily",
      "source" : "common",
      "name" : "Daily Backup",
      "description" : "Daily archive database backup",
      "cve_filter" : "",
      "init" : "",
      "update" : "bin/common/srtool_backup.py --backup-db-daily",
      "lookup" : "",
      "update_frequency" : "2",
      "_comment_" : "Update daily at 7:00 am",
      "update_time" : "{\"hour\":\"7\"}"
    },

    {
      "key" : "0921-common-score",
      "data" : "score_cves",
      "source" : "common",
      "name" : "Score",
      "description" : "Score CVEs",
      "cve_filter" : "",
      "init" : "bin/common/srtool_common.py --score-new-cves NEW",
      "update" : "bin/common/srtool_common.py --score-new-cves NEW",
      "lookup" : "",
      "update_frequency" : "0",
      "_comment_" : "Update every 10 minutes",
      "update_time" : "{\"minutes\":\"10\"}"
    }
  ],

  "permissions" : [
    {
      "content_type_id" : "90",
      "codename" : "Reader",
      "name" : "User that can read the content (Field, TechPubs)"
    },
    {
      "content_type_id" : "90",
      "codename" : "Contributor",
      "name" : "Reader that can can add notes and attachements (Engineers, Test, Managers)"
    },
    {
      "content_type_id" : "90",
      "codename" : "Creator",
      "name" : "Contributor that can create Investiations and defect records"
    },
    {
      "content_type_id" : "90",
      "codename" : "Admin",
      "name" : "Creator that can manage users, data sources"
    }
  ],

  "groups" : [
    {
      "name" : "Reader"
    },
    {
      "name" : "Contributor"
    },
    {
      "name" : "Creator"
    },
    {
      "name" : "Admin"
    }
  ],

  "group_permissions" : [
    {
      "group" : "Reader",
      "permission" : "Reader"
    },
    {
      "group" : "Contributor",
      "permission" : "Reader"
    },
    {
      "group" : "Contributor",
      "permission" : "Contributor"
    },
    {
      "group" : "Creator",
      "permission" : "Reader"
    },
    {
      "group" : "Creator",
      "permission" : "Contributor"
    },
    {
      "group" : "Creator",
      "permission" : "Creator"
    },
    {
      "group" : "Admin",
      "permission" : "Reader"
    },
    {
      "group" : "Admin",
      "permission" : "Contributor"
    },
    {
      "group" : "Admin",
      "permission" : "Creator"
    },
    {
      "group" : "Admin",
      "permission" : "Admin"
    }
  ],

  "srtuser" : [
    {
      "name" : "Guest",
      "email" : "",
      "role" : "SRTool Guest",
      "is_staff" : "True"
    },
    {
      "name" : "SRTool",
      "email" : "",
      "role" : "SRTool automation scripts",
      "is_staff" : "True"
    },
    {
      "name" : "All",
      "email" : "",
      "role" : "SRTool registered users (not 'Guest')",
      "is_staff" : "True"
    }
  ],

  "srtuser_groups" : [
    {
      "srtuser" : "Guest",
      "group" : "Reader"
    },
    {
      "srtuser" : "SRTool",
      "group" : "Admin"
    },
    {
      "srtuser" : "All",
      "group" : "Reader"
    }
  ]

}