mirror of
https://scm.tikali.ai/tikali/applications/monky/monky-deployd.git
synced 2026-09-18 05:36:15 +00:00
fix: accept sites fmt|cbs|pdx|roam (tenancy 0.7.x) and keep the identity read grant alive across tunneller rewrites — 0.1.10
deployd#3 (DD-0620): every kit for a backend registered since 2026-09-08 died at `--site`. env-dev-08 (2026-09-11..13): two days of "identity is not readable" ticks — ziti-edge-tunnel re-creates the file with mode 0600, the ACL mask goes to ---, group membership stops helping. identity-acl.sh + monky-deployd-identity-acl.path re-apply the grant on every directory change. Doc-Drift: DD-0620 fixed Closes #3 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ASnneBmT7rfaJLE8NGNw7S
This commit is contained in:
@@ -18,6 +18,9 @@ if getent group docker >/dev/null; then usermod -a -G docker monky-deployd || tr
|
||||
# POSIX ACL granting the agent read — group membership is the grant that survives it.
|
||||
# (env-dev-08, 2026-09-09: the agent went from applied to "no intercept" 6 minutes after a refresh.)
|
||||
if getent group ziti >/dev/null; then usermod -a -G ziti monky-deployd || true; fi
|
||||
# ...and group membership does NOT survive it either once the rewrite lands with mode 0600 (the ACL
|
||||
# mask goes to ---). Re-apply the grant now and on every directory change (0.1.10, deployd#3 beat).
|
||||
[ -x /usr/share/monky-deployd/identity-acl.sh ] && /usr/share/monky-deployd/identity-acl.sh /opt/openziti/etc/identities || true
|
||||
# the venv is relocatable only to the path it was built at; refuse a broken interpreter early
|
||||
/opt/monky-deployd/venv/bin/python -c 'import monky_deployd' || { echo "monky-deployd: venv unusable (python3 mismatch?)" >&2; exit 1; }
|
||||
if [ -d /run/systemd/system ]; then
|
||||
@@ -26,5 +29,7 @@ if [ -d /run/systemd/system ]; then
|
||||
# An UPGRADE is different — the timer is already enabled and must keep running, so restart the
|
||||
# long-lived proxy unit onto the new code. `try-restart` is a no-op when it is not running.
|
||||
systemctl try-restart monky-deployd-proxy.service 2>/dev/null || true
|
||||
# an UPGRADE of a box that already has its config: arm the identity-ACL watcher
|
||||
if [ -s /etc/monky-deployd/config.yaml ]; then systemctl enable --now monky-deployd-identity-acl.path 2>/dev/null || true; fi
|
||||
fi
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user