node_exec
Execute shell or PowerShell scripts on appliance, bastion, or target nodes with Base64 transport and automatic secret scrubbing for controlled remote command execution.
Instructions
Execute a shell/PowerShell script on '@appliance', '@bastion', or a configured TargetNode with Base64 transport and secret scrubbing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Optional non-secret environment variables injected in-memory before running the script. | |
| node | Yes | Target node identifier ('@appliance', '@bastion', or a target name from enclave.yaml). | |
| tx_id | No | Optional stable transaction id. Reuse retrieves the original operation and never replays ambiguous work. | |
| script | Yes | Script content to execute on the specified node. | |
| as_root | No | Execute with elevated sudo privileges on a Linux TargetNode. | |
| secret_env | No | Optional mapping of target env var name -> SecretVault key name injected from OS Keychain/.env and auto-scrubbed from output. | |
| timeout_sec | No | Execution timeout in seconds. | |
| confirm_destructive | No | Explicitly authorize destructive commands (DROP, TRUNCATE, rm -rf, reboot). |