@itentialopensource/adapter-zscaler 0.10.11 → 0.11.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 (81) hide show
  1. package/.eslintrc.js +1 -0
  2. package/AUTH.md +4 -4
  3. package/BROKER.md +4 -4
  4. package/CALLS.md +597 -9
  5. package/ENHANCE.md +3 -3
  6. package/PROPERTIES.md +24 -9
  7. package/README.md +24 -23
  8. package/SUMMARY.md +2 -2
  9. package/SYSTEMINFO.md +1 -1
  10. package/TAB1.md +2 -2
  11. package/TAB2.md +10 -6
  12. package/TROUBLESHOOT.md +10 -1
  13. package/UTILITIES.md +473 -0
  14. package/adapter.js +9958 -5
  15. package/adapterBase.js +52 -16
  16. package/entities/APIAuthentication/action.json +165 -0
  17. package/entities/APIAuthentication/schema.json +26 -0
  18. package/entities/AdvancedSettings/action.json +45 -0
  19. package/entities/AdvancedSettings/schema.json +20 -0
  20. package/entities/AdvancedThreatProtectionPolicy/action.json +127 -0
  21. package/entities/AdvancedThreatProtectionPolicy/schema.json +24 -0
  22. package/entities/AuthenticationSettings/action.json +66 -0
  23. package/entities/AuthenticationSettings/schema.json +21 -0
  24. package/entities/CloudAppControlPolicy/action.json +247 -0
  25. package/entities/CloudAppControlPolicy/schema.json +41 -0
  26. package/entities/CloudApplications/action.json +46 -0
  27. package/entities/CloudApplications/schema.json +20 -0
  28. package/entities/CloudNanologStreamingServiceNSS/action.json +252 -0
  29. package/entities/CloudNanologStreamingServiceNSS/schema.json +30 -0
  30. package/entities/DNSControlPolicy/action.json +106 -0
  31. package/entities/DNSControlPolicy/schema.json +23 -0
  32. package/entities/FileTypeControlPolicy/action.json +127 -0
  33. package/entities/FileTypeControlPolicy/schema.json +24 -0
  34. package/entities/ForwardingControlPolicy/action.json +204 -0
  35. package/entities/ForwardingControlPolicy/schema.json +11 -1
  36. package/entities/IPSControlPolicy/action.json +106 -0
  37. package/entities/IPSControlPolicy/schema.json +23 -0
  38. package/entities/MalwareProtectionPolicy/action.json +168 -0
  39. package/entities/MalwareProtectionPolicy/schema.json +26 -0
  40. package/entities/OrganizationDetails/action.json +67 -0
  41. package/entities/OrganizationDetails/schema.json +21 -0
  42. package/entities/RemoteAssistanceSupport/action.json +45 -0
  43. package/entities/RemoteAssistanceSupport/schema.json +20 -0
  44. package/entities/SSLInspectionPolicy/action.json +106 -0
  45. package/entities/SSLInspectionPolicy/schema.json +23 -0
  46. package/entities/SandBoxPolicy/action.json +168 -0
  47. package/entities/SandBoxPolicy/schema.json +26 -0
  48. package/entities/URLFilteringPolicy/action.json +148 -0
  49. package/entities/URLFilteringPolicy/schema.json +25 -0
  50. package/entities/URLFilteringandCloudAppControlSettings/action.json +45 -0
  51. package/entities/URLFilteringandCloudAppControlSettings/schema.json +20 -0
  52. package/package.json +24 -28
  53. package/pronghorn.json +4347 -13
  54. package/propertiesSchema.json +68 -7
  55. package/report/adapterInfo.json +8 -8
  56. package/report/auto-adapter-openapi.json +55355 -0
  57. package/report/updateReport1748556249696.json +120 -0
  58. package/sampleProperties.json +5 -1
  59. package/test/integration/adapterTestBasicGet.js +88 -54
  60. package/test/integration/adapterTestConnectivity.js +15 -16
  61. package/test/integration/adapterTestIntegration.js +2481 -38
  62. package/test/unit/adapterBaseTestUnit.js +641 -39
  63. package/test/unit/adapterTestUnit.js +2400 -54
  64. package/utils/adapterInfo.js +114 -164
  65. package/utils/argParser.js +44 -0
  66. package/utils/checkMigrate.js +77 -38
  67. package/utils/entitiesToDB.js +53 -42
  68. package/utils/logger.js +26 -0
  69. package/utils/modify.js +56 -55
  70. package/utils/mongoDbConnection.js +79 -0
  71. package/utils/mongoUtils.js +162 -0
  72. package/utils/taskMover.js +31 -32
  73. package/utils/tbScript.js +36 -172
  74. package/utils/tbUtils.js +84 -226
  75. package/utils/troubleshootingAdapter.js +68 -84
  76. package/utils/updateAdapterConfig.js +158 -0
  77. package/utils/addAuth.js +0 -94
  78. package/utils/artifactize.js +0 -146
  79. package/utils/basicGet.js +0 -50
  80. package/utils/packModificationScript.js +0 -35
  81. package/utils/patches2bundledDeps.js +0 -90
@@ -769,6 +769,14 @@
769
769
  "security/ca.pem"
770
770
  ]
771
771
  },
772
+ "ca_file_content": {
773
+ "type": "string",
774
+ "description": "The content of the CA file used for SSL",
775
+ "default": "",
776
+ "examples": [
777
+ "-----BEGIN CERTIFICATE-----"
778
+ ]
779
+ },
772
780
  "key_file": {
773
781
  "type": "string",
774
782
  "description": "The fully qualified path name to the key file used for SSL",
@@ -858,32 +866,48 @@
858
866
  "mongo": {
859
867
  "type": "object",
860
868
  "properties": {
869
+ "url": {
870
+ "type": "string",
871
+ "description": "Mongo's complete connection URL. This property overrides host, port, database, username, password and replSet settings.",
872
+ "examples": [
873
+ "mongodb://[username:password@]host1[:port1][,...hostN[:portN]][/[defaultauthdb][?options]]",
874
+ "mongodb+srv://[username:password@]cluster0.xxxxx.mongodb.net/[defaultauthdb][?options]",
875
+ "mongodb+srv://cluster0.xxxxx.mongodb.net/[defaultauthdb][?options]"
876
+ ]
877
+ },
861
878
  "host": {
862
879
  "type": "string",
863
- "description": "host where mongo database can be found",
880
+ "description": "Host information for the Mongo server",
864
881
  "default": "",
865
882
  "examples": [
866
- "localhost"
883
+ "localhost",
884
+ "cluster0.xxxxx.mongodb.net",
885
+ "my-cluster.example.com"
867
886
  ]
868
887
  },
869
888
  "port": {
870
889
  "type": "integer",
871
- "description": "port on which to connect to the mongo database",
890
+ "description": "Port information for the Mongo server. Not used when using mongodb+srv:// protocol",
872
891
  "default": 443,
873
892
  "minimum": 0,
874
893
  "maximum": 65535
875
894
  },
876
895
  "database": {
877
896
  "type": "string",
878
- "description": "The name of the database to store adapter information in",
897
+ "description": "The database for the adapter to use for its data.",
879
898
  "default": "",
880
899
  "examples": [
881
900
  "adapter-xyz"
882
901
  ]
883
902
  },
903
+ "dbAuth": {
904
+ "type": "boolean",
905
+ "description": "Whether to use authentication for MongoDB connection. Default is false.",
906
+ "default": false
907
+ },
884
908
  "username": {
885
909
  "type": "string",
886
- "description": "The user to connect to the database with",
910
+ "description": "If credentials are required to access Mongo, this is the user to login as.",
887
911
  "default": "",
888
912
  "examples": [
889
913
  "username"
@@ -891,7 +915,7 @@
891
915
  },
892
916
  "password": {
893
917
  "type": "string",
894
- "description": "The password to connect to the database with",
918
+ "description": "If credentials are required to access Mongo, this is the password to login with.",
895
919
  "default": "",
896
920
  "examples": [
897
921
  "password"
@@ -899,12 +923,17 @@
899
923
  },
900
924
  "replSet": {
901
925
  "type": "string",
902
- "description": "The replica set for the database",
926
+ "description": "If the database is set up to use replica sets, define it here so it can be added to the database connection. Not used when using mongodb+srv:// protocol",
903
927
  "default": "",
904
928
  "examples": [
905
929
  "my_repolica_set"
906
930
  ]
907
931
  },
932
+ "addSrv": {
933
+ "type": "boolean",
934
+ "description": "Whether the connection requires the mongodb+srv:// protocol. If true, uses mongodb+srv:// protocol. Note: mongodb+srv:// can also be used for non-Atlas deployments that support DNS SRV records",
935
+ "default": false
936
+ },
908
937
  "db_ssl": {
909
938
  "type": "object",
910
939
  "description": "SSL for mongo database connection",
@@ -945,6 +974,38 @@
945
974
  }
946
975
  }
947
976
  }
977
+ },
978
+ "dependencies": {
979
+ "dbAuth": {
980
+ "oneOf": [
981
+ {
982
+ "properties": {
983
+ "dbAuth": {
984
+ "const": false
985
+ }
986
+ }
987
+ },
988
+ {
989
+ "properties": {
990
+ "dbAuth": {
991
+ "const": true
992
+ },
993
+ "username": {
994
+ "type": "string",
995
+ "minLength": 1
996
+ },
997
+ "password": {
998
+ "type": "string",
999
+ "minLength": 1
1000
+ }
1001
+ },
1002
+ "required": [
1003
+ "username",
1004
+ "password"
1005
+ ]
1006
+ }
1007
+ ]
1008
+ }
948
1009
  }
949
1010
  },
950
1011
  "devicebroker": {
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.10.7",
3
- "configLines": 22200,
4
- "scriptLines": 1783,
5
- "codeLines": 21117,
6
- "testLines": 14797,
7
- "testCases": 753,
8
- "totalCodeLines": 37697,
9
- "wfTasks": 271
2
+ "version": "0.10.12",
3
+ "configLines": 35616,
4
+ "scriptLines": 2498,
5
+ "codeLines": 31106,
6
+ "testLines": 20221,
7
+ "testCases": 1033,
8
+ "totalCodeLines": 53825,
9
+ "wfTasks": 369
10
10
  }