[GH-ISSUE #1169] Pass information securely to scripts #2667

Closed
opened 2026-03-14 05:00:52 +03:00 by kerem · 1 comment
Owner

Originally created by @NiceGuyIT on GitHub (Jun 13, 2022).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/1169

Is your feature request related to a problem? Please describe.
I would like to pass information securely to scripts across all platforms. On Linux, the general consensus is to use environmental variables to pass secrets from the parent to the child process. I believe this holds true for Mac. Environmental variables may also work on Windows but I don't know if that is generally accepted.

Describe the solution you'd like
I would like to pass information securely to an executable on all platforms. It would be nice if TRMM can pass information via environmental variables to the script, rather than embedding the info in the script or as a command line parameter to the script.

Describe alternatives you've considered
Currently, I'm thinking of passing an encryption key to the script (embedded, not as an argument), set an environmental variable and then run a binary.

Additional context
I would like to use this for backups. URLs, encryption keys for storage and API keys are some of the information I'd like to keep private between TRMM and the backup process.

Originally created by @NiceGuyIT on GitHub (Jun 13, 2022). Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/1169 **Is your feature request related to a problem? Please describe.** I would like to pass information securely to scripts across all platforms. On Linux, the general consensus is to use environmental variables to pass secrets from the parent to the child process. I believe this holds true for Mac. Environmental variables may also work on Windows but I don't know if that is generally accepted. **Describe the solution you'd like** I would like to pass information securely to an executable on all platforms. It would be nice if TRMM can pass information via environmental variables to the script, rather than embedding the info in the script or as a command line parameter to the script. **Describe alternatives you've considered** Currently, I'm thinking of passing an encryption key to the script (embedded, not as an argument), set an environmental variable and then run a binary. **Additional context** I would like to use this for backups. URLs, encryption keys for storage and API keys are some of the information I'd like to keep private between TRMM and the backup process.
kerem 2026-03-14 05:00:52 +03:00
Author
Owner

@wh1te909 commented on GitHub (Dec 5, 2022):

added in 0.15.4

<!-- gh-comment-id:1336580462 --> @wh1te909 commented on GitHub (Dec 5, 2022): added in 0.15.4
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tacticalrmm#2667
No description provided.