Skip to main content
Documentation v2.0
Security practices/docs/security

Security

Stable

Security practices

Protect accounts, projects, devices, credentials, MQTT, firmware, webhooks, and data.

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

  1. Rotate the credential.
  2. Update .env.
  3. Run php artisan optimize:clear and config:cache.
  4. Restart the queue workers and listeners.
  5. Check the access and transaction logs.

Documentation feedback

Was this article helpful?

Documentation search

What do you want to learn?

Type at least two characters to search the documentation.
Code copied.