Skip to content

Commit f6db695

Browse files
committed
Security Hardening: Lock down more built-in plugin fields to administrator-only (HTTP URL, Docker Run Command, etc.).
1 parent bf41044 commit f6db695

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

internal/setup.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@
181181
"created": 1434125333,
182182
"params": [
183183
{ "type":"select", "id":"method", "title":"Method", "value":"GET, HEAD, POST, PUT, DELETE" },
184-
{ "type":"text", "id":"url", "title":"URL", "value":"https://", "required": true },
184+
{ "type":"text", "id":"url", "title":"URL", "value":"https://", "required": true, "locked": true },
185185
{ "type":"textarea", "id":"headers", "title":"Request Headers", "value":"User-Agent: xyOps/HTTP-Plugin" },
186186
{ "type":"textarea", "id":"data", "title":"POST Data", "value":"" },
187187
{ "type":"text", "id":"timeout", "title":"Timeout (Seconds)", "value":"30" },
@@ -205,7 +205,7 @@
205205
"title": "Image Name",
206206
"type": "text",
207207
"caption": "Enter the name of the Docker image to use, which can be local or remote.",
208-
"locked": false,
208+
"locked": true,
209209
"value": "ghcr.io/pixlcore/xyops-shell-image",
210210
"variant": "text",
211211
"required": true
@@ -215,7 +215,7 @@
215215
"title": "Image Version",
216216
"type": "text",
217217
"caption": "Enter the desired version of the image to use, or use \"latest\" for the latest version.",
218-
"locked": false,
218+
"locked": true,
219219
"value": "latest",
220220
"variant": "text",
221221
"required": true
@@ -265,7 +265,7 @@
265265
"title": "Command Extras",
266266
"type": "text",
267267
"caption": "Optionally add any extra command-line arguments to pass to `docker run` (for e.g. volume mounts).",
268-
"locked": false,
268+
"locked": true,
269269
"value": "",
270270
"variant": "text",
271271
"required": false
@@ -275,7 +275,7 @@
275275
"title": "Launch Command",
276276
"type": "text",
277277
"caption": "Enter the initial command to run as the container starts. It is recommended to use [xyrun](https://github.com/pixlcore/xyrun) for this, so resources are monitored, and files are managed properly.\n",
278-
"locked": false,
278+
"locked": true,
279279
"value": "xyrun",
280280
"variant": "text",
281281
"required": false

0 commit comments

Comments
 (0)