Skip to content

Name the shared broker in HispecDaemon and apply LIBBY_ environment overrides - #238

Merged
mikelangmayr merged 1 commit into
mainfrom
mike/daemon-broker-url-and-env-overrides
Oct 1, 2026
Merged

mikelangmayr merged 1 commit into
mainfrom
mike/daemon-broker-url-and-env-overrides

Conversation

@mikelangmayr

@mikelangmayr mikelangmayr commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor
  • Set rabbitmq_url on HispecDaemon so the broker address is declared once instead of per daemon config; no deployed config sets it today
  • Default from_config_file to env_prefix="LIBBY_", so LIBBY_<KEY> variables override config keys; it was passed as None, which read LIBBY_RABBITMQ_URL and silently ignored it
  • The broker address carries no credentials, so a password can live in the root-only /etc/hispec/secrets.env rather than a config file every hispec-ops member can read
  • Document the LIBBY_RABBITMQ_URL deploy step under Secrets
  • Deploy step: add LIBBY_RABBITMQ_URL to /etc/hispec/secrets.env on each host before restarting daemons, since an off-host daemon cannot use guest and an on-host one no longer connects over loopback
  • Verified on the camera host: with no credential the daemon is refused with ACCESS_REFUSED, and with LIBBY_RABBITMQ_URL alone it serves all 25 keywords with no broker line in its YAML
  • pylint 10.00/10 on the changed module

@mikelangmayr
mikelangmayr force-pushed the mike/daemon-broker-url-and-env-overrides branch from 3a215aa to 0b0a9e4 Compare October 1, 2026 01:03
@mikelangmayr
mikelangmayr merged commit b680660 into main Oct 1, 2026
4 checks passed
@mikelangmayr
mikelangmayr deleted the mike/daemon-broker-url-and-env-overrides branch October 1, 2026 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants