mirror of
https://github.com/gadgethd/ukmesh.git
synced 2026-10-23 14:22:47 +00:00
security: revalidate MQTT auth and revoke owner sessions
This commit is contained in:
1 parent
9ce8633e6d
commit
b50ecfa50c
8 files changed
+190
-59
No files matched your search
@@ -0,0 +1,17 @@
|
||||
# Owner credential rotation
|
||||
|
||||
Owner cookies include the Redis credential generation that was current at login.
|
||||
The owner session route and protected owner routes compare that generation on
|
||||
each request. Cookies expire after seven days.
|
||||
|
||||
After changing a Mosquitto password, revoke existing owner sessions immediately
|
||||
by running the backend tool with the affected MQTT username:
|
||||
|
||||
```sh
|
||||
docker exec meshcore-analytics-backend-1 \
|
||||
node dist/tools/revokeOwnerSessions.js <mqtt-username>
|
||||
```
|
||||
|
||||
The command fails if Redis cannot record the new generation. Confirm success
|
||||
before treating password rotation as complete. Do not pass the password to this
|
||||
command or record it in logs.
|
||||
Reference in new issue
Block a user