_is_plugin_enabled() reads config from wrong path (HERMES_HOME mismatch) #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
_is_plugin_enabled()in__init__.pyreads the config file fromHERMES_HOME / "config.yaml":When the plugin runs inside the gateway process,
HERMES_HOME=/root/.hermes, so it reads/root/.hermes/config.yaml. But theagenda:config key (e.g.agenda.state_key: agenda) is only in/root/.hermes/profiles/canal1/config.yaml.Since the config has no
agenda:section at/root/.hermes/config.yaml, the function always falls through to thereturn Truefail-open. This is a silent correctness issue — if someone explicitly disabled the plugin via profile config, it would be ignored.