Repository navigation
Commit a8a76c5
feat: mount the Home Assistant /ssl directory read-only
The addon maps share, homeassistant_config and addon_config, but not the
standard Home Assistant `/ssl` directory. Certificates managed by addons such
as Let's Encrypt live there, so an MQTT TLS configuration pointing at them
fails at startup:
error: z2m: MQTT failed to connect, exiting...
(ENOENT: no such file or directory, open '/ssl/privkey.pem')
Copying the files into a mapped directory works but has to be redone on every
renewal, which defeats automated renewal; a symlink from the mapped config
directory is not followed.
Map `ssl` read-only, alongside the existing mappings. Read-only is sufficient:
the addon only needs to read the certificate and key, and the renewal is
performed by whichever addon manages them. Because the directory is mounted
rather than copied, renewals are picked up without further action.
Applied to both the stable and edge addons. The proxy addon is unchanged: it
does not connect to MQTT.
Closes #835
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 802761e commit a8a76c5
4 files changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
| |||
0 commit comments