@itentialopensource/adapter-amazon_route53 0.2.1 → 0.3.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 (46) hide show
  1. package/AUTH.md +25 -22
  2. package/CALLS.md +59 -22
  3. package/CHANGELOG.md +40 -2
  4. package/CONTRIBUTING.md +1 -160
  5. package/ENHANCE.md +2 -2
  6. package/README.md +32 -23
  7. package/SYSTEMINFO.md +15 -5
  8. package/adapter.js +601 -1773
  9. package/adapterBase.js +549 -879
  10. package/changelogs/changelog.md +54 -0
  11. package/entities/.system/action.json +2 -2
  12. package/entities/Rest/action.json +109 -109
  13. package/metadata.json +70 -0
  14. package/package.json +24 -28
  15. package/pronghorn.json +981 -642
  16. package/propertiesSchema.json +439 -39
  17. package/refs?service=git-upload-pack +0 -0
  18. package/report/adapter-openapi.json +15721 -0
  19. package/report/adapter-openapi.yaml +11633 -0
  20. package/report/adapterInfo.json +8 -8
  21. package/report/updateReport1691507399893.json +120 -0
  22. package/report/updateReport1692202434448.json +120 -0
  23. package/report/updateReport1694460669097.json +120 -0
  24. package/report/updateReport1698420502742.json +120 -0
  25. package/sampleProperties.json +68 -5
  26. package/test/integration/adapterTestBasicGet.js +2 -4
  27. package/test/integration/adapterTestConnectivity.js +91 -42
  28. package/test/integration/adapterTestIntegration.js +130 -2
  29. package/test/unit/adapterBaseTestUnit.js +388 -313
  30. package/test/unit/adapterTestUnit.js +338 -112
  31. package/utils/adapterInfo.js +1 -1
  32. package/utils/addAuth.js +1 -1
  33. package/utils/artifactize.js +1 -1
  34. package/utils/checkMigrate.js +1 -1
  35. package/utils/entitiesToDB.js +2 -2
  36. package/utils/findPath.js +1 -1
  37. package/utils/methodDocumentor.js +273 -0
  38. package/utils/modify.js +13 -15
  39. package/utils/packModificationScript.js +1 -1
  40. package/utils/pre-commit.sh +2 -0
  41. package/utils/taskMover.js +309 -0
  42. package/utils/tbScript.js +89 -34
  43. package/utils/tbUtils.js +41 -21
  44. package/utils/testRunner.js +1 -1
  45. package/utils/troubleshootingAdapter.js +9 -6
  46. package/workflows/README.md +0 -3
package/AUTH.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ## Authenticating Amazon Route53 Adapter
2
2
 
3
- This document will go through the steps for authenticating the Amazon Route53 adapter with AWS Authentication. Properly configuring the properties for an adapter in IAP is critical for getting the adapter online. You can read more about adapter authentication <a href="https://www.itential.com/automation-platform/integrations/adapters-resources/authentication/" target="_blank">HERE</a>.
3
+ This document will go through the steps for authenticating the Amazon Route53 adapter with AWS Authentication. Properly configuring the properties for an adapter in IAP is critical for getting the adapter online. You can read more about adapter authentication <a href="https://docs.itential.com/opensource/docs/authentication" target="_blank">HERE</a>.
4
4
 
5
5
  ### AWS Authentication
6
6
  The Amazon Route53 adapter requires AWS Authentication it does not utilize any of the autnetication methods provided by the adapter library as a result, the auth_method should be set to no_authentication. The adapter utilizes AWS signature 4 authentication. There are 3 flavors of doing this.
@@ -13,33 +13,33 @@ The third authentication method is to use an IAM role. With this method, you do
13
13
 
14
14
  If you change authentication methods, you should change this section accordingly and merge it back into the adapter repository.
15
15
 
16
- #### STEPS FOR SERVICE ACCOUNT
16
+ ### AWS Signature 4 Service Account Authentication
17
+ The Amazon Route53 adapter requires AWS Signature 4 Authentication. If you change authentication methods, you should change this section accordingly and merge it back into the adapter repository.
18
+
19
+ This authentication is done in the adapter itself and not in the adapter libraries. This is why the auth_method is set to "no_authentication".
20
+
21
+ STEPS
17
22
  1. Ensure you have access to a Amazon Route53 server and that it is running
18
23
  2. Follow the steps in the README.md to import the adapter into IAP if you have not already done so
19
24
  3. Use the properties below for the ```properties.authentication``` field
20
25
  ```json
21
26
  "authentication": {
22
- "auth_method": "no_authentication",
23
- "username": "",
24
- "password": "",
25
- "token": "",
26
- "token_timeout": 1800000,
27
- "token_cache": "",
28
- "invalid_token_error": 401,
29
- "auth_field": "",
30
- "auth_field_format": "",
31
- "auth_logging": false,
32
- "client_id": "",
33
- "client_secret": "",
34
- "grant_type": "",
35
- "aws_access_key": "access key from amazon",
36
- "aws_secret_key": "secret key from amazon",
37
- "aws_session_token": "neededsometimes"
27
+ "auth_method": "aws_authentication",
28
+ "aws_access_key": "aws_access_key",
29
+ "aws_secret_key": "aws_secret_key",
30
+ "aws_session_token": "aws_session_token"
38
31
  }
39
32
  ```
33
+ you can leave all of the other properties in the authentication section, they will not be used for Amazon Route53 authentication.
40
34
  4. Restart the adapter. If your properties were set correctly, the adapter should go online.
41
35
 
42
- #### STEPS FOR IAM ROLE
36
+ ### AWS Security Token Service
37
+ The Amazon Route53 adapter also supports AWS Security Token Service (STS) Authentication. For using this authentication, you need to use the calls in the Adapter that have the STSRole suffix on them and pass the STS information into the method.
38
+
39
+ ### AWS IAM Role
40
+ The Amazon Route53 adapter also supports AWS IAM Role Authentication. For using this authentication, you need to use the calls in the Adapter that have the STSRole suffix on them and pass the RoleName into the method.
41
+
42
+ ### AMAZON STEPS FOR IAM ROLE
43
43
  Increase number of hops if running IAP inside of docker on EC2 instance
44
44
  ```bash
45
45
  aws sso login --profile aws-bota-1
@@ -67,12 +67,15 @@ Save the role
67
67
  Go back to your EC2 instance and Actions->Security->Modify IAM Role, associate newly created role with your EC2 instance
68
68
 
69
69
  ### Troubleshooting
70
- - Make sure you copied over the correct AWS Keys.
70
+ - Make sure you copied over the correct access key, secret key and session token.
71
71
  - Turn on debug level logs for the adapter in IAP Admin Essentials.
72
+ - Turn on auth_logging for the adapter in IAP Admin Essentials (adapter properties).
72
73
  - Investigate the logs - in particular:
73
- - The OPTION log to make sure the proper headers are being sent with the request.
74
- - The REQUEST log to make sure the payload is accurate.
74
+ - The FULL REQUEST log to make sure the proper headers are being sent with the request.
75
+ - The FULL BODY log to make sure the payload is accurate.
75
76
  - The CALL RETURN log to see what the other system is telling us.
77
+ - Credentials should be ** masked ** by the adapter so make sure you verify the username and password - including that there are erroneous spaces at the front or end.
78
+ - Remember when you are done to turn auth_logging off as you do not want to log credentials.
76
79
  - For IAM, you can run this on the IAP server to verify you are getting to the "internal" AWS Server
77
80
  ```bash
78
81
  TOKEN=`curl -v -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600"` && curl -v -H "X-aws-ec2-metadata-token: $TOKEN" -v http://169.254.169.254/latest/meta-data/iam/security-credentials/<rolename>
package/CALLS.md CHANGED
@@ -19,7 +19,7 @@ These are adapter methods that IAP or you might use. There are some other method
19
19
  </tr>
20
20
  <tr>
21
21
  <td style="padding:15px">healthCheck(callback)</td>
22
- <td style="padding:15px">This call ensures that the adapter can communicate with Amazon Route53. The actual call that is used is defined in the adapter properties and .system entities action.json file.</td>
22
+ <td style="padding:15px">This call ensures that the adapter can communicate with Adapter for ServiceNow. The actual call that is used is defined in the adapter properties and .system entities action.json file.</td>
23
23
  <td style="padding:15px">No</td>
24
24
  </tr>
25
25
  <tr>
@@ -29,7 +29,7 @@ These are adapter methods that IAP or you might use. There are some other method
29
29
  </tr>
30
30
  <tr>
31
31
  <td style="padding:15px">encryptProperty(property, technique, callback)</td>
32
- <td style="padding:15px">This call will take the provided property and technique, and return the property encrypted with the technique. This allows the property to be used in the adapterProps section for the credential password so that the password does not have to be in clear text. The adapter will decrypt the property as needed for communications with Amazon Route53.</td>
32
+ <td style="padding:15px">This call will take the provided property and technique, and return the property encrypted with the technique. This allows the property to be used in the adapterProps section for the credential password so that the password does not have to be in clear text. The adapter will decrypt the property as needed for communications with Adapter for ServiceNow.</td>
33
33
  <td style="padding:15px">No</td>
34
34
  </tr>
35
35
  <tr>
@@ -37,11 +37,6 @@ These are adapter methods that IAP or you might use. There are some other method
37
37
  <td style="padding:15px">This call provides the ability to update the adapter configuration from IAP - includes actions, schema, mockdata and other configurations.</td>
38
38
  <td style="padding:15px">Yes</td>
39
39
  </tr>
40
- <tr>
41
- <td style="padding:15px">iapFindAdapterPath(apiPath, callback)</td>
42
- <td style="padding:15px">This call provides the ability to see if a particular API path is supported by the adapter.</td>
43
- <td style="padding:15px">Yes</td>
44
- </tr>
45
40
  <tr>
46
41
  <td style="padding:15px">iapSuspendAdapter(mode, callback)</td>
47
42
  <td style="padding:15px">This call provides the ability to suspend the adapter and either have requests rejected or put into a queue to be processed after the adapter is resumed.</td>
@@ -57,12 +52,16 @@ These are adapter methods that IAP or you might use. There are some other method
57
52
  <td style="padding:15px">This call will return the requests that are waiting in the queue if throttling is enabled.</td>
58
53
  <td style="padding:15px">Yes</td>
59
54
  </tr>
55
+ <tr>
56
+ <td style="padding:15px">iapFindAdapterPath(apiPath, callback)</td>
57
+ <td style="padding:15px">This call provides the ability to see if a particular API path is supported by the adapter.</td>
58
+ <td style="padding:15px">Yes</td>
59
+ </tr>
60
60
  <tr>
61
61
  <td style="padding:15px">iapTroubleshootAdapter(props, persistFlag, adapter, callback)</td>
62
62
  <td style="padding:15px">This call can be used to check on the performance of the adapter - it checks connectivity, healthcheck and basic get calls.</td>
63
63
  <td style="padding:15px">Yes</td>
64
64
  </tr>
65
-
66
65
  <tr>
67
66
  <td style="padding:15px">iapRunAdapterHealthcheck(adapter, callback)</td>
68
67
  <td style="padding:15px">This call will return the results of a healthcheck.</td>
@@ -83,6 +82,21 @@ These are adapter methods that IAP or you might use. There are some other method
83
82
  <td style="padding:15px">This call will push the adapter configuration from the entities directory into the Adapter or IAP Database.</td>
84
83
  <td style="padding:15px">Yes</td>
85
84
  </tr>
85
+ <tr>
86
+ <td style="padding:15px">iapDeactivateTasks(tasks, callback)</td>
87
+ <td style="padding:15px">This call provides the ability to remove tasks from the adapter.</td>
88
+ <td style="padding:15px">Yes</td>
89
+ </tr>
90
+ <tr>
91
+ <td style="padding:15px">iapActivateTasks(tasks, callback)</td>
92
+ <td style="padding:15px">This call provides the ability to add deactivated tasks back into the adapter.</td>
93
+ <td style="padding:15px">Yes</td>
94
+ </tr>
95
+ <tr>
96
+ <td style="padding:15px">iapExpandedGenericAdapterRequest(metadata, uriPath, restMethod, pathVars, queryData, requestBody, addlHeaders, callback)</td>
97
+ <td style="padding:15px">This is an expanded Generic Call. The metadata object allows us to provide many new capabilities within the generic request.</td>
98
+ <td style="padding:15px">Yes</td>
99
+ </tr>
86
100
  <tr>
87
101
  <td style="padding:15px">genericAdapterRequest(uriPath, restMethod, queryData, requestBody, addlHeaders, callback)</td>
88
102
  <td style="padding:15px">This call allows you to provide the path to have the adapter call. It is an easy way to incorporate paths that have not been built into the adapter yet.</td>
@@ -94,19 +108,42 @@ These are adapter methods that IAP or you might use. There are some other method
94
108
  <td style="padding:15px">Yes</td>
95
109
  </tr>
96
110
  <tr>
97
- <td style="padding:15px">iapHasAdapterEntity(entityType, entityId, callback)</td>
98
- <td style="padding:15px">This call verifies the adapter has the specific entity.</td>
99
- <td style="padding:15px">No</td>
111
+ <td style="padding:15px">iapRunAdapterLint(callback)</td>
112
+ <td style="padding:15px">Runs lint on the addapter and provides the information back.</td>
113
+ <td style="padding:15px">Yes</td>
100
114
  </tr>
101
115
  <tr>
102
- <td style="padding:15px">iapVerifyAdapterCapability(entityType, actionType, entityId, callback)</td>
103
- <td style="padding:15px">This call verifies the adapter can perform the provided action on the specific entity.</td>
104
- <td style="padding:15px">No</td>
116
+ <td style="padding:15px">iapRunAdapterTests(callback)</td>
117
+ <td style="padding:15px">Runs baseunit and unit tests on the adapter and provides the information back.</td>
118
+ <td style="padding:15px">Yes</td>
105
119
  </tr>
106
120
  <tr>
107
- <td style="padding:15px">iapUpdateAdapterEntityCache()</td>
108
- <td style="padding:15px">This call will update the entity cache.</td>
109
- <td style="padding:15px">No</td>
121
+ <td style="padding:15px">iapGetAdapterInventory(callback)</td>
122
+ <td style="padding:15px">This call provides some inventory related information about the adapter.</td>
123
+ <td style="padding:15px">Yes</td>
124
+ </tr>
125
+ </table>
126
+ <br>
127
+
128
+ ### Adapter Cache Calls
129
+
130
+ These are adapter methods that are used for adapter caching. If configured, the adapter will cache based on the interval provided. However, you can force a population of the cache manually as well.
131
+
132
+ <table border="1" class="bordered-table">
133
+ <tr>
134
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Method Signature</span></th>
135
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Description</span></th>
136
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Workflow?</span></th>
137
+ </tr>
138
+ <tr>
139
+ <td style="padding:15px">iapPopulateEntityCache(entityTypes, callback)</td>
140
+ <td style="padding:15px">This call populates the adapter cache.</td>
141
+ <td style="padding:15px">Yes</td>
142
+ </tr>
143
+ <tr>
144
+ <td style="padding:15px">iapRetrieveEntitiesCache(entityType, options, callback)</td>
145
+ <td style="padding:15px">This call retrieves the specific items from the adapter cache.</td>
146
+ <td style="padding:15px">Yes</td>
110
147
  </tr>
111
148
  </table>
112
149
  <br>
@@ -129,27 +166,27 @@ These are adapter methods that are used to integrate to IAP Brokers. This adapte
129
166
  <tr>
130
167
  <td style="padding:15px">getDevice(deviceName, callback)</td>
131
168
  <td style="padding:15px">This call returns the details of the requested device.</td>
132
- <td style="padding:15px">Yes</td>
169
+ <td style="padding:15px">No</td>
133
170
  </tr>
134
171
  <tr>
135
172
  <td style="padding:15px">getDevicesFiltered(options, callback)</td>
136
173
  <td style="padding:15px">This call returns the list of devices that match the criteria provided in the options filter.</td>
137
- <td style="padding:15px">Yes</td>
174
+ <td style="padding:15px">No</td>
138
175
  </tr>
139
176
  <tr>
140
177
  <td style="padding:15px">isAlive(deviceName, callback)</td>
141
178
  <td style="padding:15px">This call returns whether the device status is active</td>
142
- <td style="padding:15px">Yes</td>
179
+ <td style="padding:15px">No</td>
143
180
  </tr>
144
181
  <tr>
145
182
  <td style="padding:15px">getConfig(deviceName, format, callback)</td>
146
183
  <td style="padding:15px">This call returns the configuration for the selected device.</td>
147
- <td style="padding:15px">Yes</td>
184
+ <td style="padding:15px">No</td>
148
185
  </tr>
149
186
  <tr>
150
187
  <td style="padding:15px">iapGetDeviceCount(callback)</td>
151
188
  <td style="padding:15px">This call returns the count of devices.</td>
152
- <td style="padding:15px">Yes</td>
189
+ <td style="padding:15px">No</td>
153
190
  </tr>
154
191
  </table>
155
192
  <br>
package/CHANGELOG.md CHANGED
@@ -1,7 +1,23 @@
1
1
 
2
+ ## 0.3.0 [11-10-2023]
3
+
4
+ * Minor/2023 auto migration
5
+
6
+ See merge request itentialopensource/adapters/cloud/adapter-amazon_route53!6
7
+
8
+ ---
9
+
10
+ ## 0.2.2 [07-14-2022]
11
+
12
+ * patch/Auth - Auth changes
13
+
14
+ See merge request itentialopensource/adapters/cloud/adapter-amazon_route53!3
15
+
16
+ ---
17
+
2
18
  ## 0.2.1 [06-24-2022]
3
19
 
4
- * Auth Changes for Headers and Streamline
20
+ - Auth Changes for Headers and Streamline
5
21
 
6
22
  See merge request itentialopensource/adapters/cloud/adapter-amazon_route53!2
7
23
 
@@ -9,7 +25,29 @@ See merge request itentialopensource/adapters/cloud/adapter-amazon_route53!2
9
25
 
10
26
  ## 0.2.0 [05-15-2022]
11
27
 
12
- * Changes for Auth and migration
28
+ - Changes for STS Auth, IAM and Migration
29
+ - Add some items to .gitignore (e.g. DS_Store) to keep them out of the repos.
30
+ - Changes to the README (some typo fixes - Add how to extend the adapter). Split the README into various markdown files (AUTH, BROKER, CALLS, ENHANCE, PROPERTIES, SUMMARY, SYSTEMINFO, TROUBLESHOOT)
31
+ - Fix the issues with Confluence in the markdowns (Tables, Lists, Links)
32
+ - Add scripts for easier authentication, removing hooks, etc
33
+ - Script changes (install script as well as database changes in other scripts)
34
+ - Double # of path vars on generic call
35
+ - Update versions of foundation (e.g. adapter-utils)
36
+ - Update npm publish so it supports https
37
+ - Update dependencies
38
+ - Add preinstall for minimist
39
+ - Fix new lint issues that came from eslint dependency change
40
+ - Add more thorough Unit tests for standard files (Package, Pronghorn, Properties (Schema and Sample)
41
+ - Add the adapter type in the package.json
42
+ - Add AdapterInfo.js script
43
+ - Add json-query dependency
44
+ - Add the propertiesDecorators.json for product encryption
45
+ - Change the name of internal IAP/Adapter methods to avoid collisions and make more obvious in Workflow - iapRunAdapterBasicGet, iapRunAdapterConnectivity, iapRunAdapterHealthcheck, iapTroubleshootAdapter, iapGetAdapterQueue, iapUnsuspendAdapter, iapSuspendAdapter, iapFindAdapterPath, iapUpdateAdapterConfiguration, iapGetAdapterWorkflowFunctions
46
+ - Add the adapter config in the database support - iapMoveAdapterEntitiesToDB
47
+ - Add standard broker calls - hasEntities, getDevice, getDevicesFiltered, isAlive, getConfig and iapGetDeviceCount
48
+ - Add genericAdapterRequest that does not use the base_path and version so that the path can be unique - genericAdapterRequestNoBasePath
49
+ - Add AdapterInfo.json
50
+ - Add systemName for documentation
13
51
 
14
52
  See merge request itentialopensource/adapters/cloud/adapter-amazon_route53!1
15
53
 
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.
package/README.md CHANGED
@@ -14,6 +14,7 @@ Some of the page links in this document and links to other GitLab files do not w
14
14
  - [Testing](#testing)
15
15
  - [Configuration](./PROPERTIES.md)
16
16
  - [Using this Adapter](./CALLS.md)
17
+ - [Authentication](./AUTH.md)
17
18
  - [Additional Information](#additional-information)
18
19
  - [Enhancements](./ENHANCE.md)
19
20
  - [Contributing](./CONTRIBUTING.md)
@@ -31,7 +32,7 @@ Itential Product and opensource adapters utilize SemVer for versioning. The curr
31
32
 
32
33
  Any release prior to 1.0.0 is a pre-release. Initial builds of adapters are generally set up as pre-releases as there is often work that needs to be done to configure the adapter and make sure the authentication process to Amazon_route53 works appropriately.
33
34
 
34
- Release notes can be viewed in CHANGELOG.md or in the <a href="https://itential.atlassian.net/servicedesk/customer/portals" target="_blank">Customer Knowledge Base</a> for Itential adapters.
35
+ Release notes can be viewed in CHANGELOG.md.
35
36
 
36
37
  ## Supported IAP Versions
37
38
 
@@ -47,17 +48,20 @@ These instructions will help you get a copy of the project on your local machine
47
48
 
48
49
  ### Helpful Background Information
49
50
 
50
- There is adapter documentation available on the Itential Developer Site <a href="https://www.itential.com/automation-platform/integrations/adapters-resources/" target="_blank">HERE</a>. This documentation includes information and examples that are helpful for:
51
+ There is <a href="https://docs.itential.com/opensource/docs/adapters" target="_blank">Adapter documentation available on the Itential Documentation Site</a>. This documentation includes information and examples that are helpful for:
51
52
 
52
53
  ```text
53
54
  Authentication
54
- Properties
55
+ IAP Service Instance Configuration
55
56
  Code Files
56
- Action Files
57
- Schema Files
58
- Mock Data Files
57
+ Endpoint Configuration (Action & Schema)
58
+ Mock Data
59
+ Adapter Generic Methods
60
+ Headers
61
+ Security
59
62
  Linting and Testing
60
- Troubleshooting
63
+ Build an Adapter
64
+ Troubleshooting an Adapter
61
65
  ```
62
66
 
63
67
  Others will be added over time.
@@ -96,6 +100,10 @@ The following list of packages are required for Itential opensource adapters or
96
100
  <td style="padding:15px">commander</td>
97
101
  <td style="padding:15px">Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality.</td>
98
102
  </tr>
103
+ <tr>
104
+ <td style="padding:15px">dns-lookup-promise</td>
105
+ <td style="padding:15px">Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality.</td>
106
+ </tr>
99
107
  <tr>
100
108
  <td style="padding:15px">fs-extra</td>
101
109
  <td style="padding:15px">Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality.</td>
@@ -112,14 +120,14 @@ The following list of packages are required for Itential opensource adapters or
112
120
  <td style="padding:15px">mongodb</td>
113
121
  <td style="padding:15px">Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality.</td>
114
122
  </tr>
115
- <tr>
116
- <td style="padding:15px">network-diagnostics</td>
117
- <td style="padding:15px">Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality.</td>
118
- </tr>
119
123
  <tr>
120
124
  <td style="padding:15px">nyc</td>
121
125
  <td style="padding:15px">Testing coverage library that is utilized by some of the node scripts that are included with the adapter.</td>
122
126
  </tr>
127
+ <tr>
128
+ <td style="padding:15px">ping</td>
129
+ <td style="padding:15px">Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality.</td>
130
+ </tr>
123
131
  <tr>
124
132
  <td style="padding:15px">readline-sync</td>
125
133
  <td style="padding:15px">Utilized by the node script that comes with the adapter; helps to test unit and integration functionality.</td>
@@ -143,7 +151,6 @@ eslint
143
151
  eslint-config-airbnb-base
144
152
  eslint-plugin-import
145
153
  eslint-plugin-json
146
- package-json-validator
147
154
  testdouble
148
155
  ```
149
156
 
@@ -172,7 +179,9 @@ tar -xvf adapter-amazon_route53.tar
172
179
 
173
180
  ```bash
174
181
  cd adapter-amazon_route53
175
- npm run adapter:install
182
+ npm install
183
+ npm run lint:errors
184
+ npm run test
176
185
  ```
177
186
 
178
187
  4. Restart IAP
@@ -181,17 +190,20 @@ npm run adapter:install
181
190
  systemctl restart pronghorn
182
191
  ```
183
192
 
184
- 5. Change the adapter service instance configuration (host, port, credentials, etc) in IAP Admin Essentials GUI
193
+ 5. Create an adapter service instance configuration in IAP Admin Essentials GUI
194
+
195
+ 6. Copy the properties from the sampleProperties.json and paste them into the service instance configuration in the inner/second properties field.
196
+
197
+ 7. Change the adapter service instance configuration (host, port, credentials, etc) in IAP Admin Essentials GUI
185
198
 
186
- npm run adapter:install can be dependent on where the adapter is installed and on the version of IAP so it is subject to fail. If this happens you can replace step 3-5 above with these:
199
+
200
+ For an easier install of the adapter use npm run adapter:install, it will install the adapter in IAP. Please note that it can be dependent on where the adapter is installed and on the version of IAP so it is subject to fail. If using this, you can replace step 3-5 above with these:
187
201
 
188
202
  3. Install adapter dependencies and check the adapter.
189
203
 
190
204
  ```bash
191
205
  cd adapter-amazon_route53
192
- npm run install
193
- npm run lint:errors
194
- npm run test
206
+ npm run adapter:install
195
207
  ```
196
208
 
197
209
  4. Restart IAP
@@ -200,11 +212,8 @@ npm run test
200
212
  systemctl restart pronghorn
201
213
  ```
202
214
 
203
- 5. Create an adapter service instance configuration in IAP Admin Essentials GUI
204
-
205
- 6. Copy the properties from the sampleProperties.json and paste them into the service instance configuration in the inner/second properties field.
215
+ 5. Change the adapter service instance configuration (host, port, credentials, etc) in IAP Admin Essentials GUI
206
216
 
207
- 7. Change the adapter service instance configuration (host, port, credentials, etc) in IAP Admin Essentials GUI
208
217
 
209
218
  ### Testing
210
219
 
@@ -268,7 +277,7 @@ Test should also be written to clean up after themselves. However, it is importa
268
277
 
269
278
  ### Helpful Links
270
279
 
271
- <a href="https://www.itential.com/automation-platform/integrations/adapters-resources/" target="_blank">Adapter Technical Resources</a>
280
+ <a href="https://docs.itential.com/opensource/docs/adapters" target="_blank">Adapter Technical Resources</a>
272
281
 
273
282
  ### Node Scripts
274
283
 
package/SYSTEMINFO.md CHANGED
@@ -1,11 +1,21 @@
1
1
  # Amazon Route53
2
2
 
3
- Vendor: Amazon Route53
4
- Homepage: https://Amazon Route53.com/
3
+ Vendor: Amazon Web Services
4
+ Homepage: https://aws.amazon.com/
5
5
 
6
- Product: Amazon Route53
7
- Product Page: https://Amazon Route53.com/
6
+ Product: Route53
7
+ Product Page: https://aws.amazon.com/route53/
8
8
 
9
9
  ## Introduction
10
+ We classify AWS Route53 into the Cloud domain as Route53 provides Cloud Services.
10
11
 
11
- ## Additional Product Documentation
12
+ "Route53 offers Domain Name Services (DNS)"
13
+ "Route53 allows for customizing Domain Name Services to improve application availability"
14
+
15
+ ## Why Integrate
16
+ The AWS route53 adapter from Itential is used to integrate the Itential Automation Platform (IAP) with AWS Route53. With this adapter you have the ability to perform operations such as:
17
+
18
+ - Configure and Manage DNS.
19
+
20
+ ## Additional Product Documentation
21
+ The [API documents for AWS Route53](https://docs.aws.amazon.com/Route53/latest/APIReference/Welcome.html)