n8n-nodes-krova 0.3.1 → 0.3.3
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/README.md +23 -2
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -49,6 +49,7 @@ Cubes are scoped to a **Space**, so every Cube operation takes a **Space ID**.
|
|
|
49
49
|
| **Create** | Space ID, Name, Image, SSH Public Key, vCPU, RAM (GB), Disk (GB); optional Region, User Data | Create a new Cube in a Space | `POST /spaces/{spaceId}/cubes` |
|
|
50
50
|
| **Power Off** | Space ID, Cube ID | Power off a running Cube — preserves data, stops compute billing, frees host RAM | `POST /spaces/{spaceId}/cubes/{cubeId}/power-off` |
|
|
51
51
|
| **Restart** | Space ID, Cube ID | Cold-restart a **running** Cube — boots against the host's current kernel, preserving the disk. The only way to pick up a refreshed guest kernel: a `reboot` issued inside the Cube cannot change it, and reports no error | `POST /spaces/{spaceId}/cubes/{cubeId}/restart` |
|
|
52
|
+
| **Set Termination Protection** | Space ID, Cube ID, Termination Protection | Turn a Cube's termination protection on or off. While it is on, the API refuses to delete the Cube (HTTP `409`) until it is turned off. Power-off, start, restart, snapshot and restore still work. Idempotent: setting the current value changes nothing | `PATCH /spaces/{spaceId}/cubes/{cubeId}` |
|
|
52
53
|
| **Start** | Space ID, Cube ID | Start a stopped Cube | `POST /spaces/{spaceId}/cubes/{cubeId}/wake` |
|
|
53
54
|
| **Delete** | Space ID, Cube ID | Delete a Cube (asynchronous) | `DELETE /spaces/{spaceId}/cubes/{cubeId}` |
|
|
54
55
|
|
|
@@ -59,6 +60,8 @@ Cubes are scoped to a **Space**, so every Cube operation takes a **Space ID**.
|
|
|
59
60
|
- **vCPU / RAM (GB) / Disk (GB)** — sent as nested `resources.{vcpu,ramGb,diskGb}`. Every Space gets the same per-Cube ceiling (16 vCPU / 32 GB RAM / 100 GB disk) — **size is not tiered**. Ceilings depend on a per-Space override and on host capacity, not on which tier you are on.
|
|
60
61
|
- **Region** (optional) — a region slug from **Catalog → Get Regions**. Leave empty to auto-select.
|
|
61
62
|
- **User Data** (optional) — a cloud-init script run at first boot (max 16 KB).
|
|
63
|
+
- **Plan create limit** — each plan sets a create limit, per minute and per month, and deleted Cubes count toward it. Over a limit the API answers `429` and the node fails; the response's `Retry-After` header says how long to wait before trying again. The 600 requests per minute limit per API key also applies to every call the node makes.
|
|
64
|
+
- **Termination protection** — the Create operation has no field for it. Create the Cube, then run **Set Termination Protection** on it.
|
|
62
65
|
|
|
63
66
|
### Catalog
|
|
64
67
|
|
|
@@ -140,9 +143,27 @@ Expose a Cube TCP port on the host.
|
|
|
140
143
|
| Operation | Fields | Description | Endpoint |
|
|
141
144
|
| --- | --- | --- | --- |
|
|
142
145
|
| **List** | Space ID, Cube ID | List a Cube's TCP port mappings | `GET /spaces/{spaceId}/cubes/{cubeId}/tcp-mappings` |
|
|
143
|
-
| **Create** | Space ID, Cube ID, Cube Port | Expose a Cube TCP port on the host | `POST /spaces/{spaceId}/cubes/{cubeId}/tcp-mappings` |
|
|
146
|
+
| **Create** | Space ID, Cube ID, Cube Port; Additional Fields: UDP Enabled | Expose a Cube TCP port on the host | `POST /spaces/{spaceId}/cubes/{cubeId}/tcp-mappings` |
|
|
144
147
|
| **Delete** | Space ID, Cube ID, Mapping ID | Remove a TCP port mapping | `DELETE /spaces/{spaceId}/cubes/{cubeId}/tcp-mappings/{mappingId}` |
|
|
145
148
|
|
|
149
|
+
**Warning: open to the whole internet.** The node has no allow-list field, so a mapping created here accepts connections from any address, on TCP and (by default) UDP. If the port serves a database or anything else private, restrict it right away: create the mapping with the Krova dashboard, the API (`whitelistedIps` on `POST .../tcp-mappings`) or the CLI (`krova tcp add --whitelist <cidr>`) instead, or delete the node-created mapping and recreate it there.
|
|
150
|
+
|
|
151
|
+
**UDP Enabled** (Additional Fields, Create) — UDP is forwarded on the same host port as TCP unless you turn this off. Leave the field out to keep UDP on; add it and set it to false for TCP only.
|
|
152
|
+
|
|
153
|
+
### Webhook
|
|
154
|
+
|
|
155
|
+
Webhook endpoints in a Space: Krova POSTs the events you subscribe to. Every operation takes a **Space ID**. To check a delivery's signature in your workflow, use [`@krovacloud/webhook`](https://www.npmjs.com/package/@krovacloud/webhook).
|
|
156
|
+
|
|
157
|
+
| Operation | Fields | Description | Endpoint |
|
|
158
|
+
| --- | --- | --- | --- |
|
|
159
|
+
| **Create** | Space ID, URL, Events; optional Description | Create a webhook endpoint. **The signing secret is in this response only.** Save it before the workflow ends, because it cannot be read back | `POST /spaces/{spaceId}/webhooks` |
|
|
160
|
+
| **Delete** | Space ID, Endpoint ID | Delete a webhook endpoint | `DELETE /spaces/{spaceId}/webhooks/{endpointId}` |
|
|
161
|
+
| **Get** | Space ID, Endpoint ID | Retrieve one webhook endpoint (no secret) | `GET /spaces/{spaceId}/webhooks/{endpointId}` |
|
|
162
|
+
| **List** | Space ID | List the webhook endpoints in a Space | `GET /spaces/{spaceId}/webhooks` |
|
|
163
|
+
| **List Deliveries** | Space ID, Endpoint ID; Limit (default 50) | Recent delivery attempts for an endpoint | `GET /spaces/{spaceId}/webhooks/{endpointId}/deliveries` |
|
|
164
|
+
|
|
165
|
+
**Events** is a comma-separated list of event names, for example `cube.running, cube.stopped`.
|
|
166
|
+
|
|
146
167
|
Each operation returns the raw Krova Cloud API response, ready to reference downstream with n8n expressions.
|
|
147
168
|
|
|
148
169
|
## Example workflow
|
|
@@ -158,7 +179,7 @@ Because a stopped Cube keeps its disk but stops compute billing, this pattern gi
|
|
|
158
179
|
## Compatibility
|
|
159
180
|
|
|
160
181
|
- Requires an n8n instance with the community-nodes feature enabled.
|
|
161
|
-
- Built and tested against `n8n-workflow` 2.x and Node.js **
|
|
182
|
+
- Built and tested against `n8n-workflow` 2.x and Node.js **22 or later**.
|
|
162
183
|
|
|
163
184
|
## Related packages
|
|
164
185
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-krova",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "n8n community node for Krova Cloud — create, start, power off, restart, list, and delete Cubes (Firecracker microVMs), manage domains, snapshots and TCP mappings, and read regions, images and pricing via the Krova Cloud API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package",
|
|
@@ -51,14 +51,14 @@
|
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@eslint/eslintrc": "^3.3.7",
|
|
54
|
-
"@typescript-eslint/parser": "8.
|
|
55
|
-
"@typescript-eslint/utils": "8.
|
|
56
|
-
"eslint": "10.
|
|
54
|
+
"@typescript-eslint/parser": "8.74.0",
|
|
55
|
+
"@typescript-eslint/utils": "8.74.0",
|
|
56
|
+
"eslint": "10.16.0",
|
|
57
57
|
"eslint-plugin-n8n-nodes-base": "2.0.0",
|
|
58
|
-
"jsonc-eslint-parser": "3.3.
|
|
59
|
-
"n8n-core": "2.
|
|
60
|
-
"n8n-workflow": "2.
|
|
61
|
-
"oxfmt": "0.
|
|
58
|
+
"jsonc-eslint-parser": "3.3.2",
|
|
59
|
+
"n8n-core": "2.49.8",
|
|
60
|
+
"n8n-workflow": "2.49.6",
|
|
61
|
+
"oxfmt": "0.80.0",
|
|
62
62
|
"typescript": "^6.0.3"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|