Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1d14fcee19 | |||
| 30609de3e8 | |||
| 925ac027a6 | |||
| 3b769cf24a |
@@ -1546,3 +1546,12 @@ First tagged release. Establishes the `vX.Y.Z` tag convention going forward.
|
|||||||
[1.1.2]: https://github.com/theta42/theta-suite/compare/v1.1.1...v1.1.2
|
[1.1.2]: https://github.com/theta42/theta-suite/compare/v1.1.1...v1.1.2
|
||||||
[1.1.1]: https://github.com/theta42/theta-suite/compare/v1.1.0...v1.1.1
|
[1.1.1]: https://github.com/theta42/theta-suite/compare/v1.1.0...v1.1.1
|
||||||
[1.1.0]: https://github.com/theta42/theta-suite/releases/tag/v1.1.0
|
[1.1.0]: https://github.com/theta42/theta-suite/releases/tag/v1.1.0
|
||||||
|
|
||||||
|
## [1.34.4] - 2026-08-02
|
||||||
|
### Changed
|
||||||
|
- Updated `sso-manager-node` submodule to `v1.19.6` to pull in a fix for the Vault API 403 error on the Secrets List.
|
||||||
|
|
||||||
|
## [1.34.5] - 2026-08-02
|
||||||
|
### Added
|
||||||
|
- Automatically build and install `theta-agent` on the host system as a systemd service during `setup.sh`.
|
||||||
|
- Added `CFG_CREATE_ALL_HTTP` option to `setup.env` to create all default proxy host entries with `forcessl=false`.
|
||||||
|
|||||||
Vendored
+17
@@ -426,12 +426,16 @@ async function seedDirectory(token, clientId, jumpClientId) {
|
|||||||
macAddress: HOST_FACTS.mac,
|
macAddress: HOST_FACTS.mac,
|
||||||
os: HOST_FACTS.os,
|
os: HOST_FACTS.os,
|
||||||
kernel: HOST_FACTS.kernel,
|
kernel: HOST_FACTS.kernel,
|
||||||
|
sshPort: 22,
|
||||||
}, ['stack-host']);
|
}, ['stack-host']);
|
||||||
await ensure('service', 'SSO Manager', 'sso-manager', host.id, {
|
await ensure('service', 'SSO Manager', 'sso-manager', host.id, {
|
||||||
address: `https://${SSO_HOST}`,
|
address: `https://${SSO_HOST}`,
|
||||||
port: 3001,
|
port: 3001,
|
||||||
gitRepo: 'https://github.com/theta42/sso-manager-node',
|
gitRepo: 'https://github.com/theta42/sso-manager-node',
|
||||||
subType: 'web',
|
subType: 'web',
|
||||||
|
icon: 'mdi:shield-account',
|
||||||
|
tagline: 'Home-lab identity and access management.',
|
||||||
|
requestable: false,
|
||||||
});
|
});
|
||||||
// Proxy = the node management UI; OpenResty = the data plane every hostname
|
// Proxy = the node management UI; OpenResty = the data plane every hostname
|
||||||
// in the stack actually flows through (80/443). Two faces, two entries.
|
// in the stack actually flows through (80/443). Two faces, two entries.
|
||||||
@@ -440,6 +444,9 @@ async function seedDirectory(token, clientId, jumpClientId) {
|
|||||||
port: 3000,
|
port: 3000,
|
||||||
gitRepo: 'https://github.com/theta42/proxy',
|
gitRepo: 'https://github.com/theta42/proxy',
|
||||||
subType: 'web',
|
subType: 'web',
|
||||||
|
icon: 'mdi:server-network',
|
||||||
|
tagline: 'Reverse proxy and API gateway.',
|
||||||
|
requestable: false,
|
||||||
});
|
});
|
||||||
// OpenLDAP is independently consumed — Linux hosts authenticate against it
|
// OpenLDAP is independently consumed — Linux hosts authenticate against it
|
||||||
// (PAM/SSSD, sudoRole, sshPublicKey) and LDAP-native apps bind directly
|
// (PAM/SSSD, sudoRole, sshPublicKey) and LDAP-native apps bind directly
|
||||||
@@ -451,8 +458,12 @@ async function seedDirectory(token, clientId, jumpClientId) {
|
|||||||
address: `ldaps://${LDAPS_HOST}:636`,
|
address: `ldaps://${LDAPS_HOST}:636`,
|
||||||
port: 389,
|
port: 389,
|
||||||
externalPort: 636,
|
externalPort: 636,
|
||||||
|
portMappings: [{ proto: 'tcp', external: 636, internal: 389, comment: 'LDAPS' }],
|
||||||
gitRepo: 'https://github.com/theta42/sso-manager-node',
|
gitRepo: 'https://github.com/theta42/sso-manager-node',
|
||||||
subType: 'openldap',
|
subType: 'openldap',
|
||||||
|
icon: 'mdi:book-open-outline',
|
||||||
|
tagline: 'LDAP directory for identity.',
|
||||||
|
requestable: false,
|
||||||
});
|
});
|
||||||
// Wildcard address: OpenResty fronts every host under the domain (same
|
// Wildcard address: OpenResty fronts every host under the domain (same
|
||||||
// */** wildcard convention the proxy's Host records use). Its config lives
|
// */** wildcard convention the proxy's Host records use). Its config lives
|
||||||
@@ -462,6 +473,9 @@ async function seedDirectory(token, clientId, jumpClientId) {
|
|||||||
port: 443,
|
port: 443,
|
||||||
gitRepo: 'https://github.com/theta42/proxy',
|
gitRepo: 'https://github.com/theta42/proxy',
|
||||||
subType: 'openresty',
|
subType: 'openresty',
|
||||||
|
icon: 'mdi:router-network',
|
||||||
|
tagline: 'Data plane.',
|
||||||
|
requestable: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
// SSH jump host service (core component — always registered).
|
// SSH jump host service (core component — always registered).
|
||||||
@@ -473,6 +487,9 @@ async function seedDirectory(token, clientId, jumpClientId) {
|
|||||||
port: 3002,
|
port: 3002,
|
||||||
gitRepo: 'https://github.com/theta42/jump-host',
|
gitRepo: 'https://github.com/theta42/jump-host',
|
||||||
subType: 'ssh',
|
subType: 'ssh',
|
||||||
|
icon: 'mdi:ssh',
|
||||||
|
tagline: 'Secure SSH jump host.',
|
||||||
|
requestable: false,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -140,6 +140,13 @@ then converges the stack to your `./config/` values (LDAP service account + admi
|
|||||||
passwords are reset to the config; the OAuth client is kept if `proxy-secrets.js`
|
passwords are reset to the config; the OAuth client is kept if `proxy-secrets.js`
|
||||||
already holds its creds).
|
already holds its creds).
|
||||||
|
|
||||||
|
> **Troubleshooting: "A newer version is available" after running setup.sh?**
|
||||||
|
> If the UI shows this warning immediately after you ran `./setup.sh`, the latest
|
||||||
|
> GitHub release tag might not yet be merged into the default tracking branch for
|
||||||
|
> the submodules, or Docker may have cached the `COPY` step if the `package.json`
|
||||||
|
> didn't change. You can force a clean rebuild by running
|
||||||
|
> `docker compose build --no-cache` and then re-running `./setup.sh`.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Direct LDAP for LDAP-native clients and Linux hosts
|
## Direct LDAP for LDAP-native clients and Linux hosts
|
||||||
|
|||||||
+1
-1
Submodule jump-host updated: 463111dfd6...1100872152
+1
-1
Submodule ldap-client updated: ca8132f5ff...31d8fa1229
@@ -101,3 +101,9 @@ CFG_DOMAIN=example.com
|
|||||||
# Example for Site 1:
|
# Example for Site 1:
|
||||||
#LDAP_SERVER_ID=1
|
#LDAP_SERVER_ID=1
|
||||||
#LDAP_REPLICATION_HOSTS="ldaps://sso.site2.com:636 ldaps://sso.site3.com:636"
|
#LDAP_REPLICATION_HOSTS="ldaps://sso.site2.com:636 ldaps://sso.site3.com:636"
|
||||||
|
# ── Proxy HTTP/HTTPS Defaults ────────────────────────────────────────────────
|
||||||
|
# If you are running the stack behind an external reverse proxy (like Cloudflare
|
||||||
|
# or another ingress) that handles TLS termination, you may want the internal
|
||||||
|
# proxy to serve everything over plain HTTP without forcing redirects to HTTPS.
|
||||||
|
# Set this to 1 to create all default proxy host entries with forcessl=false.
|
||||||
|
#CFG_CREATE_ALL_HTTP=1
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ set -euo pipefail
|
|||||||
|
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
|
CFG_ADMIN_PASS="${CFG_ADMIN_PASS:-}"
|
||||||
CONFIG_DIR=./config
|
CONFIG_DIR=./config
|
||||||
BACKUP_DIR=./backups
|
BACKUP_DIR=./backups
|
||||||
BACKUP_KEEP="${BACKUP_KEEP:-5}"
|
BACKUP_KEEP="${BACKUP_KEEP:-5}"
|
||||||
@@ -442,6 +443,7 @@ BAOEOF
|
|||||||
CFG_ADMIN_PASS="${CFG_ADMIN_PASS:-}"
|
CFG_ADMIN_PASS="${CFG_ADMIN_PASS:-}"
|
||||||
CFG_SVC_PASS="${CFG_SVC_PASS:-}"
|
CFG_SVC_PASS="${CFG_SVC_PASS:-}"
|
||||||
CFG_PROXY_ADMIN_PASS="${CFG_PROXY_ADMIN_PASS:-}"
|
CFG_PROXY_ADMIN_PASS="${CFG_PROXY_ADMIN_PASS:-}"
|
||||||
|
CFG_CREATE_ALL_HTTP="${CFG_CREATE_ALL_HTTP:-0}"
|
||||||
|
|
||||||
# ── One-time migration from .env / proxy.env (existing deployments) ──
|
# ── One-time migration from .env / proxy.env (existing deployments) ──
|
||||||
# Preserve the operator's existing secrets so the running deployment keeps
|
# Preserve the operator's existing secrets so the running deployment keeps
|
||||||
@@ -976,7 +978,7 @@ async function ensureHost(host, ip, targetPort) {
|
|||||||
host: host,
|
host: host,
|
||||||
ip: ip,
|
ip: ip,
|
||||||
targetPort: targetPort,
|
targetPort: targetPort,
|
||||||
forcessl: true,
|
forcessl: $( [[ "$CFG_CREATE_ALL_HTTP" == "1" ]] && echo false || echo true ),
|
||||||
targetssl: false,
|
targetssl: false,
|
||||||
sso_enabled: false,
|
sso_enabled: false,
|
||||||
created_by: 'setup.sh',
|
created_by: 'setup.sh',
|
||||||
@@ -1033,7 +1035,7 @@ const {Host} = require('/app/models').models;
|
|||||||
try { await Host.get($(js_str "$JUMP_HOST")); console.log('SKIP ${JUMP_HOST} (already exists)'); }
|
try { await Host.get($(js_str "$JUMP_HOST")); console.log('SKIP ${JUMP_HOST} (already exists)'); }
|
||||||
catch (e) {
|
catch (e) {
|
||||||
if (e.name !== 'EntryNotFound') throw e;
|
if (e.name !== 'EntryNotFound') throw e;
|
||||||
await Host.create({ host: $(js_str "$JUMP_HOST"), ip: 'jump-host', targetPort: 3002, forcessl: true, targetssl: false, sso_enabled: false, created_by: 'setup.sh' });
|
await Host.create({ host: $(js_str "$JUMP_HOST"), ip: 'jump-host', targetPort: 3002, forcessl: $( [[ "$CFG_CREATE_ALL_HTTP" == "1" ]] && echo false || echo true ), targetssl: false, sso_enabled: false, created_by: 'setup.sh' });
|
||||||
console.log('CREATED ${JUMP_HOST} -> jump-host:3002');
|
console.log('CREATED ${JUMP_HOST} -> jump-host:3002');
|
||||||
}
|
}
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
@@ -1043,9 +1045,55 @@ NODEEOF
|
|||||||
)
|
)
|
||||||
echo "$JUMP_HOSTS_OUT" | sed 's/^/[setup] /'
|
echo "$JUMP_HOSTS_OUT" | sed 's/^/[setup] /'
|
||||||
|
|
||||||
|
# ── 7c. Install theta-agent on the host ──────────────────────────────────────
|
||||||
|
info "Setting up theta-agent on the host..."
|
||||||
|
(
|
||||||
|
cd theta-agent || exit 0
|
||||||
|
if ! command -v go >/dev/null 2>&1; then
|
||||||
|
warn "Go is not installed. Skipping theta-agent installation."
|
||||||
|
else
|
||||||
|
info " Building theta-agent..."
|
||||||
|
go build -o theta-agent main.go websocket.go config.go || warn " Failed to build theta-agent."
|
||||||
|
if [[ -x "theta-agent" ]]; then
|
||||||
|
sudo mkdir -p /etc/theta
|
||||||
|
if [[ ! -f /etc/theta/agent.yml ]]; then
|
||||||
|
sudo cp agent.yml.example /etc/theta/agent.yml
|
||||||
|
AGENT_TOKEN="$(rand_hex 16)"
|
||||||
|
sudo sed -i "s/REPLACE_WITH_AGENT_TOKEN/$AGENT_TOKEN/" /etc/theta/agent.yml
|
||||||
|
# We want to connect to either https or http depending on CFG_CREATE_ALL_HTTP
|
||||||
|
if [[ "$CFG_CREATE_ALL_HTTP" == "1" ]]; then
|
||||||
|
sudo sed -i "s|https://sso.example.com|http://${SSO_HOST}|" /etc/theta/agent.yml
|
||||||
|
else
|
||||||
|
sudo sed -i "s|https://sso.example.com|https://${SSO_HOST}|" /etc/theta/agent.yml
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
sudo cp theta-agent /usr/local/bin/theta-agent
|
||||||
|
sudo chmod +x /usr/local/bin/theta-agent
|
||||||
|
|
||||||
|
sudo bash -c "cat <<'EOF' > /etc/systemd/system/theta-agent.service
|
||||||
|
[Unit]
|
||||||
|
Description=Theta Agent
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
ExecStart=/usr/local/bin/theta-agent
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=5
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
EOF"
|
||||||
|
sudo systemctl daemon-reload
|
||||||
|
sudo systemctl enable --now theta-agent.service
|
||||||
|
info " theta-agent installed and started."
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
)
|
||||||
|
|
||||||
# ── 8. Summary ───────────────────────────────────────────────────────────────
|
# ── 8. Summary ───────────────────────────────────────────────────────────────
|
||||||
echo
|
echo
|
||||||
echo -e "\033[1;34m[setup]\033[0m \033[1;32mDone. Your SSO + proxy stack is up.\033[0m"
|
printf '\033[1;34m[setup]\033[0m \033[1;32mDone. Your SSO + proxy stack is up.\033[0m\n'
|
||||||
echo
|
echo
|
||||||
echo " SSO Manager UI: https://${SSO_HOST} (fronted by the proxy under TLS)"
|
echo " SSO Manager UI: https://${SSO_HOST} (fronted by the proxy under TLS)"
|
||||||
echo " first-run fallback: http://127.0.0.1:${SSO_PORT:-3001}"
|
echo " first-run fallback: http://127.0.0.1:${SSO_PORT:-3001}"
|
||||||
|
|||||||
+1
-1
Submodule sso-manager-node updated: 15b3a424bc...ef2207ed72
Reference in New Issue
Block a user