@itentialopensource/adapter-gcp_compute 1.2.0 → 1.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.
- package/AUTH.md +53 -0
- package/CHANGELOG.md +8 -0
- package/package.json +2 -2
- package/refs?service=git-upload-pack +0 -0
package/AUTH.md
CHANGED
|
@@ -28,6 +28,59 @@ STEPS
|
|
|
28
28
|
```
|
|
29
29
|
4. Restart the adapter. If your properties were set correctly, the adapter should go online.
|
|
30
30
|
|
|
31
|
+
### Using key in service config (Needed for Cloud Instance)
|
|
32
|
+
|
|
33
|
+
```json
|
|
34
|
+
"authentication": {
|
|
35
|
+
"auth_method": "no_authentication",
|
|
36
|
+
"username": "username",
|
|
37
|
+
"password": "password",
|
|
38
|
+
"token": "token",
|
|
39
|
+
"token_timeout": 3600000,
|
|
40
|
+
"token_cache": "local",
|
|
41
|
+
"invalid_token_error": 401,
|
|
42
|
+
"auth_field": "header.headers.Authorization",
|
|
43
|
+
"auth_field_format": "Bearer {token}",
|
|
44
|
+
"configureGtoken": {
|
|
45
|
+
"email": "sample@email.com",
|
|
46
|
+
"key": "-----BEGIN PRIVATE KEY-----\nMIIEv********--\n",
|
|
47
|
+
"scope": "https://www.********",
|
|
48
|
+
"eagerRefreshThresholdMillis": 300000,
|
|
49
|
+
"project_id": "myprojectid"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Using keyfile in service config
|
|
55
|
+
|
|
56
|
+
```json
|
|
57
|
+
"authentication": {
|
|
58
|
+
"auth_method": "no_authentication",
|
|
59
|
+
"username": "username",
|
|
60
|
+
"password": "password",
|
|
61
|
+
"token": "token",
|
|
62
|
+
"invalid_token_error": 401,
|
|
63
|
+
"token_timeout": 3600000,
|
|
64
|
+
"token_cache": "local",
|
|
65
|
+
"auth_field": "header.headers.Authorization",
|
|
66
|
+
"auth_field_format": "Bearer {token}",
|
|
67
|
+
"auth_logging": false,
|
|
68
|
+
"client_id": "",
|
|
69
|
+
"client_secret": "",
|
|
70
|
+
"grant_type": "",
|
|
71
|
+
"configureGtoken": {
|
|
72
|
+
"email": "",
|
|
73
|
+
"scope": "https://www.googleapis.com/auth/cloud-platform",
|
|
74
|
+
"sub": "",
|
|
75
|
+
"keyFile": "/opt/pronghorn/RENAME_TO_YOUR_KEYFILE.json",
|
|
76
|
+
"key": "",
|
|
77
|
+
"additionalClaims": "",
|
|
78
|
+
"eagerRefreshThresholdMillis": 300000
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
```
|
|
83
|
+
|
|
31
84
|
### Troubleshooting
|
|
32
85
|
- Make sure you copied over the correct username and password.
|
|
33
86
|
- Turn on debug level logs for the adapter in IAP Admin Essentials.
|
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-gcp_compute",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "This adapter integrates with system described as: computeEngineApi.",
|
|
5
5
|
"main": "adapter.js",
|
|
6
6
|
"systemName": "Google Cloud Compute",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"author": "Itential",
|
|
56
56
|
"homepage": "https://gitlab.com/itentialopensource/adapters/cloud/adapter-gcp_compute#readme",
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@itentialopensource/adapter-utils": "^4.
|
|
58
|
+
"@itentialopensource/adapter-utils": "^4.48.7",
|
|
59
59
|
"ajv": "^6.12.0",
|
|
60
60
|
"axios": "^0.21.0",
|
|
61
61
|
"commander": "^2.20.0",
|
|
Binary file
|