Security practices/docs/security
Security practices
Protect accounts, projects, devices, credentials, MQTT, firmware, webhooks, and data.
- Updated
- July 28, 2026
- Reading time
- 9 min
- Applies to
- All of Ruang IoT
On this page5 sections
Managing secrets
- Store production keys in
.env or a secret manager.
- Never commit
.env.
- Rotate any credential that has ever appeared in a chat or a log.
- Sanitize source code before it goes into the learning log.
MQTT security
- Use TLS/WSS when available.
- Keep backend, viewer, and operator accounts separate.
- Apply ACLs per project and per topic.
- Never send the main broker credentials to the browser.
Firmware security
- Validate library ZIP files and board manifests.
- Limit the size of source code and artifacts.
- Never execute files from user uploads.
- Audit the Local Agent and toolchain versions.
Web security
- Use HTTPS.
- Validate ownership on every project resource.
- Use CSRF protection on web forms.
- Use signatures and idempotency for payment webhooks.
If a credential leaks
- Rotate the credential.
- Update
.env.
- Run
php artisan optimize:clear and config:cache.
- Restart the queue workers and listeners.
- Check the access and transaction logs.
Documentation feedback
Was this article helpful?
Thank you. Your feedback is saved in this browser.
Still stuck? Contact support. See contact