KaZa Home automation

Home automation

Configuration and Security

Configuration and Security

/etc/kazad.conf

INI file read at startup.

Section Key Default Description
[ssl] hostname Hostname or IP put in the certificate (CN and SAN). Required
keypassword Password of the server private key. Required
port 1754 Client port (mutual TLS)
[control] enable true Start the control port
port 43500 Control port
password Administration password
[database] driver QPSQL, QMYSQL or QSQLITE; empty = no database
hostname, port, dbName, username, password Connection
[qml] server Server automation main.qml
client Client UI bundle app.rcc, served to clients
[services] workers 2 SQL connections used by services
maxInFlight 8 Simultaneous requests per client
queueLimit 256 Queued requests, all clients

Without a database, InternalObject values are not persisted, runDbQuery does nothing and history is empty.

Ports

Port Purpose Exposure
1754 Clients, binary protocol, mutual TLS LAN / VPN
1753 Video live view (planned, Video), mutual TLS LAN / VPN
43500 Control port Localhost or trusted network only

The package ships a UFW profile (/etc/ufw/applications.d/ufw-kaza) for 1754 and 43500.

Certificates

  • Missing files in /var/lib/kazad/ (ca.cert.pem, server.cert.pem, server.key) are generated at startup.
  • Every client has its own certificate signed by the CA. Revoking a device means not issuing a new one and regenerating the CA when needed.
  • To regenerate everything, delete the three files and restart kazad. All clients must then re-trust the new CA.
  • Server QML can read the TLS material (kazamanager.sslCertificate, sslKey, sslCa), which lets plugins such as Video reuse the same identity.

Security model

  • Mutual TLS on 1754: a client without a certificate signed by the CA is rejected before any frame is exchanged.
  • Control port: the admin password crosses the network in clear text on this port. Keep it on localhost or behind a firewall, or disable it once provisioning is done.
  • No SQL from clients: use server services. The legacy raw-SQL frame is being removed.
  • Plugin credentials: some device protocols are unencrypted. Keep such devices on a trusted network segment. MQTT supports TLS; use it whenever the broker is not on the same host.
  • Secrets in QML: main.qml often contains passwords (cameras, brokers). Keep it outside any repository and readable only by the kazad user.