This commit is contained in:
2026-07-26 15:37:11 -05:00
parent 4c6bd2320f
commit ffa89f9911
4 changed files with 46 additions and 1 deletions
+25
View File
@@ -124,3 +124,28 @@ maintenance evacuation routing, HA affinity parsing, host-profile migration
signatures and backups, and VirtIO filename validation. Tests use temporary signatures and backups, and VirtIO filename validation. Tests use temporary
files and mocked Proxmox output; they do not download installers or change a files and mocked Proxmox output; they do not download installers or change a
Proxmox host. Proxmox host.
## Deployment broker URL
TA-ProxMenu exchanges deployment codes with the configured TAPM broker. The
URL is selected in this order:
1. Existing `TAPM_BROKER_URL` environment variable
2. `TAPM_BROKER_URL` in `/etc/ta-proxmenu/config.env`
For a persistent per-system setting:
```sh
install -d -m 0755 /etc/ta-proxmenu
install -m 0644 config.env.example /etc/ta-proxmenu/config.env
```
The tracked example contains only:
```dotenv
TAPM_BROKER_URL=https://tapm.example.com
```
Replace it with the deployed HTTPS origin, without an API path. There is no
hard-coded operational broker URL; authorization fails with a configuration
message when the variable is missing or invalid. Repository updates do not
overwrite the system configuration file.
+2
View File
@@ -0,0 +1,2 @@
# Copy to /etc/ta-proxmenu/config.env and replace with the deployed broker.
TAPM_BROKER_URL=https://tapm.example.com
+14 -1
View File
@@ -19,7 +19,20 @@ VIRTIO_STABLE_URL="https://fedorapeople.org/groups/virt/virtio-win/direct-downlo
PULSE_RELEASE='v6.1.1' PULSE_RELEASE='v6.1.1'
PULSE_PORT='7655' PULSE_PORT='7655'
TAPM_BROKER_URL='https://tapm.scity.us' TAPM_CONFIG_FILE='/etc/ta-proxmenu/config.env'
if [[ -z "${TAPM_BROKER_URL:-}" && -r "$TAPM_CONFIG_FILE" ]]; then
TAPM_BROKER_URL="$(
sed -n 's/^[[:space:]]*TAPM_BROKER_URL[[:space:]]*=[[:space:]]*//p' \
"$TAPM_CONFIG_FILE" |
tail -n 1
)"
TAPM_BROKER_URL="${TAPM_BROKER_URL#\"}"
TAPM_BROKER_URL="${TAPM_BROKER_URL%\"}"
TAPM_BROKER_URL="${TAPM_BROKER_URL#\'}"
TAPM_BROKER_URL="${TAPM_BROKER_URL%\'}"
fi
TAPM_BROKER_URL="${TAPM_BROKER_URL:-}"
TAPM_BROKER_URL="${TAPM_BROKER_URL%/}"
S1_BROKER_PACKAGE='sentinelone-linux' S1_BROKER_PACKAGE='sentinelone-linux'
S1_PACKAGE='tapm-sentinelone.deb' S1_PACKAGE='tapm-sentinelone.deb'
+5
View File
@@ -161,6 +161,11 @@ TAPM_AUTHORIZE() {
local -a access local -a access
TAPM_CLEAR_AUTHORIZATION TAPM_CLEAR_AUTHORIZATION
if ! TAPM_VALID_HTTPS_URL "${TAPM_BROKER_URL:-}"; then
echo -e "${idsCL[LightRed]}TAPM_BROKER_URL is not configured with a valid HTTPS origin.${idsCL[Default]}"
echo -e "${idsCL[LightYellow]}Set it in /etc/ta-proxmenu/config.env before authorizing this installation.${idsCL[Default]}"
return 1
fi
if ! command -v python3 >/dev/null 2>&1; then if ! command -v python3 >/dev/null 2>&1; then
echo -e "${idsCL[LightRed]}Python 3 is required to authorize ${authorization_label}.${idsCL[Default]}" echo -e "${idsCL[LightRed]}Python 3 is required to authorize ${authorization_label}.${idsCL[Default]}"
return 1 return 1