Skip to content

Commit

Permalink
fix(emqx): ACLs
Browse files Browse the repository at this point in the history
  • Loading branch information
JJGadgets committed Feb 1, 2025
1 parent e7e8212 commit 91c2d51
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions kube/deploy/core/db/emqx/cluster/emqx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ spec:
enable = true
type = file
path = "/secrets/acl.conf"
},
{
enable = true
type = built_in_database
# },
# {
# enable = true
# type = built_in_database
}
]
}
Expand Down
4 changes: 3 additions & 1 deletion kube/deploy/core/db/emqx/cluster/es.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@ spec:
%% Zigbee2MQTT, data and HASS discovery
{allow, {user, "{{ .X_EMQX_MQTT_Z2M_USERNAME }}"}, publish, ["homeassistant/#"]}.
{allow, {user, "{{ .X_EMQX_MQTT_Z2M_USERNAME }}"}, subscribe, ["homeassistant/status"]}.
{allow, {user, "{{ .X_EMQX_MQTT_Z2M_USERNAME }}"}, all, ["hass/#", "zigbee2mqtt/#"]}.
%% Valetudo, data and HASS discovery
{allow, {user, "{{ .X_EMQX_MQTT_VALETUDO_USERNAME }}"}, publish, ["homeassistant/#"]}.
{allow, {user, "{{ .X_EMQX_MQTT_VALETUDO_USERNAME }}"}, subscribe, ["homeassistant/status"]}.
{allow, {user, "{{ .X_EMQX_MQTT_VALETUDO_USERNAME }}"}, all, ["valetudo/#"]}.
%% Default Deny All
{deny, all}.
%%{deny, all}. %% commented out to allow failures to be logged

0 comments on commit 91c2d51

Please sign in to comment.