@itentialopensource/adapter-zscaler 0.7.0 → 0.8.0

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.
Files changed (42) hide show
  1. package/CALLS.md +342 -0
  2. package/CHANGELOG.md +3 -112
  3. package/CONTRIBUTING.md +1 -160
  4. package/ENHANCE.md +2 -2
  5. package/README.md +32 -23
  6. package/adapter.js +157 -329
  7. package/adapterBase.js +549 -879
  8. package/changelogs/CHANGELOG.md +118 -0
  9. package/metadata.json +49 -0
  10. package/package.json +24 -25
  11. package/pronghorn.json +981 -642
  12. package/propertiesSchema.json +431 -31
  13. package/refs?service=git-upload-pack +0 -0
  14. package/report/adapter-openapi.json +1828 -0
  15. package/report/adapter-openapi.yaml +1462 -0
  16. package/report/adapterInfo.json +8 -8
  17. package/report/updateReport1691508819418.json +120 -0
  18. package/report/updateReport1692203278243.json +120 -0
  19. package/report/updateReport1694468959859.json +120 -0
  20. package/report/updateReport1698422816279.json +120 -0
  21. package/sampleProperties.json +63 -2
  22. package/test/integration/adapterTestBasicGet.js +2 -4
  23. package/test/integration/adapterTestConnectivity.js +91 -42
  24. package/test/integration/adapterTestIntegration.js +130 -2
  25. package/test/unit/adapterBaseTestUnit.js +388 -313
  26. package/test/unit/adapterTestUnit.js +338 -112
  27. package/utils/adapterInfo.js +1 -1
  28. package/utils/addAuth.js +1 -1
  29. package/utils/artifactize.js +1 -1
  30. package/utils/checkMigrate.js +1 -1
  31. package/utils/entitiesToDB.js +2 -2
  32. package/utils/findPath.js +1 -1
  33. package/utils/methodDocumentor.js +273 -0
  34. package/utils/modify.js +13 -15
  35. package/utils/packModificationScript.js +1 -1
  36. package/utils/pre-commit.sh +2 -0
  37. package/utils/taskMover.js +309 -0
  38. package/utils/tbScript.js +89 -34
  39. package/utils/tbUtils.js +41 -21
  40. package/utils/testRunner.js +1 -1
  41. package/utils/troubleshootingAdapter.js +9 -6
  42. package/workflows/README.md +0 -3
package/CALLS.md CHANGED
@@ -165,5 +165,347 @@ Specific adapter calls are built based on the API of the Adapter for Zscaler. Th
165
165
  <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Path</span></th>
166
166
  <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Workflow?</span></th>
167
167
  </tr>
168
+ <tr>
169
+ <td style="padding:15px">getAuthenticatedSession(callback)</td>
170
+ <td style="padding:15px">Checks if there is an authenticated session</td>
171
+ <td style="padding:15px">{base_path}/{version}/authenticatedSession?{query}</td>
172
+ <td style="padding:15px">Yes</td>
173
+ </tr>
174
+ <tr>
175
+ <td style="padding:15px">postAuthenticatedSession(credentials, callback)</td>
176
+ <td style="padding:15px">Creates an authenticated session</td>
177
+ <td style="padding:15px">{base_path}/{version}/authenticatedSession?{query}</td>
178
+ <td style="padding:15px">Yes</td>
179
+ </tr>
180
+ <tr>
181
+ <td style="padding:15px">deleteAuthenticatedSession(callback)</td>
182
+ <td style="padding:15px">Ends an authenticated session</td>
183
+ <td style="padding:15px">{base_path}/{version}/authenticatedSession?{query}</td>
184
+ <td style="padding:15px">Yes</td>
185
+ </tr>
186
+ <tr>
187
+ <td style="padding:15px">getAuditReport(callback)</td>
188
+ <td style="padding:15px">This endpoint is deprecated, use GET /auditlogEntryReport</td>
189
+ <td style="padding:15px">{base_path}/{version}/auditReport?{query}</td>
190
+ <td style="padding:15px">Yes</td>
191
+ </tr>
192
+ <tr>
193
+ <td style="padding:15px">postAuditReport(callback)</td>
194
+ <td style="padding:15px">This endpoint is deprecated, use POST /auditlogEntryReport</td>
195
+ <td style="padding:15px">{base_path}/{version}/auditReport?{query}</td>
196
+ <td style="padding:15px">Yes</td>
197
+ </tr>
198
+ <tr>
199
+ <td style="padding:15px">deleteAuditReport(callback)</td>
200
+ <td style="padding:15px">This endpoint is deprecated, use DELETE /auditlogEntryReport</td>
201
+ <td style="padding:15px">{base_path}/{version}/auditReport?{query}</td>
202
+ <td style="padding:15px">Yes</td>
203
+ </tr>
204
+ <tr>
205
+ <td style="padding:15px">getAuditReportdownload(callback)</td>
206
+ <td style="padding:15px">This endpoint is deprecated, use GET /auditlogEntryReport/download</td>
207
+ <td style="padding:15px">{base_path}/{version}/auditReport/download?{query}</td>
208
+ <td style="padding:15px">Yes</td>
209
+ </tr>
210
+ <tr>
211
+ <td style="padding:15px">getAuditlogEntryReport(callback)</td>
212
+ <td style="padding:15px">Gets the status of a request for an audit log report</td>
213
+ <td style="padding:15px">{base_path}/{version}/auditlogEntryReport?{query}</td>
214
+ <td style="padding:15px">Yes</td>
215
+ </tr>
216
+ <tr>
217
+ <td style="padding:15px">postAuditlogEntryReport(request, callback)</td>
218
+ <td style="padding:15px">Creates an audit log report for the specified time period and saves it as a CSV file</td>
219
+ <td style="padding:15px">{base_path}/{version}/auditlogEntryReport?{query}</td>
220
+ <td style="padding:15px">Yes</td>
221
+ </tr>
222
+ <tr>
223
+ <td style="padding:15px">deleteAuditlogEntryReport(callback)</td>
224
+ <td style="padding:15px">Cancels the request to create an audit log report</td>
225
+ <td style="padding:15px">{base_path}/{version}/auditlogEntryReport?{query}</td>
226
+ <td style="padding:15px">Yes</td>
227
+ </tr>
228
+ <tr>
229
+ <td style="padding:15px">getAuditlogEntryReportdownload(callback)</td>
230
+ <td style="padding:15px">Downloads the most recently created audit log report</td>
231
+ <td style="padding:15px">{base_path}/{version}/auditlogEntryReport/download?{query}</td>
232
+ <td style="padding:15px">Yes</td>
233
+ </tr>
234
+ <tr>
235
+ <td style="padding:15px">getDepartments(callback)</td>
236
+ <td style="padding:15px">Gets a list of departments</td>
237
+ <td style="padding:15px">{base_path}/{version}/departments?{query}</td>
238
+ <td style="padding:15px">Yes</td>
239
+ </tr>
240
+ <tr>
241
+ <td style="padding:15px">getDepartmentsid(id, callback)</td>
242
+ <td style="padding:15px">Gets the department for the specified ID</td>
243
+ <td style="padding:15px">{base_path}/{version}/departments/{pathv1}?{query}</td>
244
+ <td style="padding:15px">Yes</td>
245
+ </tr>
246
+ <tr>
247
+ <td style="padding:15px">getGroups(search, page, pageSize, callback)</td>
248
+ <td style="padding:15px">Gets a list of groups</td>
249
+ <td style="padding:15px">{base_path}/{version}/groups?{query}</td>
250
+ <td style="padding:15px">Yes</td>
251
+ </tr>
252
+ <tr>
253
+ <td style="padding:15px">getGroupsgroupId(groupId, callback)</td>
254
+ <td style="padding:15px">Gets the group for the specified ID</td>
255
+ <td style="padding:15px">{base_path}/{version}/groups/{pathv1}?{query}</td>
256
+ <td style="padding:15px">Yes</td>
257
+ </tr>
258
+ <tr>
259
+ <td style="padding:15px">getUsers(name, dept, group, page, pageSize, callback)</td>
260
+ <td style="padding:15px">Gets a list of all users and allows user filtering by name, department, or group</td>
261
+ <td style="padding:15px">{base_path}/{version}/users?{query}</td>
262
+ <td style="padding:15px">Yes</td>
263
+ </tr>
264
+ <tr>
265
+ <td style="padding:15px">postUsers(user, callback)</td>
266
+ <td style="padding:15px">Adds a new user</td>
267
+ <td style="padding:15px">{base_path}/{version}/users?{query}</td>
268
+ <td style="padding:15px">Yes</td>
269
+ </tr>
270
+ <tr>
271
+ <td style="padding:15px">postUsersbulkDelete(userIds, callback)</td>
272
+ <td style="padding:15px">Bulk delete users up to a maximum of 500 users per request</td>
273
+ <td style="padding:15px">{base_path}/{version}/users/bulkDelete?{query}</td>
274
+ <td style="padding:15px">Yes</td>
275
+ </tr>
276
+ <tr>
277
+ <td style="padding:15px">getUsersuserId(userId, callback)</td>
278
+ <td style="padding:15px">Gets the user information for the specified ID</td>
279
+ <td style="padding:15px">{base_path}/{version}/users/{pathv1}?{query}</td>
280
+ <td style="padding:15px">Yes</td>
281
+ </tr>
282
+ <tr>
283
+ <td style="padding:15px">putUsersuserId(userId, user, callback)</td>
284
+ <td style="padding:15px">Updates the user information for the specified ID</td>
285
+ <td style="padding:15px">{base_path}/{version}/users/{pathv1}?{query}</td>
286
+ <td style="padding:15px">Yes</td>
287
+ </tr>
288
+ <tr>
289
+ <td style="padding:15px">deleteUsersuserId(userId, callback)</td>
290
+ <td style="padding:15px">Deletes the user for the specified ID</td>
291
+ <td style="padding:15px">{base_path}/{version}/users/{pathv1}?{query}</td>
292
+ <td style="padding:15px">Yes</td>
293
+ </tr>
294
+ <tr>
295
+ <td style="padding:15px">getSecurity(callback)</td>
296
+ <td style="padding:15px">Gets a list of white-listed URLs</td>
297
+ <td style="padding:15px">{base_path}/{version}/security?{query}</td>
298
+ <td style="padding:15px">Yes</td>
299
+ </tr>
300
+ <tr>
301
+ <td style="padding:15px">putSecurity(policy, callback)</td>
302
+ <td style="padding:15px">Updates the list of white-listed URLs</td>
303
+ <td style="padding:15px">{base_path}/{version}/security?{query}</td>
304
+ <td style="padding:15px">Yes</td>
305
+ </tr>
306
+ <tr>
307
+ <td style="padding:15px">getSecurityadvanced(callback)</td>
308
+ <td style="padding:15px">Gets a list of black-listed URLs</td>
309
+ <td style="padding:15px">{base_path}/{version}/security/advanced?{query}</td>
310
+ <td style="padding:15px">Yes</td>
311
+ </tr>
312
+ <tr>
313
+ <td style="padding:15px">putSecurityadvanced(advSettings, callback)</td>
314
+ <td style="padding:15px">Updates the list of black-listed URLs</td>
315
+ <td style="padding:15px">{base_path}/{version}/security/advanced?{query}</td>
316
+ <td style="padding:15px">Yes</td>
317
+ </tr>
318
+ <tr>
319
+ <td style="padding:15px">postSecurityadvancedblacklistUrls(action, callback)</td>
320
+ <td style="padding:15px">Adds a URL to or removes a URL from the black list</td>
321
+ <td style="padding:15px">{base_path}/{version}/security/advanced/blacklistUrls?{query}</td>
322
+ <td style="padding:15px">Yes</td>
323
+ </tr>
324
+ <tr>
325
+ <td style="padding:15px">deleteSslSettingscertchain(callback)</td>
326
+ <td style="padding:15px">Deletes the intermediate certificate chain</td>
327
+ <td style="padding:15px">{base_path}/{version}/sslSettings/certchain?{query}</td>
328
+ <td style="padding:15px">Yes</td>
329
+ </tr>
330
+ <tr>
331
+ <td style="padding:15px">getSslSettingsdownloadcsr(callback)</td>
332
+ <td style="padding:15px">Downloads a Certificate Signing Request (CSR)</td>
333
+ <td style="padding:15px">{base_path}/{version}/sslSettings/downloadcsr?{query}</td>
334
+ <td style="padding:15px">Yes</td>
335
+ </tr>
336
+ <tr>
337
+ <td style="padding:15px">postSslSettingsgeneratecsr(cert, callback)</td>
338
+ <td style="padding:15px">Generates a Certificate Signing Request (CSR)</td>
339
+ <td style="padding:15px">{base_path}/{version}/sslSettings/generatecsr?{query}</td>
340
+ <td style="padding:15px">Yes</td>
341
+ </tr>
342
+ <tr>
343
+ <td style="padding:15px">getSslSettingsshowcert(callback)</td>
344
+ <td style="padding:15px">Shows information about the signed intermediate root certificate</td>
345
+ <td style="padding:15px">{base_path}/{version}/sslSettings/showcert?{query}</td>
346
+ <td style="padding:15px">Yes</td>
347
+ </tr>
348
+ <tr>
349
+ <td style="padding:15px">postSslSettingsuploadcerttext(fileInputStream, callback)</td>
350
+ <td style="padding:15px">Uploads a signed intermediate root certificate for clients that use iframe-based uploads whose content type is text/plain</td>
351
+ <td style="padding:15px">{base_path}/{version}/sslSettings/uploadcert/text?{query}</td>
352
+ <td style="padding:15px">Yes</td>
353
+ </tr>
354
+ <tr>
355
+ <td style="padding:15px">postSslSettingsuploadcertchaintext(fileInputStream, callback)</td>
356
+ <td style="padding:15px">Uploads the Intermediate Certificate Chain (PEM) for clients that use iframe-based uploads whose content type is text/plain</td>
357
+ <td style="padding:15px">{base_path}/{version}/sslSettings/uploadcertchain/text?{query}</td>
358
+ <td style="padding:15px">Yes</td>
359
+ </tr>
360
+ <tr>
361
+ <td style="padding:15px">getUrlCategories(customOnly, callback)</td>
362
+ <td style="padding:15px">Gets information about all or custom URL categories</td>
363
+ <td style="padding:15px">{base_path}/{version}/urlCategories?{query}</td>
364
+ <td style="padding:15px">Yes</td>
365
+ </tr>
366
+ <tr>
367
+ <td style="padding:15px">postUrlCategories(customCategory, callback)</td>
368
+ <td style="padding:15px">Adds a new custom URL category</td>
369
+ <td style="padding:15px">{base_path}/{version}/urlCategories?{query}</td>
370
+ <td style="padding:15px">Yes</td>
371
+ </tr>
372
+ <tr>
373
+ <td style="padding:15px">getUrlCategorieslite(callback)</td>
374
+ <td style="padding:15px">Gets a lightweight key-value list of all or custom URL categories</td>
375
+ <td style="padding:15px">{base_path}/{version}/urlCategories/lite?{query}</td>
376
+ <td style="padding:15px">Yes</td>
377
+ </tr>
378
+ <tr>
379
+ <td style="padding:15px">getUrlCategoriesurlQuota(callback)</td>
380
+ <td style="padding:15px">Gets the URL quota information for your organization</td>
381
+ <td style="padding:15px">{base_path}/{version}/urlCategories/urlQuota?{query}</td>
382
+ <td style="padding:15px">Yes</td>
383
+ </tr>
384
+ <tr>
385
+ <td style="padding:15px">getUrlCategoriescategoryId(categoryId, callback)</td>
386
+ <td style="padding:15px">Gets the URL category information for the specified ID</td>
387
+ <td style="padding:15px">{base_path}/{version}/urlCategories/{pathv1}?{query}</td>
388
+ <td style="padding:15px">Yes</td>
389
+ </tr>
390
+ <tr>
391
+ <td style="padding:15px">putUrlCategoriescategoryId(categoryId, action, customCategory, callback)</td>
392
+ <td style="padding:15px">Updates the URL category for the specified ID</td>
393
+ <td style="padding:15px">{base_path}/{version}/urlCategories/{pathv1}?{query}</td>
394
+ <td style="padding:15px">Yes</td>
395
+ </tr>
396
+ <tr>
397
+ <td style="padding:15px">deleteUrlCategoriescategoryId(categoryId, callback)</td>
398
+ <td style="padding:15px">Deletes the custom URL category for the specified ID</td>
399
+ <td style="padding:15px">{base_path}/{version}/urlCategories/{pathv1}?{query}</td>
400
+ <td style="padding:15px">Yes</td>
401
+ </tr>
402
+ <tr>
403
+ <td style="padding:15px">postUrlLookup(urls, callback)</td>
404
+ <td style="padding:15px">Look up the categorization of the given set of URLs, e.g., ['abc.com', 'xyz.com']</td>
405
+ <td style="padding:15px">{base_path}/{version}/urlLookup?{query}</td>
406
+ <td style="padding:15px">Yes</td>
407
+ </tr>
408
+ <tr>
409
+ <td style="padding:15px">getVpnCredentials(search, type, includeOnlyWithoutLocation, locationId, managedBy, page, pageSize, callback)</td>
410
+ <td style="padding:15px">Gets VPN credentials that can be associated to locations</td>
411
+ <td style="padding:15px">{base_path}/{version}/vpnCredentials?{query}</td>
412
+ <td style="padding:15px">Yes</td>
413
+ </tr>
414
+ <tr>
415
+ <td style="padding:15px">postVpnCredentials(vpnCred, callback)</td>
416
+ <td style="padding:15px">Adds VPN credentials that can be associated to locations</td>
417
+ <td style="padding:15px">{base_path}/{version}/vpnCredentials?{query}</td>
418
+ <td style="padding:15px">Yes</td>
419
+ </tr>
420
+ <tr>
421
+ <td style="padding:15px">postVpnCredentialsbulkDelete(ids, callback)</td>
422
+ <td style="padding:15px">Bulk delete VPN credentials up to a maximum of 100 credentials per request</td>
423
+ <td style="padding:15px">{base_path}/{version}/vpnCredentials/bulkDelete?{query}</td>
424
+ <td style="padding:15px">Yes</td>
425
+ </tr>
426
+ <tr>
427
+ <td style="padding:15px">getVpnCredentialsvpnId(vpnId, callback)</td>
428
+ <td style="padding:15px">Gets the VPN credentials for the specified ID</td>
429
+ <td style="padding:15px">{base_path}/{version}/vpnCredentials/{pathv1}?{query}</td>
430
+ <td style="padding:15px">Yes</td>
431
+ </tr>
432
+ <tr>
433
+ <td style="padding:15px">putVpnCredentialsvpnId(vpnId, vpnCred, callback)</td>
434
+ <td style="padding:15px">Updates the VPN credentials for the specified ID</td>
435
+ <td style="padding:15px">{base_path}/{version}/vpnCredentials/{pathv1}?{query}</td>
436
+ <td style="padding:15px">Yes</td>
437
+ </tr>
438
+ <tr>
439
+ <td style="padding:15px">deleteVpnCredentialsvpnId(vpnId, callback)</td>
440
+ <td style="padding:15px">Deletes the VPN credentials for the specified ID</td>
441
+ <td style="padding:15px">{base_path}/{version}/vpnCredentials/{pathv1}?{query}</td>
442
+ <td style="padding:15px">Yes</td>
443
+ </tr>
444
+ <tr>
445
+ <td style="padding:15px">getLocations(search, sslScanEnabled, xffEnabled, authRequired, bwEnforced, page, pageSize, callback)</td>
446
+ <td style="padding:15px">Gets information on locations</td>
447
+ <td style="padding:15px">{base_path}/{version}/locations?{query}</td>
448
+ <td style="padding:15px">Yes</td>
449
+ </tr>
450
+ <tr>
451
+ <td style="padding:15px">postLocations(location, callback)</td>
452
+ <td style="padding:15px">Adds a new location</td>
453
+ <td style="padding:15px">{base_path}/{version}/locations?{query}</td>
454
+ <td style="padding:15px">Yes</td>
455
+ </tr>
456
+ <tr>
457
+ <td style="padding:15px">postLocationsbulkDelete(LocationIds, callback)</td>
458
+ <td style="padding:15px">Bulk delete locations up to a maximum of 100 locations per request</td>
459
+ <td style="padding:15px">{base_path}/{version}/locations/bulkDelete?{query}</td>
460
+ <td style="padding:15px">Yes</td>
461
+ </tr>
462
+ <tr>
463
+ <td style="padding:15px">getLocationslite(sslScanEnabled, search, page, pageSize, callback)</td>
464
+ <td style="padding:15px">Gets a lightweight list of locations</td>
465
+ <td style="padding:15px">{base_path}/{version}/locations/lite?{query}</td>
466
+ <td style="padding:15px">Yes</td>
467
+ </tr>
468
+ <tr>
469
+ <td style="padding:15px">getLocationslocationId(locationId, callback)</td>
470
+ <td style="padding:15px">Gets the location information for the specified ID</td>
471
+ <td style="padding:15px">{base_path}/{version}/locations/{pathv1}?{query}</td>
472
+ <td style="padding:15px">Yes</td>
473
+ </tr>
474
+ <tr>
475
+ <td style="padding:15px">putLocationslocationId(locationId, location, callback)</td>
476
+ <td style="padding:15px">Updates the location information for the specified ID</td>
477
+ <td style="padding:15px">{base_path}/{version}/locations/{pathv1}?{query}</td>
478
+ <td style="padding:15px">Yes</td>
479
+ </tr>
480
+ <tr>
481
+ <td style="padding:15px">deleteLocationslocationId(locationId, callback)</td>
482
+ <td style="padding:15px">Deletes the location for the specified ID</td>
483
+ <td style="padding:15px">{base_path}/{version}/locations/{pathv1}?{query}</td>
484
+ <td style="padding:15px">Yes</td>
485
+ </tr>
486
+ <tr>
487
+ <td style="padding:15px">getSandboxreportquota(callback)</td>
488
+ <td style="padding:15px">Gets the Sandbox Report API quota information for your organization</td>
489
+ <td style="padding:15px">{base_path}/{version}/sandbox/report/quota?{query}</td>
490
+ <td style="padding:15px">Yes</td>
491
+ </tr>
492
+ <tr>
493
+ <td style="padding:15px">getSandboxreportmd5Hash(md5Hash, details, callback)</td>
494
+ <td style="padding:15px">Gets a full (i.e., complete) or summary detail report for an MD5 hash of a file that was analyzed by Sandbox</td>
495
+ <td style="padding:15px">{base_path}/{version}/sandbox/report/{pathv1}?{query}</td>
496
+ <td style="padding:15px">Yes</td>
497
+ </tr>
498
+ <tr>
499
+ <td style="padding:15px">getStatus(callback)</td>
500
+ <td style="padding:15px">Gets the activation status for a configuration change</td>
501
+ <td style="padding:15px">{base_path}/{version}/status?{query}</td>
502
+ <td style="padding:15px">Yes</td>
503
+ </tr>
504
+ <tr>
505
+ <td style="padding:15px">postStatusactivate(callback)</td>
506
+ <td style="padding:15px">Activates configuration changes</td>
507
+ <td style="padding:15px">{base_path}/{version}/status/activate?{query}</td>
508
+ <td style="padding:15px">Yes</td>
509
+ </tr>
168
510
  </table>
169
511
  <br>
package/CHANGELOG.md CHANGED
@@ -1,118 +1,9 @@
1
1
 
2
- ## 0.7.0 [05-24-2022]
2
+ ## 0.8.0 [12-27-2023]
3
3
 
4
- * Migration to the latest Adapter Foundation
4
+ * Adapter Engine has been updated and the changes are being migrated to the adapter
5
5
 
6
- See merge request itentialopensource/adapters/security/adapter-zscaler!13
6
+ See merge request itentialopensource/adapters/security/adapter-zscaler!22
7
7
 
8
8
  ---
9
9
 
10
- ## 0.6.7 [01-19-2022]
11
-
12
- - Changed the health check url to be a url that exists in zscaler
13
-
14
- See merge request itentialopensource/adapters/security/adapter-zscaler!12
15
-
16
- ---
17
-
18
- ## 0.6.6 [11-17-2021]
19
-
20
- - Fix lint errors after updating adapter.js and pronghorn.json
21
-
22
- See merge request itentialopensource/adapters/security/adapter-zscaler!10
23
-
24
- ---
25
-
26
- ## 0.6.5 [11-02-2021]
27
-
28
- - This added the updated "getObfuscatedKey" auth to all empty body payloads and updated the calls to allow every call to be properly wrapped in a session.
29
-
30
- See merge request itentialopensource/adapters/security/adapter-zscaler!8
31
-
32
- ---
33
-
34
- ## 0.6.4 [10-25-2021]
35
-
36
- - Changes to still support both Basic Auth and Obfuscated ApiKey Auth
37
-
38
- See merge request itentialopensource/adapters/security/adapter-zscaler!7
39
-
40
- ---
41
-
42
- ## 0.6.3 [03-16-2021]
43
-
44
- - Migration to bring up to the latest foundation
45
- - Change to .eslintignore (adapter_modification directory)
46
- - Change to README.md (new properties, new scripts, new processes)
47
- - Changes to adapterBase.js (new methods)
48
- - Changes to package.json (new scripts, dependencies)
49
- - Changes to propertiesSchema.json (new properties and changes to existing)
50
- - Changes to the Unit test
51
- - Adding several test files, utils files and .generic entity
52
- - Fix order of scripts and dependencies in package.json
53
- - Fix order of properties in propertiesSchema.json
54
- - Update sampleProperties, unit and integration tests to have all new properties.
55
- - Add all new calls to adapter.js and pronghorn.json
56
- - Add suspend piece to older methods
57
-
58
- See merge request itentialopensource/adapters/security/adapter-zscaler!6
59
-
60
- ---
61
-
62
- ## 0.6.2 [07-09-2020]
63
-
64
- - Update to the latest adapter foundation
65
-
66
- See merge request itentialopensource/adapters/security/adapter-zscaler!5
67
-
68
- ---
69
-
70
- ## 0.6.1 [01-15-2020]
71
-
72
- - Update the adapter to the latest foundation
73
-
74
- See merge request itentialopensource/adapters/security/adapter-zscaler!4
75
-
76
- ---
77
-
78
- ## 0.6.0 [11-08-2019]
79
-
80
- - Update the adapter to the latest adapter foundation.
81
- - Updating to adapter-utils 4.24.3 (automatic)
82
- - Add sample token schemas (manual)
83
- - Adding placement property to getToken response schema (manual - before encrypt)
84
- - Adding sso default into action.json for getToken (manual - before response object)
85
- - Add new adapter properties for metrics & mock (save_metric, mongo and return_raw) (automatic - check place manual before stub)
86
- - Update sample properties to include new properties (manual)
87
- - Update integration test for raw mockdata (automatic)
88
- - Update test properties (manual)
89
- - Changes to artifactize (automatic)
90
- - Update type in sampleProperties so it is correct for the adapter (manual)
91
- - Update the readme (automatic)
92
-
93
- See merge request itentialopensource/adapters/security/adapter-zscaler!3
94
-
95
- ---
96
-
97
- ## 0.5.0 [09-17-2019] & 0.4.0 [09-14-2019]
98
-
99
- - Update the adapter to the latest adapter foundation
100
-
101
- See merge request itentialopensource/adapters/security/adapter-zscaler!2
102
-
103
- ---
104
- ## 0.3.0 [07-30-2019] & 0.2.0 [07-16-2019]
105
-
106
- - Migrate the adapter to the latest foundation, categorize it and make it available to app artifact
107
-
108
- See merge request itentialopensource/adapters/security/adapter-zscaler!1
109
-
110
- ---
111
-
112
- ## 0.1.1 [04-25-2019]
113
-
114
- - Initial Commit
115
-
116
- See commit 08e8fb0
117
-
118
- ---
package/CONTRIBUTING.md CHANGED
@@ -10,163 +10,4 @@ This project and everyone participating in it is governed by the Code of Conduct
10
10
 
11
11
  ## How to Contribute
12
12
 
13
- ### Reporting Bugs
14
-
15
- This section guides you through submitting a bug report. Following these guidelines helps maintainers understand your report :pencil:, reproduce the behavior :computer: :left_right_arrow: :computer:, and find related reports :mag_right:.
16
-
17
- Before creating bug reports, please check before-submitting-a-bug-report, as you might find out that you don't need to create one. When you are creating a bug report, please include as many details as possible. If you have an Itential support contract, please create an Itential Service Desk ticket. If you don't have an Itential support contract, please send an email of the issue to support@itential.com.
18
-
19
- #### Before Submitting A Bug Report
20
-
21
- * **Check the README.md.** You might be able to find the cause of the problem and fix things yourself. Most importantly, check if you can reproduce the problem __in the latest version__.
22
- * **Work through the troubleshooting process.** Troubleshooting will include changing the log level of Itential Automation Platform (IAP) and adapters and checking the logs to see what the issues are. These logs should be included in any ticket you open for this issue.
23
- * **Check for resolutions to the issue.** Check the <a href="https://itential.atlassian.net/servicedesk/customer/kb/view/286883841?applicationId=605994d2-2cb2-3174-af59-ed5b23ff5fd5&spaceKey=PKB&src=1187380921" target="_blank">Itential Knowledge Base</a> to see if there is a known resolution for the issue you are having.
24
- * **Ask around in chat if you are an Itential employee** to see if others are experiencing the same issue.
25
-
26
- #### How to Submit a (Good) Bug Report
27
-
28
- Bugs are tracked through the Itential Service Desk. Explain the problem and include additional details to help maintainers reproduce the problem:
29
-
30
- - **Use a clear and descriptive title** for the issue to identify the problem.
31
- - **Describe the exact steps which reproduce the problem** in as much detail as possible. For example, start by explaining how you configured the adapter (e.g., which properties you used and how they were set) or how you are using an artifact.
32
- - **Provide specific examples to demonstrate the steps**. Include logs, or copy/paste snippets, in your examples.
33
- - **Describe the behavior you observed after following the steps** and point out what exactly is the problem with that behavior.
34
- - **Explain which behavior you expected to see instead and why.**
35
- - **Include screenshots and animated GIFs** which show you following the described steps and clearly demonstrate the problem. You can use <a href="https://www.cockos.com/licecap/" target="_blank">this tool</a> to record GIFs on macOS and Windows. Use <a href="https://github.com/colinkeenan/silentcast" target="_blank">this tool</a> or <a href="https://github.com/rhcarvalho/byzanz-guiz" target="_blank">program</a> on Linux.
36
- - **If the problem wasn't triggered by a specific action**, describe what you were doing before the problem happened and share more information using the guidelines below.
37
-
38
- Provide more context by answering these questions:
39
-
40
- - **Did the problem start happening recently** (e.g. after updating to a new version/tag) or was this always a problem?
41
- - If the problem started happening recently, **can you reproduce the problem in an older version/tag?** What's the most recent version in which the problem does not happen?
42
- - **Can you reliably reproduce the issue?** If not, provide details about how often the problem happens and under which conditions it normally happens.
43
-
44
- Include details about your configuration and environment:
45
-
46
- - **Which version of the adapter/artifact are you using?** You can get the exact version by checking the project version in the package.json file.
47
- - **What's the name and version of the OS you're using**?
48
- - **Are you running or using IAP in a virtual machine?** If so, which VM software are you using and which operating systems and versions are used for the host and guest?
49
- - **Are there firewalls between IAP and any other system you are integrating with?** If so, have you tried running curl from the system IAP is on to the other system to verify you have connectivity between the systems?
50
-
51
- ### Your First Code Contribution
52
-
53
- #### Local development
54
-
55
- This project can be developed locally on all operating systems. For instructions on how to do this, follow the steps highlighted in the README.md. The README.mdprovides many more details on cloning the repository for local development, how to lint and test your changes.
56
-
57
- #### Development Process
58
-
59
- The following provides a local copy of the repository along with dependencies.
60
-
61
- ```json
62
- go to the repository you are interested in working on
63
- click on the Clone button to get the link(s) you can use to clone the repository
64
- git clone <link to clone the project>
65
- npm install
66
- ```
67
-
68
- Prior to making changes you should create a branch to work in. The branch should be named with the type of change (major, minor or patch) and then a Jira issue number or a description of the issue.
69
-
70
- ```json
71
- git checkout -b <name_of_your_new_branch>
72
- ```
73
-
74
- Make all of the desired changes.
75
-
76
- > **Note:** All code changes should be accompanied by additional Unit and Integration tests to minimize the likelihood that any changes will negatively impact the adapter/artifact as well as to ensure the desired functionality is achieved.
77
-
78
-
79
- <table border="1" class="bordered-table">
80
- <tr>
81
- <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Files</span></th>
82
- <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Changes</span></th>
83
- </tr>
84
- <tr>
85
- <td style="padding:15px">.codeclimate.yml, .eslintignore, .eslintrc.js, .gitignore, .gitlab-ci.yml, .jshintrc, .npmignore</td>
86
- <td style="padding:15px">These are foundational files that are used in linting and building of the adapter. Changes to these files are heavily scrutinized and may be implemented in a different manner so that the changes can be implemented across all adapters.</td>
87
- </tr>
88
- <tr>
89
- <td style="padding:15px">CODE_OF_CONDUCT.md, CONTRIBUTING.md, LICENSE, README.md</td>
90
- <td style="padding:15px">These are license and process files for the repository. Changes to these files may require legal review and may also be implemented in a different manner so that the changes can be implemented across all adapters.</td>
91
- </tr>
92
- <tr>
93
- <td style="padding:15px">utils/*, adapterBase.js</td>
94
- <td style="padding:15px">Changes to these files will rarely be accepted. These are process files that need to be changed through the builder process and migration.</td>
95
- </tr>
96
- <tr>
97
- <td style="padding:15px">adapter.js</td>
98
- <td style="padding:15px">Changes to this file are code changes. They should be accompanied by the appropriate unit and integration tests. If new methods are added, they should also be added to the pronghorn.json file, otherwise integration tests are likely to fail.</td>
99
- </tr>
100
- <tr>
101
- <td style="padding:15px">error.json, propertiesSchema.json</td>
102
- <td style="padding:15px">These files are utilized by the Itential Runtime libraries. You can make changes to these files, but the changes should be appending of new errors or properties. Removal of errors and properties can result in rejection of the changes.</td>
103
- </tr>
104
- <tr>
105
- <td style="padding:15px">pacakge.json, package-lock.json</td>
106
- <td style="padding:15px">The package-lock.json is automatically generated and should only be updated when the dependencies inside of the package.json are modified. You can make changes to the package.json to add additional scripts, add new dependencies, modify names, etc. However, changing the scripts or dependencies that are Itential specific will be overriden during the acceptance process.</td>
107
- </tr>
108
- <tr>
109
- <td style="padding:15px">pronghorn.json</td>
110
- <td style="padding:15px">Changes to this file are made for integration into IAP. The most common change here is adding new methods that shoud be exposed to the IAP Workflow.</td>
111
- </tr>
112
- <tr>
113
- <td style="padding:15px">entities/*</td>
114
- <td style="padding:15px">Changes to these files include adding new capabilities, updating existing capabilities, or removing deprecated capabilities in the adapter. Translation configuration can also be modified here.</td>
115
- </tr>
116
- <tr>
117
- <td style="padding:15px">test/*</td>
118
- <td style="padding:15px">Changes to these files include adding, updating, or removing unit and integration tests in the adapter. Tests should never be removed unless the methods that are being tested are removed also. Both the unit and integration test file should have a marker that identifies where modification can take place. Modifications above that marker are likely to be rejected or implemented in a different manner.</td>
119
- </tr>
120
- </table>
121
- <br>
122
-
123
- > **Note:** It is a best practice to lint and test your code prior to committing changes into the repository. You can lint your code by running **npm run lint** and test it by running **node utils/testRunner.sh**. However, there are pre-commit hooks that will run these scripts when you commit your changes.
124
-
125
- Commit the changes to the repository.
126
-
127
- ```json
128
- git commit -a -m "<descriptive message>"
129
- ```
130
-
131
- > **Note:** There are pre-commit hooks in place. If the pre-commit hooks fail, you will need to address those issues before moving forward.
132
-
133
- Push the changes into the repository. This should only be done after the commit has successfully completed.
134
-
135
- ```json
136
- git push origin <name_of_your_new_branch>
137
- ```
138
-
139
- Create a Merge Request.
140
-
141
- ### Merge Requests
142
-
143
- - Fill out the provided merge request template.
144
- - Reference related issues and merge requests liberally.
145
- - Include screenshots and animated GIFs in your merge request whenever possible.
146
- - Follow the project Styleguide.
147
- - End all files with a newline.
148
-
149
- ## Styleguide
150
-
151
- ### Git Commit Messages
152
-
153
- - Use the present tense ("Add feature" not "Added feature")
154
- - Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
155
- - Consider starting the commit message with an applicable emoji _(not required)_:
156
- - :art: `:art:` When improving the format/structure of the code.
157
- - :racehorse: `:racehorse:` When improving performance
158
- - :non-potable_water: `:non-potable_water:` When plugging memory leaks.
159
- - :memo: `:memo:` When writing documentation.
160
- - :penguin: `:penguin:` When fixing something on Linux.
161
- - :apple: `:apple:` When fixing something on macOS.
162
- - :checkered_flag: `:checkered_flag:` When fixing something on Windows.
163
- - :bug: `:bug:` When fixing a bug.
164
- - :fire: `:fire:` When removing code or files.
165
- - :green_heart: `:green_heart:` When fixing the CI build.
166
- - :white_check_mark: `:white_check_mark:` When adding tests,
167
- - :lock: `:lock:` When dealing with security.
168
- - :arrow_up: `:arrow_up:` When upgrading dependencies.
169
- - :arrow_down: `:arrow_down:` When downgrading dependencies.
170
- - :shirt: `:shirt:` When removing linter warnings.
171
-
172
- __Avoid installing unnecessary packages.__ Do not install packages just because they might be "nice to have". Itential Opensource projects are supposed to be minimal, specific, and compact by design.
13
+ Follow the contributing guide (here)[https://gitlab.com/itentialopensource/adapters/contributing-guide]
package/ENHANCE.md CHANGED
@@ -18,7 +18,7 @@ npm run adapter:update
18
18
 
19
19
  If you do not have a Swagger or OpenAPI document, you can use a Postman Collection and convert that to an OpenAPI document using APIMatic and then follow the first process.
20
20
 
21
- If you want to manually update the adapter that can also be done the key thing is to make sure you update all of the right files. Within the entities directory you will find 1 or more entities. You can create a new entity or add to an existing entity. Each entity has an action.json file, any new call will need to be put in the action.json file. It will also need to be added to the enum for the ph_request_type in the appropriate schema files. Once this configuration is complete you will need to add the call to the adapter.js file and, in order to make it available as a workflow task in IAP, it should also be added to the pronghorn.json file. You can optionally add it to the unit and integration test files. There is more information on how to work on each of these files in the <a href="https://www.itential.com/automation-platform/integrations/adapters-resources/" target="_blank">Adapter Technical Resources</a> on Dev Site.
21
+ If you want to manually update the adapter that can also be done the key thing is to make sure you update all of the right files. Within the entities directory you will find 1 or more entities. You can create a new entity or add to an existing entity. Each entity has an action.json file, any new call will need to be put in the action.json file. It will also need to be added to the enum for the ph_request_type in the appropriate schema files. Once this configuration is complete you will need to add the call to the adapter.js file and, in order to make it available as a workflow task in IAP, it should also be added to the pronghorn.json file. You can optionally add it to the unit and integration test files. There is more information on how to work on each of these files in the <a href="https://docs.itential.com/opensource/docs/adapters" target="_blank">Adapter Technical Resources</a> on our Documentation Site.
22
22
 
23
23
  ```text
24
24
  Files to update
@@ -66,4 +66,4 @@ Files to update
66
66
  * test/integration/adapterTestIntegration.js: add better data for the create and update calls so that they will not fail.
67
67
  ```
68
68
 
69
- As mentioned previously, for most of these changes as well as other possible changes, there is more information on how to work on an adapter in the <a href="https://www.itential.com/automation-platform/integrations/adapters-resources/" target="_blank">Adapter Technical Resources</a> on Dev Site.
69
+ As mentioned previously, for most of these changes as well as other possible changes, there is more information on how to work on an adapter in the <a href="https://docs.itential.com/opensource/docs/adapters" target="_blank">Adapter Technical Resources</a> on our Documentation Site.