@itentialopensource/adapter-aws_cloudformation 0.3.6 → 0.3.8
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.
- package/AUTH.md +17 -6
- package/CHANGELOG.md +16 -0
- package/TAB2.md +24 -7
- package/package.json +2 -2
- package/propertiesSchema.json +69 -16
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +2 -2
- package/sampleProperties.json +7 -1
- package/compliance-report.json +0 -9
- package/compliance-report.txt +0 -5
package/AUTH.md
CHANGED
|
@@ -41,6 +41,17 @@ The AWS CloudFormation adapter also supports AWS Security Token Service (STS) Au
|
|
|
41
41
|
}
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
+
The AWS STS Authentication goes to the AWS STS Service endpoint in order to validate that the primary "service" account the adapter has authenticated with has the permission to assume the role. This call is made to sts.amazonaws.com or a regional sts sevice (e.g. sts.us-east-1.amazonaws.com). By default traffic to these endpoints will go out through the Internet. In the case where you would prefer these route through your network, it is possible to change the STS config for the adapter. The proxy field should point to the AWS loadbalancer or a proxy server that forwards to AWS STS. In Itential Cloud, this can be NAT'd to your network. In addition to this, you may need to set the endpoint in order to have the STS SSL certificate validated successfully. By default the adapter will use sts regional servers. If the loadbalancer and proxy are set up for that you should be fine. If however, they point to the global STS service (sts.amazonaws.com) You will need to set the global as the endpoint or the STS certificate will be rejected due to the hosts not matching.
|
|
45
|
+
|
|
46
|
+
```json
|
|
47
|
+
"authentication": {
|
|
48
|
+
"aws_sts": {
|
|
49
|
+
"endpoint": "<sts certificate endpoint>",
|
|
50
|
+
"proxy": "<proxy/loadbalancer ip>",
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
44
55
|
### AWS IAM Role
|
|
45
56
|
The AWS CloudFormation 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 provide the role's ARN in the RoleName variable. In addition to passing the IAM Role in the task, it is possible to set an IAM Role in the Service Instance Configuration by using the `aws_iam_role` property in the authentication section and providing the role's ARN.
|
|
46
57
|
|
|
@@ -52,29 +63,29 @@ The AWS CloudFormation adapter also supports AWS IAM Role Authentication. For us
|
|
|
52
63
|
```
|
|
53
64
|
|
|
54
65
|
### AMAZON STEPS FOR IAM ROLE
|
|
55
|
-
Increase number of hops if running IAP inside of docker on
|
|
66
|
+
Increase number of hops if running IAP inside of docker on an AWS instance
|
|
56
67
|
```bash
|
|
57
68
|
aws sso login --profile aws-bota-1
|
|
58
69
|
<export aws keys for CLI access>
|
|
59
70
|
|
|
60
|
-
|
|
71
|
+
Amazon ec2 modify-instance-metadata-options --instance-id i-0e150236026b7c45d --http-put-response-hop-limit 3 --http-endpoint enabled --region us-east-1
|
|
61
72
|
```
|
|
62
73
|
|
|
63
74
|
Create a new role and attach to it policies:
|
|
64
|
-
- go to your
|
|
75
|
+
- go to your Cloudformation instance, select it
|
|
65
76
|
- Actions->Security->Modify IAM Role
|
|
66
77
|
- Click 'Create New IAM Role'
|
|
67
78
|
- Create a role:
|
|
68
79
|
```text
|
|
69
80
|
Trusted entity type: AWS service
|
|
70
|
-
Use Case:
|
|
81
|
+
Use Case: Cloudformation
|
|
71
82
|
```
|
|
72
83
|
|
|
73
|
-
Add
|
|
84
|
+
Add needed Cloudformation policies to the role
|
|
74
85
|
|
|
75
86
|
Save the role
|
|
76
87
|
|
|
77
|
-
Go back to
|
|
88
|
+
Go back to Cloudformation and Actions->Security->Modify IAM Role, associate newly created role with your Cloudformation instance
|
|
78
89
|
|
|
79
90
|
### Troubleshooting
|
|
80
91
|
- Make sure you copied over the correct access key, secret key and session token.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
|
|
2
|
+
## 0.3.8 [09-30-2024]
|
|
3
|
+
|
|
4
|
+
* update auth docs
|
|
5
|
+
|
|
6
|
+
See merge request itentialopensource/adapters/adapter-aws_cloudformation!23
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 0.3.7 [09-12-2024]
|
|
11
|
+
|
|
12
|
+
* add properties for sts
|
|
13
|
+
|
|
14
|
+
See merge request itentialopensource/adapters/adapter-aws_cloudformation!22
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
2
18
|
## 0.3.6 [08-23-2024]
|
|
3
19
|
|
|
4
20
|
* turn off savemetric
|
package/TAB2.md
CHANGED
|
@@ -52,6 +52,17 @@ The AWS CloudFormation adapter also supports AWS Security Token Service (STS) Au
|
|
|
52
52
|
}
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
+
The AWS STS Authentication goes to the AWS STS Service endpoint in order to validate that the primary "service" account the adapter has authenticated with has the permission to assume the role. This call is made to sts.amazonaws.com or a regional sts sevice (e.g. sts.us-east-1.amazonaws.com). By default traffic to these endpoints will go out through the Internet. In the case where you would prefer these route through your network, it is possible to change the STS config for the adapter. The proxy field should point to the AWS loadbalancer or a proxy server that forwards to AWS STS. In Itential Cloud, this can be NAT'd to your network. In addition to this, you may need to set the endpoint in order to have the STS SSL certificate validated successfully. By default the adapter will use sts regional servers. If the loadbalancer and proxy are set up for that you should be fine. If however, they point to the global STS service (sts.amazonaws.com) You will need to set the global as the endpoint or the STS certificate will be rejected due to the hosts not matching.
|
|
56
|
+
|
|
57
|
+
```json
|
|
58
|
+
"authentication": {
|
|
59
|
+
"aws_sts": {
|
|
60
|
+
"endpoint": "<sts certificate endpoint>",
|
|
61
|
+
"proxy": "<proxy/loadbalancer ip>",
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
```
|
|
65
|
+
|
|
55
66
|
#### AWS IAM Role
|
|
56
67
|
The AWS CloudFormation 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 provide the role's ARN in the RoleName variable. In addition to passing the IAM Role in the task, it is possible to set an IAM Role in the Service Instance Configuration by using the `aws_iam_role` property in the authentication section and providing the role's ARN.
|
|
57
68
|
|
|
@@ -63,29 +74,29 @@ The AWS CloudFormation adapter also supports AWS IAM Role Authentication. For us
|
|
|
63
74
|
```
|
|
64
75
|
|
|
65
76
|
#### AMAZON STEPS FOR IAM ROLE
|
|
66
|
-
Increase number of hops if running IAP inside of docker on
|
|
77
|
+
Increase number of hops if running IAP inside of docker on an AWS instance
|
|
67
78
|
```bash
|
|
68
79
|
aws sso login --profile aws-bota-1
|
|
69
80
|
<export aws keys for CLI access>
|
|
70
81
|
|
|
71
|
-
|
|
82
|
+
Amazon ec2 modify-instance-metadata-options --instance-id i-0e150236026b7c45d --http-put-response-hop-limit 3 --http-endpoint enabled --region us-east-1
|
|
72
83
|
```
|
|
73
84
|
|
|
74
85
|
Create a new role and attach to it policies:
|
|
75
|
-
- go to your
|
|
86
|
+
- go to your Cloudformation instance, select it
|
|
76
87
|
- Actions->Security->Modify IAM Role
|
|
77
88
|
- Click 'Create New IAM Role'
|
|
78
89
|
- Create a role:
|
|
79
90
|
```text
|
|
80
91
|
Trusted entity type: AWS service
|
|
81
|
-
Use Case:
|
|
92
|
+
Use Case: Cloudformation
|
|
82
93
|
```
|
|
83
94
|
|
|
84
|
-
Add
|
|
95
|
+
Add needed Cloudformation policies to the role
|
|
85
96
|
|
|
86
97
|
Save the role
|
|
87
98
|
|
|
88
|
-
Go back to
|
|
99
|
+
Go back to Cloudformation and Actions->Security->Modify IAM Role, associate newly created role with your Cloudformation instance
|
|
89
100
|
|
|
90
101
|
#### Troubleshooting
|
|
91
102
|
- Make sure you copied over the correct access key, secret key and session token.
|
|
@@ -150,7 +161,13 @@ Sample Properties can be used to help you configure the adapter in the Itential
|
|
|
150
161
|
"aws_access_key": "aws_access_key",
|
|
151
162
|
"aws_secret_key": "aws_secret_key",
|
|
152
163
|
"aws_session_token": "aws_session_token",
|
|
153
|
-
"aws_iam_role": ""
|
|
164
|
+
"aws_iam_role": "",
|
|
165
|
+
"aws_sts": {
|
|
166
|
+
"sslEnable": true,
|
|
167
|
+
"endpoint": "",
|
|
168
|
+
"proxy": "",
|
|
169
|
+
"proxyagent": ""
|
|
170
|
+
}
|
|
154
171
|
},
|
|
155
172
|
"healthcheck": {
|
|
156
173
|
"type": "startup",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-aws_cloudformation",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.8",
|
|
4
4
|
"description": "This adapter integrates with system described as: Aws_cloudformation.",
|
|
5
5
|
"main": "adapter.js",
|
|
6
6
|
"wizardVersion": "2.44.7",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"author": "Itential",
|
|
55
55
|
"homepage": "https://gitlab.com/itentialopensource/adapters/adapter-aws_cloudformation#readme",
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@itentialopensource/adapter-utils": "^5.7.
|
|
57
|
+
"@itentialopensource/adapter-utils": "^5.7.2",
|
|
58
58
|
"acorn": "^8.12.1",
|
|
59
59
|
"ajv": "^8.17.1",
|
|
60
60
|
"aws4": "^1.9.0",
|
package/propertiesSchema.json
CHANGED
|
@@ -267,22 +267,6 @@
|
|
|
267
267
|
"description": "This property turns on logging of Authentication Information and should only be true when debugging authentication and connectivity",
|
|
268
268
|
"default": false
|
|
269
269
|
},
|
|
270
|
-
"aws_access_key": {
|
|
271
|
-
"type": "string",
|
|
272
|
-
"description": "AWS access key for authentication",
|
|
273
|
-
"default": "",
|
|
274
|
-
"examples": [
|
|
275
|
-
"accesskey"
|
|
276
|
-
]
|
|
277
|
-
},
|
|
278
|
-
"aws_secret_key": {
|
|
279
|
-
"type": "string",
|
|
280
|
-
"description": "AWS secret key for authentication",
|
|
281
|
-
"default": "",
|
|
282
|
-
"examples": [
|
|
283
|
-
"secretkey"
|
|
284
|
-
]
|
|
285
|
-
},
|
|
286
270
|
"client_id": {
|
|
287
271
|
"type": "string",
|
|
288
272
|
"description": "The client id for OAuth requests - can also use username depending on schema",
|
|
@@ -365,6 +349,75 @@
|
|
|
365
349
|
}
|
|
366
350
|
}
|
|
367
351
|
}
|
|
352
|
+
},
|
|
353
|
+
"aws_access_key": {
|
|
354
|
+
"type": "string",
|
|
355
|
+
"description": "AWS access key for authentication",
|
|
356
|
+
"default": "",
|
|
357
|
+
"examples": [
|
|
358
|
+
"accesskey"
|
|
359
|
+
]
|
|
360
|
+
},
|
|
361
|
+
"aws_secret_key": {
|
|
362
|
+
"type": "string",
|
|
363
|
+
"description": "AWS secret key for authentication",
|
|
364
|
+
"default": "",
|
|
365
|
+
"examples": [
|
|
366
|
+
"secretkey"
|
|
367
|
+
]
|
|
368
|
+
},
|
|
369
|
+
"aws_session_token": {
|
|
370
|
+
"type": "string",
|
|
371
|
+
"description": "AWS session token for all calls - not all systems require this",
|
|
372
|
+
"default": "",
|
|
373
|
+
"examples": [
|
|
374
|
+
"sessionToken"
|
|
375
|
+
]
|
|
376
|
+
},
|
|
377
|
+
"aws_iam_role": {
|
|
378
|
+
"type": "string",
|
|
379
|
+
"description": "AWS IAM Role for all calls - not all systems require this",
|
|
380
|
+
"default": "",
|
|
381
|
+
"examples": [
|
|
382
|
+
"roleOnAllCalls"
|
|
383
|
+
]
|
|
384
|
+
},
|
|
385
|
+
"aws_sts": {
|
|
386
|
+
"type": "object",
|
|
387
|
+
"properties": {
|
|
388
|
+
"sslEnable": {
|
|
389
|
+
"type": "boolean",
|
|
390
|
+
"description": "This can disable the ssl for the sts requests",
|
|
391
|
+
"default": true
|
|
392
|
+
},
|
|
393
|
+
"endpoint": {
|
|
394
|
+
"type": "string",
|
|
395
|
+
"description": "change the sts endpoint used for assume role",
|
|
396
|
+
"default": "",
|
|
397
|
+
"enum": [
|
|
398
|
+
"sts.amazonaws.com",
|
|
399
|
+
"sts.us-east-2.amazonaws.com",
|
|
400
|
+
""
|
|
401
|
+
]
|
|
402
|
+
},
|
|
403
|
+
"proxy": {
|
|
404
|
+
"type": "string",
|
|
405
|
+
"description": "add a proxy to calls used for assume role",
|
|
406
|
+
"default": "",
|
|
407
|
+
"examples": [
|
|
408
|
+
"https://1.1.1.1"
|
|
409
|
+
]
|
|
410
|
+
},
|
|
411
|
+
"proxyagent": {
|
|
412
|
+
"type": "string",
|
|
413
|
+
"description": "define a proxy agent for calls to assume role",
|
|
414
|
+
"default": "",
|
|
415
|
+
"examples": [
|
|
416
|
+
"https",
|
|
417
|
+
"http"
|
|
418
|
+
]
|
|
419
|
+
}
|
|
420
|
+
}
|
|
368
421
|
}
|
|
369
422
|
},
|
|
370
423
|
"required": [
|
|
Binary file
|
package/report/adapterInfo.json
CHANGED
package/sampleProperties.json
CHANGED
|
@@ -45,7 +45,13 @@
|
|
|
45
45
|
"aws_access_key": "aws_access_key",
|
|
46
46
|
"aws_secret_key": "aws_secret_key",
|
|
47
47
|
"aws_session_token": "aws_session_token",
|
|
48
|
-
"aws_iam_role": ""
|
|
48
|
+
"aws_iam_role": "",
|
|
49
|
+
"aws_sts": {
|
|
50
|
+
"sslEnable": true,
|
|
51
|
+
"endpoint": "",
|
|
52
|
+
"proxy": "",
|
|
53
|
+
"proxyagent": ""
|
|
54
|
+
}
|
|
49
55
|
},
|
|
50
56
|
"healthcheck": {
|
|
51
57
|
"type": "startup",
|
package/compliance-report.json
DELETED
package/compliance-report.txt
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
---------------------------------------------------------------------------------------------
|
|
2
|
-
**** Project Compliance Summary ****
|
|
3
|
-
0 project(s) are not valid
|
|
4
|
-
0 project(s) are valid
|
|
5
|
-
---------------------------------------------------------------------------------------------
|