Knowledge Hub

Factora Academy

Knowledge Hub · Courses · IoT.Factora · Technology · 18 min

Security model

Tokens, topic ACL, RBAC, paused plants, rate limits. MQTT TLS is not claimed.

Introduction

What this covers

How ingest tokens, topic limits, cookies, and role checks contain a factory, and which protections the product does not claim.

Why it matters on the floor

Reusing the database password as the app secret, or promising MQTT encryption that is not turned on, is how a workshop token becomes a production incident.

By the end you can

  • Describe the ingest token as both the HTTP bearer secret and the MQTT password, bound to one device topic
  • State the HTTP and login rate limits, and what a paused factory does to plant login
  • List the honest gaps: MQTT encryption is not the current claim, and a native OPC driver is not bundled

About 18 minutes. Prerequisites: Protocol map, because the topic and token rules sit on that path.

Security model

Ingest

  • Device ingest token (shown to admin on the device page; rotatable)
  • MQTT password = that token; username = device code
  • Allowed topic: factora/{that factory slug}/devices/{that device code}/telemetry
  • HTTP ingest: 180 requests / minute / IP+token prefix; login: 8 / 10 minutes

Sessions

Plant cookie is HttpOnly, Secure on HTTPS. AUTHSECRET must not equal POSTGRESPASSWORD. Ops viewer cannot create factories or enter plants.

Tenant

Paused factory → plant login 403. Onboarding: plant exists, simulator does not tick.

Honest gaps

MQTT TLS is not the current production claim. OPC native driver is not bundled. Do not write those into architecture slides.

Walk the screen

  1. Treat the ingest token as the HTTP bearer secret and as the MQTT secret for that device.
  2. Keep the topic to that factory slug and that device code.
  3. Expect HTTP ingest to be limited per address and token, and plant login to be limited as the lesson states.
  4. A paused factory returns a refusal on plant login. Onboarding can exist without the simulator ticking.
  5. Do not claim MQTT encryption as the current production default, and do not claim a native OPC driver.
  6. Do not reuse the database secret as the app secret. Ops viewers cannot create factories.

Worked example

A workshop used a token on a sandbox device. Before the factory is live you rotate that token. You do not paste it into the lesson or the slide. The topic in the slide is the one factory and the one device code.

Common mistakes

  • Putting a workshop token into a live device and leaving it.
  • Writing encryption or a native OPC driver into the architecture slide.
  • Giving an ops viewer the create-factory step.

Recap

  • The token binds one device and one topic.
  • Paused means plant login is refused.
  • Say only the protections the product claims today.

Create a free account or log in to save this lesson on your progress.

Check understanding

Progress is stored in this browser until you log in. Passing is 70%.

1. MQTT topic for demo-food device CR-01 is
2. Ops viewer can enter a plant as admin.
3. HTTP ingest is limited to about
4. A paused factory still allows plant login.