Compare commits

..

6 Commits

Author SHA1 Message Date
eta fff4b994e1 config bug fix
build-and-push / check-branch (push) Successful in 12s
build-and-push / prepare (push) Successful in 9s
build-and-push / build (amd64, linux/amd64) (push) Successful in 10m42s
2026-10-11 16:48:27 +03:30
eta 13c399133c minor change in mosquitto config 2026-10-11 16:44:53 +03:30
eta 940a41669f minor change in mosquitto config 2026-10-11 16:40:15 +03:30
eta e9b43da768 releasing visquitto 0.5.1 2026-10-11 15:38:43 +03:30
eta c14b628558 plugin address bug fix
build-and-push / check-branch (push) Successful in 11s
build-and-push / prepare (push) Successful in 9s
build-and-push / build (amd64, linux/amd64) (push) Successful in 10m40s
2026-10-11 15:23:34 +03:30
eta a502aa0128 ha base image version bug fix
build-and-push / check-branch (push) Successful in 12s
build-and-push / prepare (push) Successful in 9s
build-and-push / build (amd64, linux/amd64) (push) Successful in 11m27s
2026-10-11 14:49:11 +03:30
6 changed files with 24 additions and 10 deletions
+5 -1
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -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"
+8
View File
@@ -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 -1
View File
@@ -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
View File
@@ -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