@probo/n8n-nodes-probo 0.224.0 → 0.225.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/dist/nodes/Probo/actions/accessReviewSource/create.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/accessReviewSource/create.operation.js +138 -0
- package/dist/nodes/Probo/actions/accessReviewSource/create.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/accessReviewSource/index.d.ts +3 -1
- package/dist/nodes/Probo/actions/accessReviewSource/index.js +19 -1
- package/dist/nodes/Probo/actions/accessReviewSource/index.js.map +1 -1
- package/dist/nodes/Probo/actions/accessReviewSource/probe.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/accessReviewSource/probe.operation.js +63 -0
- package/dist/nodes/Probo/actions/accessReviewSource/probe.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/accessReviewSource/setupAws.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/accessReviewSource/setupAws.operation.js +42 -0
- package/dist/nodes/Probo/actions/accessReviewSource/setupAws.operation.js.map +1 -0
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.description = void 0;
|
|
4
|
+
exports.execute = execute;
|
|
5
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
6
|
+
const GenericFunctions_1 = require("../../GenericFunctions");
|
|
7
|
+
exports.description = [
|
|
8
|
+
{
|
|
9
|
+
displayName: 'Organization ID',
|
|
10
|
+
name: 'organizationId',
|
|
11
|
+
type: 'string',
|
|
12
|
+
displayOptions: {
|
|
13
|
+
show: {
|
|
14
|
+
resource: ['accessReviewSource'],
|
|
15
|
+
operation: ['create'],
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
default: '',
|
|
19
|
+
description: 'The ID of the organization',
|
|
20
|
+
required: true,
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
displayName: 'Name',
|
|
24
|
+
name: 'name',
|
|
25
|
+
type: 'string',
|
|
26
|
+
displayOptions: {
|
|
27
|
+
show: {
|
|
28
|
+
resource: ['accessReviewSource'],
|
|
29
|
+
operation: ['create'],
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
default: '',
|
|
33
|
+
description: 'The name of the access source',
|
|
34
|
+
required: true,
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
displayName: 'AWS Role ARN',
|
|
38
|
+
name: 'awsRoleArn',
|
|
39
|
+
type: 'string',
|
|
40
|
+
displayOptions: {
|
|
41
|
+
show: {
|
|
42
|
+
resource: ['accessReviewSource'],
|
|
43
|
+
operation: ['create'],
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
default: '',
|
|
47
|
+
description: 'IAM role ARN, including partition, account, and role name',
|
|
48
|
+
required: true,
|
|
49
|
+
},
|
|
50
|
+
];
|
|
51
|
+
async function execute(itemIndex) {
|
|
52
|
+
var _a;
|
|
53
|
+
const organizationId = this.getNodeParameter('organizationId', itemIndex);
|
|
54
|
+
const name = this.getNodeParameter('name', itemIndex);
|
|
55
|
+
const awsRoleArn = this.getNodeParameter('awsRoleArn', itemIndex);
|
|
56
|
+
const createConnectorQuery = `
|
|
57
|
+
mutation CreateWorkloadIdentityConnector($input: CreateWorkloadIdentityConnectorInput!) {
|
|
58
|
+
createWorkloadIdentityConnector(input: $input) {
|
|
59
|
+
connector {
|
|
60
|
+
id
|
|
61
|
+
provider
|
|
62
|
+
protocol
|
|
63
|
+
connectionStatus
|
|
64
|
+
createdAt
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
`;
|
|
69
|
+
const connectorInput = {
|
|
70
|
+
organizationId,
|
|
71
|
+
provider: 'AWS',
|
|
72
|
+
awsRoleArn,
|
|
73
|
+
};
|
|
74
|
+
const connectorResponse = await GenericFunctions_1.proboApiRequest.call(this, createConnectorQuery, {
|
|
75
|
+
input: connectorInput,
|
|
76
|
+
});
|
|
77
|
+
const connectorPayload = (_a = connectorResponse.data) === null || _a === void 0 ? void 0 : _a.createWorkloadIdentityConnector;
|
|
78
|
+
const connector = connectorPayload === null || connectorPayload === void 0 ? void 0 : connectorPayload.connector;
|
|
79
|
+
const connectorId = connector === null || connector === void 0 ? void 0 : connector.id;
|
|
80
|
+
if (!connectorId) {
|
|
81
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Workload identity connector was not created');
|
|
82
|
+
}
|
|
83
|
+
const connectionStatus = connector === null || connector === void 0 ? void 0 : connector.connectionStatus;
|
|
84
|
+
const createSourceQuery = `
|
|
85
|
+
mutation CreateAccessReviewSource($input: CreateAccessReviewSourceInput!) {
|
|
86
|
+
createAccessReviewSource(input: $input) {
|
|
87
|
+
created
|
|
88
|
+
accessReviewSourceEdge {
|
|
89
|
+
node {
|
|
90
|
+
id
|
|
91
|
+
name
|
|
92
|
+
connectorId
|
|
93
|
+
createdAt
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
`;
|
|
99
|
+
const deleteConnectorQuery = `
|
|
100
|
+
mutation DeleteConnector($input: DeleteConnectorInput!) {
|
|
101
|
+
deleteConnector(input: $input) {
|
|
102
|
+
deletedConnectorId
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
`;
|
|
106
|
+
try {
|
|
107
|
+
if (connectionStatus !== 'CONNECTED') {
|
|
108
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Connector is ${connectionStatus !== null && connectionStatus !== void 0 ? connectionStatus : 'in an unknown state'}`, { itemIndex });
|
|
109
|
+
}
|
|
110
|
+
const sourceResponse = await GenericFunctions_1.proboApiRequest.call(this, createSourceQuery, {
|
|
111
|
+
input: {
|
|
112
|
+
organizationId,
|
|
113
|
+
name,
|
|
114
|
+
connectorId,
|
|
115
|
+
},
|
|
116
|
+
});
|
|
117
|
+
return {
|
|
118
|
+
json: sourceResponse,
|
|
119
|
+
pairedItem: { item: itemIndex },
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
catch (error) {
|
|
123
|
+
try {
|
|
124
|
+
await GenericFunctions_1.proboApiRequest.call(this, deleteConnectorQuery, {
|
|
125
|
+
input: { connectorId },
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
catch (cleanupError) {
|
|
129
|
+
const cleanupMessage = cleanupError instanceof Error ? cleanupError.message : String(cleanupError);
|
|
130
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), error instanceof Error ? error : new Error(String(error)), {
|
|
131
|
+
itemIndex,
|
|
132
|
+
description: `Cannot delete leftover connector ${connectorId}: ${cleanupMessage}`,
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), error, { itemIndex });
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
//# sourceMappingURL=create.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/accessReviewSource/create.operation.ts"],"names":[],"mappings":";;;AAqEA,0BA4GC;AA5JD,+CAAkD;AAClD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,oBAAoB,CAAC;gBAChC,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,4BAA4B;QACzC,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;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K,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EACzD;gBACC,SAAS;gBACT,WAAW,EAAE,oCAAoC,WAAW,KAAK,cAAc,EAAE;aACjF,CACD,CAAC;QACH,CAAC;QAED,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,KAAc,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC;IAC7E,CAAC;AACF,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { INodeProperties } from 'n8n-workflow';
|
|
2
|
+
import * as createOp from './create.operation';
|
|
2
3
|
import * as getAllOp from './getAll.operation';
|
|
4
|
+
import * as setupAwsOp from './setupAws.operation';
|
|
3
5
|
export declare const description: INodeProperties[];
|
|
4
|
-
export { getAllOp as getAll };
|
|
6
|
+
export { createOp as create, getAllOp as getAll, setupAwsOp as setupAws };
|
|
@@ -33,9 +33,13 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.getAll = exports.description = void 0;
|
|
36
|
+
exports.setupAws = exports.getAll = exports.create = exports.description = void 0;
|
|
37
|
+
const createOp = __importStar(require("./create.operation"));
|
|
38
|
+
exports.create = createOp;
|
|
37
39
|
const getAllOp = __importStar(require("./getAll.operation"));
|
|
38
40
|
exports.getAll = getAllOp;
|
|
41
|
+
const setupAwsOp = __importStar(require("./setupAws.operation"));
|
|
42
|
+
exports.setupAws = setupAwsOp;
|
|
39
43
|
exports.description = [
|
|
40
44
|
{
|
|
41
45
|
displayName: 'Operation',
|
|
@@ -48,15 +52,29 @@ exports.description = [
|
|
|
48
52
|
},
|
|
49
53
|
},
|
|
50
54
|
options: [
|
|
55
|
+
{
|
|
56
|
+
name: 'Create',
|
|
57
|
+
value: 'create',
|
|
58
|
+
description: 'Create an AWS workload-identity access source',
|
|
59
|
+
action: 'Create an access review source',
|
|
60
|
+
},
|
|
51
61
|
{
|
|
52
62
|
name: 'Get Many',
|
|
53
63
|
value: 'getAll',
|
|
54
64
|
description: 'Get many access review sources',
|
|
55
65
|
action: 'Get many access review sources',
|
|
56
66
|
},
|
|
67
|
+
{
|
|
68
|
+
name: 'Setup AWS',
|
|
69
|
+
value: 'setupAws',
|
|
70
|
+
description: 'Get AWS access source setup values',
|
|
71
|
+
action: 'Get AWS access source setup',
|
|
72
|
+
},
|
|
57
73
|
],
|
|
58
74
|
default: 'getAll',
|
|
59
75
|
},
|
|
76
|
+
...createOp.description,
|
|
60
77
|
...getAllOp.description,
|
|
78
|
+
...setupAwsOp.description,
|
|
61
79
|
];
|
|
62
80
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/accessReviewSource/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,6DAA+C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/accessReviewSource/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,6DAA+C;AA0C1B,0BAAM;AAzC3B,6DAA+C;AAyCN,0BAAM;AAxC/C,iEAAmD;AAwCY,8BAAQ;AAtC1D,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,oBAAoB,CAAC;aAChC;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,+CAA+C;gBAC5D,MAAM,EAAE,gCAAgC;aACxC;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,gCAAgC;gBAC7C,MAAM,EAAE,gCAAgC;aACxC;YACD;gBACC,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,UAAU;gBACjB,WAAW,EAAE,oCAAoC;gBACjD,MAAM,EAAE,6BAA6B;aACrC;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;IACD,GAAG,QAAQ,CAAC,WAAW;IACvB,GAAG,QAAQ,CAAC,WAAW;IACvB,GAAG,UAAU,CAAC,WAAW;CACzB,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.description = void 0;
|
|
4
|
+
exports.execute = execute;
|
|
5
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
6
|
+
const GenericFunctions_1 = require("../../GenericFunctions");
|
|
7
|
+
exports.description = [
|
|
8
|
+
{
|
|
9
|
+
displayName: 'Access Review Source ID',
|
|
10
|
+
name: 'accessReviewSourceId',
|
|
11
|
+
type: 'string',
|
|
12
|
+
displayOptions: {
|
|
13
|
+
show: {
|
|
14
|
+
resource: ['accessReviewSource'],
|
|
15
|
+
operation: ['probe'],
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
default: '',
|
|
19
|
+
description: 'The ID of the access review source',
|
|
20
|
+
required: true,
|
|
21
|
+
},
|
|
22
|
+
];
|
|
23
|
+
async function execute(itemIndex) {
|
|
24
|
+
var _a;
|
|
25
|
+
const accessReviewSourceId = this.getNodeParameter('accessReviewSourceId', itemIndex);
|
|
26
|
+
const sourceQuery = `
|
|
27
|
+
query GetAccessReviewSource($id: ID!) {
|
|
28
|
+
node(id: $id) {
|
|
29
|
+
__typename
|
|
30
|
+
... on AccessReviewSource {
|
|
31
|
+
id
|
|
32
|
+
connectorId
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
`;
|
|
37
|
+
const sourceResponse = await GenericFunctions_1.proboApiRequest.call(this, sourceQuery, {
|
|
38
|
+
id: accessReviewSourceId,
|
|
39
|
+
});
|
|
40
|
+
const node = (_a = sourceResponse.data) === null || _a === void 0 ? void 0 : _a.node;
|
|
41
|
+
if (!node || node.__typename !== 'AccessReviewSource') {
|
|
42
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Access review source ${accessReviewSourceId} not found`);
|
|
43
|
+
}
|
|
44
|
+
const connectorId = node.connectorId;
|
|
45
|
+
if (!connectorId) {
|
|
46
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Access review source ${accessReviewSourceId} has no connector`);
|
|
47
|
+
}
|
|
48
|
+
const query = `
|
|
49
|
+
mutation ProbeConnector($input: ProbeConnectorInput!) {
|
|
50
|
+
probeConnector(input: $input) {
|
|
51
|
+
ok
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
`;
|
|
55
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, {
|
|
56
|
+
input: { connectorId },
|
|
57
|
+
});
|
|
58
|
+
return {
|
|
59
|
+
json: responseData,
|
|
60
|
+
pairedItem: { item: itemIndex },
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=probe.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"probe.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/accessReviewSource/probe.operation.ts"],"names":[],"mappings":";;;AAyCA,0BAsDC;AA1ED,+CAAkD;AAClD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,yBAAyB;QACtC,IAAI,EAAE,sBAAsB;QAC5B,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,oBAAoB,CAAC;gBAChC,SAAS,EAAE,CAAC,OAAO,CA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
|
+
exports.description = void 0;
|
|
4
|
+
exports.execute = execute;
|
|
5
|
+
const GenericFunctions_1 = require("../../GenericFunctions");
|
|
6
|
+
exports.description = [
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Organization ID',
|
|
9
|
+
name: 'organizationId',
|
|
10
|
+
type: 'string',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['accessReviewSource'],
|
|
14
|
+
operation: ['setupAws'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the organization',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
async function execute(itemIndex) {
|
|
23
|
+
const organizationId = this.getNodeParameter('organizationId', itemIndex);
|
|
24
|
+
const query = `
|
|
25
|
+
query AwsConnectorSetup($organizationId: ID!) {
|
|
26
|
+
awsConnectorSetup(organizationId: $organizationId) {
|
|
27
|
+
issuer
|
|
28
|
+
audience
|
|
29
|
+
subject
|
|
30
|
+
suggestedRoleName
|
|
31
|
+
terraformSnippet
|
|
32
|
+
cloudFormationQuickCreateURL
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
`;
|
|
36
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { organizationId });
|
|
37
|
+
return {
|
|
38
|
+
json: responseData,
|
|
39
|
+
pairedItem: { item: itemIndex },
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=setupAws.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setupAws.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/accessReviewSource/setupAws.operation.ts"],"names":[],"mappings":";;;AAwCA,0BAyBC;AA5CD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,oBAAoB,CAAC;gBAChC,SAAS,EAAE,CAAC,UAAU,CAAC;aACvB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,4BAA4B;QACzC,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,cAAc,GAAG,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,SAAS,CAAW,CAAC;IAEpF,MAAM,KAAK,GAAG;;;;;;;;;;;EAWb,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,CAAC,CAAC;IAEjF,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|