@electrolux-oss/plugin-infrawallet-backend 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,471 @@
1
+ exports.seed = async knex => {
2
+ await knex('category_mappings_default').del();
3
+ await knex('category_mappings_default').insert([
4
+ {
5
+ provider: 'azure',
6
+ category: 'Analytics',
7
+ // make it compatible with sqlite
8
+ cloud_service_names: JSON.stringify(['Event Hubs', 'Log Analytics']),
9
+ },
10
+ {
11
+ provider: 'azure',
12
+ category: 'Application Integration',
13
+ cloud_service_names: JSON.stringify(['Logic Apps']),
14
+ },
15
+ {
16
+ provider: 'azure',
17
+ category: 'Compute',
18
+ cloud_service_names: JSON.stringify(['Virtual Machines', 'Azure App Service', 'Functions']),
19
+ },
20
+ {
21
+ provider: 'azure',
22
+ category: 'Containers',
23
+ cloud_service_names: JSON.stringify(['Azure Container Apps', 'Container Registry']),
24
+ },
25
+ {
26
+ provider: 'azure',
27
+ category: 'Database',
28
+ cloud_service_names: JSON.stringify([
29
+ 'Azure Cosmos DB',
30
+ 'Azure Data Factory v2',
31
+ 'Azure Database for MySQL',
32
+ 'Redis Cache',
33
+ 'SQL Database',
34
+ ]),
35
+ },
36
+ {
37
+ provider: 'azure',
38
+ category: 'Developer Tools',
39
+ cloud_service_names: JSON.stringify(['Azure DevOps', 'Notification Hubs', 'Visual Studio Subscription']),
40
+ },
41
+ {
42
+ provider: 'azure',
43
+ category: 'DevOps',
44
+ cloud_service_names: JSON.stringify(['Azure Monitor']),
45
+ },
46
+ {
47
+ provider: 'azure',
48
+ category: 'Internet of Things',
49
+ cloud_service_names: JSON.stringify(['Event Grid', 'IoT Hub']),
50
+ },
51
+ {
52
+ provider: 'azure',
53
+ category: 'Artificial Intelligence',
54
+ cloud_service_names: JSON.stringify(['Azure Cognitive Search', 'Azure Databricks', 'Cognitive Services']),
55
+ },
56
+ {
57
+ provider: 'azure',
58
+ category: 'Management & Governance',
59
+ cloud_service_names: JSON.stringify(['Network Watcher']),
60
+ },
61
+ {
62
+ provider: 'azure',
63
+ category: 'Networking',
64
+ cloud_service_names: JSON.stringify([
65
+ 'Azure DNS',
66
+ 'Azure Front Door Service',
67
+ 'Bandwidth',
68
+ 'Content Delivery Network',
69
+ 'Load Balancer',
70
+ 'NAT Gateway',
71
+ 'Network Traversal',
72
+ 'Service Bus',
73
+ 'Traffic Manager',
74
+ 'Virtual Network',
75
+ 'VPN Gateway',
76
+ ]),
77
+ },
78
+ {
79
+ provider: 'azure',
80
+ category: 'Security, Identity, & Compliance',
81
+ cloud_service_names: JSON.stringify(['Azure Firewall', 'Key Vault', 'Microsoft Defender for Cloud']),
82
+ },
83
+ {
84
+ provider: 'azure',
85
+ category: 'Storage',
86
+ cloud_service_names: JSON.stringify(['Storage']),
87
+ },
88
+ {
89
+ provider: 'azure',
90
+ category: 'Front-End Web & Mobile',
91
+ cloud_service_names: JSON.stringify(['Azure Maps']),
92
+ },
93
+ {
94
+ provider: 'aws',
95
+ category: 'Analytics',
96
+ cloud_service_names: JSON.stringify([
97
+ 'Amazon Kinesis',
98
+ 'Amazon Managed Streaming for Apache Kafka',
99
+ 'Amazon QuickSight',
100
+ 'AWS Glue',
101
+ ]),
102
+ },
103
+ {
104
+ provider: 'aws',
105
+ category: 'Application Integration',
106
+ cloud_service_names: JSON.stringify([
107
+ 'Amazon API Gateway',
108
+ 'Amazon Simple Notification Service',
109
+ 'Amazon Simple Queue Service',
110
+ 'AWS Step Functions',
111
+ ]),
112
+ },
113
+ {
114
+ provider: 'aws',
115
+ category: 'Cloud Financial Management',
116
+ cloud_service_names: JSON.stringify(['AWS Cost Explorer']),
117
+ },
118
+ {
119
+ provider: 'aws',
120
+ category: 'Compute',
121
+ cloud_service_names: JSON.stringify(['EC2 - Other', 'Amazon Elastic Compute Cloud - Compute', 'AWS Lambda']),
122
+ },
123
+ {
124
+ provider: 'aws',
125
+ category: 'Containers',
126
+ cloud_service_names: JSON.stringify([
127
+ 'Amazon Elastic Container Service for Kubernetes',
128
+ 'Amazon Elastic Container Service',
129
+ 'Amazon EC2 Container Registry (ECR)',
130
+ ]),
131
+ },
132
+ {
133
+ provider: 'aws',
134
+ category: 'Database',
135
+ cloud_service_names: JSON.stringify([
136
+ 'Amazon DynamoDB',
137
+ 'Amazon ElastiCache',
138
+ 'Amazon Relational Database Service',
139
+ 'Amazon Timestream',
140
+ 'DynamoDB Accelerator (DAX)',
141
+ ]),
142
+ },
143
+ {
144
+ provider: 'aws',
145
+ category: 'Developer Tools',
146
+ cloud_service_names: JSON.stringify(['AWS CloudShell', 'AWS CodeArtifact', 'AWS X-Ray']),
147
+ },
148
+ {
149
+ provider: 'aws',
150
+ category: 'Internet of Things',
151
+ cloud_service_names: JSON.stringify(['AWS IoT', 'AWS IoT Device Defender', 'AWS IoT Device Management']),
152
+ },
153
+ {
154
+ provider: 'aws',
155
+ category: 'Management & Governance',
156
+ cloud_service_names: JSON.stringify([
157
+ 'AmazonCloudWatch',
158
+ 'CloudWatch Events',
159
+ 'AWS CloudTrail',
160
+ 'AWS Config',
161
+ 'AWS Service Catalog',
162
+ 'AWS Systems Manager',
163
+ ]),
164
+ },
165
+ {
166
+ provider: 'aws',
167
+ category: 'Migration',
168
+ cloud_service_names: JSON.stringify(['AWS Database Migration Service', 'AWS Migration Hub Refactor Spaces']),
169
+ },
170
+ {
171
+ provider: 'aws',
172
+ category: 'Networking',
173
+ cloud_service_names: JSON.stringify([
174
+ 'Amazon Elastic Load Balancing',
175
+ 'Amazon Route 53',
176
+ 'Amazon Virtual Private Cloud',
177
+ 'AWS Global Accelerator',
178
+ ]),
179
+ },
180
+ {
181
+ provider: 'aws',
182
+ category: 'Security, Identity, & Compliance',
183
+ cloud_service_names: JSON.stringify([
184
+ 'Amazon Cognito',
185
+ 'Amazon GuardDuty',
186
+ 'Amazon Inspector',
187
+ 'Amazon Verified Permissions',
188
+ 'AWS Certificate Manager',
189
+ 'AWS Key Management Service',
190
+ 'AWS Secrets Manager',
191
+ 'AWS Security Hub',
192
+ 'AWS WAF',
193
+ ]),
194
+ },
195
+ {
196
+ provider: 'aws',
197
+ category: 'Storage',
198
+ cloud_service_names: JSON.stringify([
199
+ 'Amazon Elastic File System',
200
+ 'Amazon Glacier',
201
+ 'Amazon Simple Storage Service',
202
+ ]),
203
+ },
204
+ {
205
+ provider: 'aws',
206
+ category: 'Front-End Web & Mobile',
207
+ cloud_service_names: JSON.stringify([
208
+ 'Amazon Location Service',
209
+ 'Amazon Simple Email Service',
210
+ 'AWS Device Farm',
211
+ ]),
212
+ },
213
+ {
214
+ provider: 'gcp',
215
+ category: 'Compute',
216
+ cloud_service_names: JSON.stringify([
217
+ 'App Engine',
218
+ 'Batch',
219
+ 'Compute Engine',
220
+ 'Google Cloud VMware Engine (GCVE)',
221
+ 'VM Manager',
222
+ 'Workload Manager',
223
+ 'Cloud Run',
224
+ 'Cloud Functions',
225
+ 'Cloud Functions for Firebase',
226
+ 'Cloud Scheduler',
227
+ 'Cloud Tasks',
228
+ 'Eventarc',
229
+ 'Workflows',
230
+ ]),
231
+ },
232
+ {
233
+ provider: 'gcp',
234
+ category: 'Storage',
235
+ cloud_service_names: JSON.stringify([
236
+ 'Backup for GKE',
237
+ 'Cloud Storage',
238
+ 'Persistent Disk',
239
+ 'Cloud Filestore',
240
+ 'Cloud Storage for Firebase',
241
+ 'NetApp Volumes',
242
+ ]),
243
+ },
244
+ {
245
+ provider: 'gcp',
246
+ category: 'Database',
247
+ cloud_service_names: JSON.stringify([
248
+ 'AlloyDB',
249
+ 'Cloud Bigtable',
250
+ 'Datastore',
251
+ 'Firestore',
252
+ 'Memorystore',
253
+ 'Cloud Memorystore for Redis',
254
+ 'Cloud Spanner',
255
+ 'Cloud SQL',
256
+ ]),
257
+ },
258
+ {
259
+ provider: 'gcp',
260
+ category: 'Networking',
261
+ cloud_service_names: JSON.stringify([
262
+ 'Networking',
263
+ 'Cloud CDN',
264
+ 'Cloud DNS',
265
+ 'Cloud IDS (Cloud Intrusion Detection System)',
266
+ 'Cloud Interconnect',
267
+ 'Cloud Load Balancing',
268
+ 'Cloud NAT (Network Address Translation)',
269
+ 'Cloud NGFW',
270
+ 'Cloud NGFW Enterprise',
271
+ 'Cloud Router',
272
+ 'Cloud VPN',
273
+ 'Google Cloud Armor',
274
+ 'Google Cloud Armor Enterprise',
275
+ 'Media CDN',
276
+ 'Network Connectivity Center',
277
+ 'Network Intelligence Center',
278
+ 'Network Service Tiers',
279
+ 'Secure Web Proxy (SWP)',
280
+ 'Service Directory',
281
+ 'Spectrum Access System',
282
+ 'Telecom Network Automation',
283
+ 'Traffic Director',
284
+ 'Virtual Private Cloud',
285
+ ]),
286
+ },
287
+ {
288
+ provider: 'gcp',
289
+ category: 'Operations',
290
+ cloud_service_names: JSON.stringify([
291
+ 'Cloud Logging',
292
+ 'Cloud Error Reporting',
293
+ 'Cloud Monitoring',
294
+ 'Cloud Profiler',
295
+ 'Cloud Trace',
296
+ 'Google Cloud Backup and DR',
297
+ ]),
298
+ },
299
+ {
300
+ provider: 'gcp',
301
+ category: 'Developer Tools',
302
+ cloud_service_names: JSON.stringify([
303
+ 'Artifact Registry',
304
+ 'Assured Open Source Software (AOSS)',
305
+ 'Cloud Build',
306
+ 'Cloud Deploy',
307
+ 'Cloud Source Repositories',
308
+ 'Cloud Workstations',
309
+ 'Container Registry',
310
+ 'Firebase Test Lab',
311
+ 'Secure Source Manager',
312
+ 'Test Lab',
313
+ ]),
314
+ },
315
+ {
316
+ provider: 'gcp',
317
+ category: 'Analytics',
318
+ cloud_service_names: JSON.stringify([
319
+ 'BigQuery',
320
+ 'BigQuery Storage API',
321
+ 'Cloud Composer',
322
+ 'Cloud Data Fusion',
323
+ 'Cloud Life Sciences',
324
+ 'Data Catalog',
325
+ 'Dataform',
326
+ 'Dataplex',
327
+ 'Dataflow',
328
+ 'Dataproc',
329
+ 'Dataproc Metastore',
330
+ 'Datastream',
331
+ 'Google Earth Engine',
332
+ 'Looker (Google Cloud core)',
333
+ 'Looker Studio',
334
+ 'Looker Studio Pro',
335
+ 'Cloud Pub/Sub',
336
+ ]),
337
+ },
338
+ {
339
+ provider: 'gcp',
340
+ category: 'Artificial Intelligence',
341
+ cloud_service_names: JSON.stringify([
342
+ 'Agent Assist',
343
+ 'Anti Money Laundering AI (AML AI)',
344
+ 'Contact Center AI (CCAI)',
345
+ 'Contact Center AI Insights',
346
+ 'Contact Center AI (CCAI) Platform',
347
+ 'Dialogflow Essentials',
348
+ 'Dialogflow Customer Experience Edition',
349
+ 'Cloud Dialogflow API',
350
+ 'Document AI',
351
+ 'Document Workbench',
352
+ 'Human-in-the-Loop AI',
353
+ 'Document AI Warehouse',
354
+ 'Talent Solution',
355
+ 'Translation Hub',
356
+ 'Vertex AI Search for Industry',
357
+ 'Vertex AI Search for Retail',
358
+ 'Recommendations AI',
359
+ 'Recommendation Engine API',
360
+ 'Retail Search',
361
+ 'Cloud Natural Language API',
362
+ 'Cloud Translation API',
363
+ 'Cloud Vision',
364
+ 'Cloud Vision',
365
+ 'Media Translation API',
366
+ 'Speaker ID',
367
+ 'Speech On Device',
368
+ 'Speech-to-Text',
369
+ 'Cloud Text-to-Speech API',
370
+ 'Timeseries Insights API',
371
+ 'Video Intelligence API',
372
+ 'Visual Inspection AI',
373
+ 'AI Platform Data Labeling',
374
+ 'AI Platform Training and Prediction',
375
+ 'AutoML',
376
+ 'Vertex AI Platform',
377
+ 'Vertex AI Neural Architecture Search (NAS)',
378
+ 'Vertex AI Vision',
379
+ 'Gemini for Google Cloud',
380
+ 'Vertex AI API',
381
+ 'Vertex AI Conversation',
382
+ 'Vertex AI Model Garden',
383
+ 'Vertex AI Search',
384
+ 'Vertex AI Studio',
385
+ 'Vertex AI',
386
+ ]),
387
+ },
388
+ {
389
+ provider: 'gcp',
390
+ category: 'Application Integration',
391
+ cloud_service_names: JSON.stringify([
392
+ 'Apigee',
393
+ 'Apigee Edge',
394
+ 'API Gateway',
395
+ 'Application Integration',
396
+ 'Cloud Endpoints',
397
+ 'Integration Connectors',
398
+ ]),
399
+ },
400
+ {
401
+ provider: 'gcp',
402
+ category: 'Containers',
403
+ cloud_service_names: JSON.stringify([
404
+ 'Kubernetes Engine',
405
+ 'Google Kubernetes Engine',
406
+ 'GKE Enterprise',
407
+ 'Config Sync',
408
+ 'Policy Controller',
409
+ 'Identity Service',
410
+ 'GKE Enterprise Integration with Google Cloud Platform Services',
411
+ 'GKE Enterprise Premium Software',
412
+ 'Service Mesh',
413
+ 'GKE Autopilot',
414
+ 'Connect',
415
+ 'GKE Hub',
416
+ ]),
417
+ },
418
+ {
419
+ provider: 'gcp',
420
+ category: 'Security, Identity, & Compliance',
421
+ cloud_service_names: JSON.stringify([
422
+ 'Access Transparency',
423
+ 'Assured Workloads',
424
+ 'Binary Authorization',
425
+ 'Certificate Authority Service',
426
+ 'Certificate Manager',
427
+ 'Cloud Asset Inventory',
428
+ 'Cloud External Key Manager',
429
+ 'Cloud EKM',
430
+ 'Cloud HSM',
431
+ 'Cloud Key Management Service (KMS)',
432
+ 'Event Threat Detection',
433
+ 'Key Access Justifications (KAJ)',
434
+ 'Risk Manager',
435
+ 'Security Command Center',
436
+ 'Sensitive Data Protection',
437
+ 'VPC Service Controls',
438
+ 'Secret Manager',
439
+ 'Web Security Scanner',
440
+ 'Access Approval',
441
+ 'Access Context Manager',
442
+ 'Chrome Enterprise Premium',
443
+ 'Cloud Identity Services',
444
+ 'Firebase App Check',
445
+ 'Firebase Authentication',
446
+ 'Google Cloud Identity-Aware Proxy',
447
+ 'Identity & Access Management (IAM)',
448
+ 'Identity Platform',
449
+ 'Managed Service for Microsoft Active Directory (AD)',
450
+ 'Organization Policy',
451
+ 'Resource Manager API',
452
+ ]),
453
+ },
454
+ {
455
+ provider: 'gcp',
456
+ category: 'Internet of Things',
457
+ cloud_service_names: JSON.stringify(['Iot Core']),
458
+ },
459
+ {
460
+ provider: 'gcp',
461
+ category: 'Developer Tools',
462
+ cloud_service_names: JSON.stringify([
463
+ 'Google Cloud App',
464
+ 'Cloud Deployment Manager',
465
+ 'Cloud Shell',
466
+ 'Recommenders',
467
+ 'Service Infrastructure',
468
+ ]),
469
+ },
470
+ ]);
471
+ };
@@ -1,71 +0,0 @@
1
- // this default mapping is taken from the Google Cloud Platform Services Summary page
2
- // https://cloud.google.com/terms/services
3
- exports.seed = async knex => {
4
- await knex('category_mappings').insert([
5
- {
6
- provider: 'gcp',
7
- category: 'Compute',
8
- cloud_service_names: JSON.stringify(['App Engine', 'Batch', 'Compute Engine', 'Google Cloud VMware Engine (GCVE)', 'VM Manager', 'Workload Manager', 'Cloud Run', 'Cloud Functions', 'Cloud Functions for Firebase', 'Cloud Scheduler', 'Cloud Tasks', 'Eventarc', 'Workflows']),
9
- },
10
- {
11
- provider: 'gcp',
12
- category: 'Storage',
13
- cloud_service_names: JSON.stringify(['Backup for GKE', 'Cloud Storage', 'Persistent Disk', 'Cloud Filestore', 'Cloud Storage for Firebase', 'NetApp Volumes']),
14
- },
15
- {
16
- provider: 'gcp',
17
- category: 'Database',
18
- cloud_service_names: JSON.stringify(['AlloyDB', 'Cloud Bigtable', 'Datastore', 'Firestore', 'Memorystore', 'Cloud Memorystore for Redis', 'Cloud Spanner', 'Cloud SQL']),
19
- },
20
- {
21
- provider: 'gcp',
22
- category: 'Networking',
23
- cloud_service_names: JSON.stringify(['Networking', 'Cloud CDN', 'Cloud DNS', 'Cloud IDS (Cloud Intrusion Detection System)', 'Cloud Interconnect', 'Cloud Load Balancing', 'Cloud NAT (Network Address Translation)', 'Cloud NGFW', 'Cloud NGFW Enterprise', 'Cloud Router', 'Cloud VPN', 'Google Cloud Armor', 'Google Cloud Armor Enterprise', 'Media CDN', 'Network Connectivity Center', 'Network Intelligence Center', 'Network Service Tiers', 'Secure Web Proxy (SWP)', 'Service Directory', 'Spectrum Access System', 'Telecom Network Automation', 'Traffic Director', 'Virtual Private Cloud']),
24
- },
25
- {
26
- provider: 'gcp',
27
- category: 'Operations',
28
- cloud_service_names: JSON.stringify(['Cloud Logging', 'Cloud Error Reporting', 'Cloud Monitoring', 'Cloud Profiler', 'Cloud Trace', 'Google Cloud Backup and DR']),
29
- },
30
- {
31
- provider: 'gcp',
32
- category: 'Developer Tools',
33
- cloud_service_names: JSON.stringify(['Artifact Registry', 'Assured Open Source Software (AOSS)', 'Cloud Build', 'Cloud Deploy', 'Cloud Source Repositories', 'Cloud Workstations', 'Container Registry', 'Firebase Test Lab', 'Secure Source Manager', 'Test Lab']),
34
- },
35
- {
36
- provider: 'gcp',
37
- category: 'Analytics',
38
- cloud_service_names: JSON.stringify(['BigQuery', 'BigQuery Storage API', 'Cloud Composer', 'Cloud Data Fusion', 'Cloud Life Sciences', 'Data Catalog', 'Dataform', 'Dataplex', 'Dataflow', 'Dataproc', 'Dataproc Metastore', 'Datastream', 'Google Earth Engine', 'Looker (Google Cloud core)', 'Looker Studio', 'Looker Studio Pro', 'Cloud Pub/Sub']),
39
- },
40
- {
41
- provider: 'gcp',
42
- category: 'Artificial Intelligence',
43
- cloud_service_names: JSON.stringify(['Agent Assist', 'Anti Money Laundering AI (AML AI)', 'Contact Center AI (CCAI)', 'Contact Center AI Insights', 'Contact Center AI (CCAI) Platform', 'Dialogflow Essentials', 'Dialogflow Customer Experience Edition', 'Cloud Dialogflow API', 'Document AI', 'Document Workbench', 'Human-in-the-Loop AI', 'Document AI Warehouse', 'Talent Solution', 'Translation Hub', 'Vertex AI Search for Industry', 'Vertex AI Search for Retail', 'Recommendations AI', 'Recommendation Engine API', 'Retail Search', 'Cloud Natural Language API', 'Cloud Translation API', 'Cloud Vision', 'Cloud Vision', 'Media Translation API', 'Speaker ID', 'Speech On Device', 'Speech-to-Text', 'Cloud Text-to-Speech API', 'Timeseries Insights API', 'Video Intelligence API', 'Visual Inspection AI', 'AI Platform Data Labeling', 'AI Platform Training and Prediction', 'AutoML', 'Vertex AI Platform', 'Vertex AI Neural Architecture Search (NAS)', 'Vertex AI Vision', 'Gemini for Google Cloud', 'Vertex AI API', 'Vertex AI Conversation', 'Vertex AI Model Garden', 'Vertex AI Search', 'Vertex AI Studio', 'Vertex AI']),
44
- },
45
- {
46
- provider: 'gcp',
47
- category: 'Application Integration',
48
- cloud_service_names: JSON.stringify(['Apigee', 'Apigee Edge', 'API Gateway', 'Application Integration', 'Cloud Endpoints', 'Integration Connectors']),
49
- },
50
- {
51
- provider: 'gcp',
52
- category: 'Containers',
53
- cloud_service_names: JSON.stringify(['Kubernetes Engine', 'Google Kubernetes Engine', 'GKE Enterprise', 'Config Sync', 'Policy Controller', 'Identity Service', 'GKE Enterprise Integration with Google Cloud Platform Services', 'GKE Enterprise Premium Software', 'Service Mesh', 'GKE Autopilot', 'Connect', 'GKE Hub']),
54
- },
55
- {
56
- provider: 'gcp',
57
- category: 'Security, Identity, & Compliance',
58
- cloud_service_names: JSON.stringify(['Access Transparency', 'Assured Workloads', 'Binary Authorization', 'Certificate Authority Service', 'Certificate Manager', 'Cloud Asset Inventory', 'Cloud External Key Manager', 'Cloud EKM','Cloud HSM', 'Cloud Key Management Service (KMS)', 'Event Threat Detection', 'Key Access Justifications (KAJ)', 'Risk Manager', 'Security Command Center', 'Sensitive Data Protection', 'VPC Service Controls', 'Secret Manager', 'Web Security Scanner', 'Access Approval', 'Access Context Manager', 'Chrome Enterprise Premium', 'Cloud Identity Services', 'Firebase App Check', 'Firebase Authentication', 'Google Cloud Identity-Aware Proxy', 'Identity & Access Management (IAM)', 'Identity Platform', 'Managed Service for Microsoft Active Directory (AD)', 'Organization Policy', 'Resource Manager API']),
59
- },
60
- {
61
- provider: 'gcp',
62
- category: 'Internet of Things',
63
- cloud_service_names: JSON.stringify(['Iot Core']),
64
- },
65
- {
66
- provider: 'gcp',
67
- category: 'Developer Tools',
68
- cloud_service_names: JSON.stringify(['Google Cloud App', 'Cloud Deployment Manager', 'Cloud Shell', 'Recommenders', 'Service Infrastructure']),
69
- },
70
- ]);
71
- };