File tree Expand file tree Collapse file tree 4 files changed +15
-2
lines changed
mosquitto-os2iot/templates Expand file tree Collapse file tree 4 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 22ca.crt
33ca.key
44server.crt
5- server.key
5+ server.key
6+ server.csr
Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ services:
9898 MQTT_BROKER_HOSTNAME : # Change this to the public ip/hostname of the mqtt broker
9999 ENCRYPTION_SYMMETRIC_KEY : # Change this to the symmetric key generated
100100 CA_KEY_PASSWORD : # Change this to the password of the generated CA certificate key
101+ MQTT_SUPER_USER_PASSWORD : # Change this to the password for the internal super user.
101102 volumes :
102103 - ./configuration/mosquitto-broker-os2iot/ca.crt:/tmp/os2iot/backend/dist/resources/ca.crt
103104 - ./configuration/mosquitto-broker-os2iot/ca.key:/tmp/os2iot/backend/dist/resources/ca.key
Original file line number Diff line number Diff line change 2323 auth_opt_pg_superquery SELECT COUNT(*) FROM iot_device WHERE (mqttusername = $1 AND permissions = 'superUser')
2424 auth_opt_pg_aclquery SELECT mqttTopicName FROM iot_device WHERE (mqttUsername = $1 AND permissions = 'write') OR (9 = $2 AND mqttUsername = $1)
2525
26- auth_opt_pg_sslmode disable
26+ auth_opt_pg_sslmode verify-ca
2727 auth_opt_hasher pbkdf2
2828
2929 auth_opt_hasher_salt_size 16
4545 auth_opt_pg_user {{ .Values.deployment.env.DATABASE_USERNAME }}
4646 auth_opt_pg_password {{ .Values.deployment.env.DATABASE_PASSWORD }}
4747 auth_opt_pg_dbname {{ .Values.deployment.env.DATABASE_NAME }}
48+ auth_opt_pg_userquery SELECT mqttPassword FROM iot_device WHERE mqttUsername = $1 limit 1
4849 auth_opt_pg_superquery SELECT COUNT(*) FROM iot_device WHERE (mqttusername = $1 AND permissions = 'superUser')
4950 auth_opt_pg_aclquery SELECT mqttTopicName FROM iot_device WHERE (mqttUsername = $1 AND permissions = 'write') OR (9 = $2 AND mqttUsername = $1)
5051
52+ auth_opt_pg_sslmode verify-ca
53+
5154 cafile /etc/mosquitto/ca_certificates/ca.crt
5255 keyfile /etc/mosquitto/certs/server.key
5356 certfile /etc/mosquitto/certs/server.crt
Original file line number Diff line number Diff line change 8181 value : some-login-pass
8282 - name : EMAIL_FROM
838384+ - name : MQTT_SUPER_USER_PASSWORD
85+ value : some-super-user-password
86+ - name : MQTT_BROKER_HOSTNAME
87+ value : some-mqtt-broker-hostname
88+ - name : ENCRYPTION_SYMMETRIC_KEY
89+ value : some-encryption-symmetric-key
90+ - name : CA_KEY_PASSWORD
91+ value : some-ca-key-password
8492 volumeMounts :
8593 - name : secret-ca-crt
8694 mountPath : /tmp/os2iot/backend/dist/resources
You can’t perform that action at this time.
0 commit comments