Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fff4b994e1 | |||
| 13c399133c | |||
| 940a41669f | |||
| e9b43da768 | |||
| c14b628558 | |||
| a502aa0128 |
@@ -1,5 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## 0.5.1 - 2026-10-11
|
||||
|
||||
- Bug fix
|
||||
|
||||
## 0.5.0 - 2026-10-11
|
||||
|
||||
- Upgraded image build precedure
|
||||
@@ -25,4 +29,4 @@
|
||||
|
||||
## 0.3.0
|
||||
|
||||
- Initial release.
|
||||
- Initial release.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM ghcr.io/home-assistant/base:2026.10.1
|
||||
FROM ghcr.io/home-assistant/base:3.24
|
||||
|
||||
RUN apk add --no-cache python3 py3-pip
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
name: "MQTT Certificate Manager"
|
||||
version: "0.5.0"
|
||||
version: "0.5.1"
|
||||
slug: "mqtt_cert_manager"
|
||||
description: "Local CA that issues and manages TLS client certificates for MQTT nodes"
|
||||
url: "https://gitea.viratak.com/bitopa/virarepo/src/branch/main/mqtt-cert-manager"
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# Changelog
|
||||
|
||||
## 0.5.4
|
||||
|
||||
- Minor bug fix
|
||||
|
||||
## 0.5.1 - 2026-10-11
|
||||
|
||||
- Minor bug fixed
|
||||
|
||||
## 0.5.0 - 2026-10-11
|
||||
|
||||
- Added pre-built docker image
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
name: Visquitto
|
||||
version: "0.5.0"
|
||||
version: "0.5.4"
|
||||
slug: visquitto
|
||||
description: Second private Mosquitto broker for bitopa nodes
|
||||
url: "https://gitea.viratak.com/bitopa/virarepo/src/branch/main/visquitto"
|
||||
|
||||
+8
-6
@@ -34,9 +34,6 @@ chmod 600 "$CERTDIR/key.pem"
|
||||
|
||||
# ---- Defaults in /config (regenerated at every start) ----
|
||||
cat > "$CONFIG/mosquitto.conf" <<EOF
|
||||
protocol mqtt
|
||||
allow_anonymous false
|
||||
|
||||
log_dest stdout
|
||||
log_type error
|
||||
log_type warning
|
||||
@@ -47,7 +44,7 @@ persistence true
|
||||
persistence_location $DATA/
|
||||
max_queued_messages 8192
|
||||
|
||||
plugin_load acl_file /usr/lib/mosquitto_acl_file.so
|
||||
plugin_load acl_file /usr/lib/mosquitto_acl_file.so
|
||||
plugin_load password_file /usr/lib/mosquitto_password_file.so
|
||||
|
||||
include_dir $SHARE
|
||||
@@ -55,6 +52,7 @@ include_dir $SHARE
|
||||
# Plain listener (host port 1993): password users only
|
||||
listener 1883
|
||||
protocol mqtt
|
||||
allow_anonymous false
|
||||
plugin_use password_file
|
||||
plugin_opt_password_file $PASSWD
|
||||
plugin_use acl_file
|
||||
@@ -63,6 +61,7 @@ plugin_opt_acl_file $DATA/acl_plain
|
||||
# TLS listener (host port 9993): client certificate required
|
||||
listener 8883
|
||||
protocol mqtt
|
||||
allow_anonymous false
|
||||
cafile $CERTDIR/ca.pem
|
||||
certfile $CERTDIR/cert.pem
|
||||
keyfile $CERTDIR/key.pem
|
||||
@@ -76,7 +75,6 @@ plugin_opt_acl_file $DATA/acl_tls
|
||||
EOF
|
||||
|
||||
# plain ACL
|
||||
echo "# Default ACL for the plain listener: no rules, all access denied" > "$CONFIG/acl_plain"
|
||||
cat > "$CONFIG/acl_plain" <<EOF
|
||||
# ============================================================
|
||||
# Not certified devices
|
||||
@@ -100,13 +98,17 @@ topic read cert/enroll/+/renew
|
||||
EOF
|
||||
|
||||
# TLS ACL
|
||||
echo "# Default ACL for the TLS listener: no rules, all access denied" > "$CONFIG/acl_tls"
|
||||
cat > "$CONFIG/acl_tls" <<EOF
|
||||
# Default rule for every certificate client. %u is the certificate CN.
|
||||
pattern readwrite clients/%u/#
|
||||
EOF
|
||||
|
||||
# ---- User customization in /share (created once, never overwritten) ----
|
||||
if grep -qE '^\s*(listener|port|bind_address)\b' "$SHARE/mosquitto.conf"; then
|
||||
echo "ERROR: $SHARE/mosquitto.conf must not define listeners (listener/port/bind_address)." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -f "$SHARE/mosquitto.conf" ]; then
|
||||
echo "# Extra global Mosquitto options (loaded with include_dir, before the listeners)" > "$SHARE/mosquitto.conf"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user