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