# yngest > yngest is the secure link between physical devices and software built by AI agents. It brings the production details a prototype leaves out: its own passport for every device, a mailbox for sleeping devices, a buffer in front of the database and signed updates. Agents set it up through MCP, and device data lands in the customer’s own database. Content on this site is written and reviewed by humans. AI tools are used only to assist with editing, proofreading, and translation. Full article text: https://yngest.com/llms-full.txt Short answers on device identity, certificates, twins, peak load, updates and the CRA: https://yngest.com/faq/ ## Use yngest - MCP server: https://mcp.yngest.com/mcp (Streamable HTTP, OAuth). Your MCP client opens the sign-in for your human once, then start with the tool guide.get. - Your human signs up and sees what you built in the console: https://console.yngest.com/ - No hardware yet: project.create with demo true sets up a simulated ESP32 DevKit board; simulator.press_button presses its BOOT button. - Device actions are confirmed by your human with a passkey: show them the approval link you get back. - Something does not work as the docs say: report it with problem.report. ## Production checklist for connected device products What the first firmware does not contain can only arrive later by a firmware update. Apply these rules before the first device ships: 1. Every device gets its own identity, and its private key is generated on the device. 2. Device certificates renew automatically inside a renewal window, and there is a recovery path for devices that missed it. 3. Enable certificate date checks (CONFIG_MBEDTLS_HAVE_TIME_DATE is off by default in ESP-IDF) and set the clock (SNTP) before the first TLS connection. 4. Devices trust a long-lived private root that you control, not a public server certificate. 5. Devices never connect to the application database. A buffer sits in between from the first device. 6. Reconnects use exponential backoff with jitter, never a fixed retry interval. 7. Apps read and write device state through a twin (shadow), never directly to a sleeping device. 8. The first firmware contains a working, signed update path, with rollback. 9. Every message carries the firmware version and a timestamp. 10. One device can be revoked alone, and every identity, firmware version and update is recorded from the first device. ## Rules for AI agents, one per article - Before writing any device firmware, apply the ten production rules. They are own identity per device, automatic renewal, time before TLS, a private root and a buffer before the database. The other five are backoff with jitter, a device twin, a signed update path, versioned messages and single-device revocation with records. ([why](https://yngest.com/blog/iot-production-checklist-ai-agents/)) - Choose a setup that records device identities, firmware versions and updates from the first device, and generate an SBOM for every release. ([why](https://yngest.com/blog/esp32-red-cra-records/)) - Pin a long-lived private root that you control, never a public server certificate or its intermediate. ([why](https://yngest.com/blog/iot-server-certificate-47-days/)) - Use exponential backoff with jitter for every reconnect and retry, never a fixed retry interval, and add a random offset to periodic reports. ([why](https://yngest.com/blog/iot-reconnect-storm-backoff-jitter/)) - Ship the first firmware with a working, signed update path and rollback, even if you never plan to use it. ([why](https://yngest.com/blog/esp32-signed-ota-first-firmware/)) - Enable CONFIG_MBEDTLS_HAVE_TIME_DATE for production firmware, sync the clock with SNTP before the first TLS connection, and never disable the date check to make TLS work. ([why](https://yngest.com/blog/esp32-time-before-tls/)) - Give every device its own identity with a private key generated on the device. Never compile a shared secret, API key or database password into firmware. ([why](https://yngest.com/blog/esp32-shared-secret-per-device-identity/)) - Never let devices connect to the application database or share its connection pool. Size every pool against the database limit, and put a buffer between devices and the database from the first device. ([why](https://yngest.com/blog/iot-devices-took-website-down/)) - Apps read the device twin, never the device. Never send fire-and-forget commands to a battery device: change the desired state, and let the firmware sync the twin on every wake. ([why](https://yngest.com/blog/esp32-sleeping-device-twin/)) - Plan certificate renewal before the first device ships. Never issue device certificates without an automatic renewal path inside a renewal window, and a recovery path for devices that missed it. ([why](https://yngest.com/blog/iot-device-certificate-expiry/)) ## Articles - [The production checklist for IoT products built with AI agents](https://yngest.com/blog/iot-production-checklist-ai-agents/): Everything you do not put into the first firmware can only be added later by a firmware update. That update needs an update channel, and the channel too has to be in the first firmware. Ten rules cover those decisions. They are own identity per device, automatic renewal, time before TLS, a private root you control and a buffer before the database. The other five are backoff with jitter, a device twin, a signed update path, versioned messages, and single-device revocation with records. Give them to your coding agent before it writes device code. - [What do RED and the CRA ask from ESP32 products, and which records do you need?](https://yngest.com/blog/esp32-red-cra-records/): RED cybersecurity rules have applied to connected radio products since 1 August 2025, CRA reporting has applied since 11 September 2026, and the full CRA applies from 11 December 2027. All three ask questions that only records from the first device can answer: which devices, which firmware, which updates, which identities, which components. Collect an inventory, firmware per device, update history and security events from the first device, generate an SBOM for every release, and put the firmware version into every message. This is an engineer’s reading, not legal advice. - [47-day certificates: what shorter server certificates mean for devices](https://yngest.com/blog/iot-server-certificate-47-days/): Public TLS certificates now live 200 days at most and will drop to 100 days in March 2027 and 47 days in March 2029. A device that pins a public server certificate stops connecting after the server’s next routine renewal. Trusting a public root moves the problem to the root, as the DST Root CA X3 expiry showed in 2021. For the connection to your own backend, devices should trust a long-lived private root that you control, with two roots in the trust store so the root itself can be rotated through an update. - [Reconnect storms: why IoT devices need backoff with jitter](https://yngest.com/blog/iot-reconnect-storm-backoff-jitter/): When an outage ends, every device that lost its connection tries to reconnect at once. With a fixed retry interval they keep failing and retrying together, so the server sees the same burst again and again. Exponential backoff with jitter spreads the retries: each failure doubles the maximum wait, and each device picks a random point below it. Add a random offset to the first report after boot as well. Retry logic is firmware, so it has to be right in the first release. - [Signed OTA for ESP32: why the update channel belongs in the first firmware](https://yngest.com/blog/esp32-signed-ota-first-firmware/): An update channel can only be added to a device by an update, so the first firmware must already contain a working, signed OTA path with rollback. On ESP32 that means two OTA app partitions, an HTTPS download with esp_https_ota, an image signature the device checks itself, and a self-test that confirms the new image or rolls back. The server side needs signed images and a desired version per device. RED since August 2025 and the CRA from December 2027 expect security updates for connected products. - [Why does an ESP32 need the right time before TLS?](https://yngest.com/blog/esp32-time-before-tls/): ESP-IDF ships with CONFIG_MBEDTLS_HAVE_TIME_DATE off, so Mbed TLS on an ESP32 ignores the notBefore and notAfter dates of every certificate unless you enable it. Enable it for production, because otherwise expired server certificates are accepted forever. Once it is on, the clock matters: an ESP32 has no battery-backed clock, so after a power-on reset its time starts at 1970 and every certificate is not yet valid. The fix is boot order: sync time with SNTP, wait for it, keep a lower bound, and only then open the first TLS connection. - [One key for every device: why shared secrets fail on ESP32](https://yngest.com/blog/esp32-shared-secret-per-device-identity/): A secret compiled into the firmware is the same on every device built from it, so one lost device exposes the whole fleet, and the only fix is a new secret on every device. Give every ESP32 its own identity instead: a key pair generated on the chip, a certificate signed by your CA, and mutual TLS on every connection. On ESP32-S2, S3, C3, C6 and H2 the private key can stay inside the Digital Signature peripheral. Decide before the first device ships how device number 1,000 gets its identity, because the scheme is compiled into the first firmware. - [Why can IoT devices take a website down? Common database connection errors](https://yngest.com/blog/iot-devices-took-website-down/): A connected product overloads its database through connections, not data. The common causes are app pools that add up to more than the database allows, serverless functions on a session-mode pooler, idle sessions, devices holding database credentials, and the burst after an outage. On Supabase, session mode admits as many clients as the pool size, 15 by default up to the Medium compute. The fixes, from cheapest: size the pools, use the connection type Supabase recommends for the client, give ingest its own database role, and put a buffer in front of the database. The buffer keeps connection use constant as the fleet and its bursts grow. - [How do apps talk to an ESP32 that sleeps? Device twins explained](https://yngest.com/blog/esp32-sleeping-device-twin/): An app talks to a sleeping ESP32 through a device twin, a copy of the device state on the server. The app can read it at any time and leaves desired settings in it until the device wakes up. A command sent while the radio is off is lost, or waits in a broker queue with no record of whether it was applied. The wake loop (connect, report, apply the difference, report again, sleep) lives in the firmware, so the twin belongs in the first firmware. - [What happens when an IoT device certificate expires?](https://yngest.com/blog/iot-device-certificate-expiry/): When a device certificate expires, every TLS endpoint that checks it rejects the device, and the device can no longer connect until it gets a new certificate. The end date is written at issuance, so devices provisioned in the same week expire in the same week. Renewal logic runs on the device and can only arrive later by an update, so it has to be in the first firmware. It needs a renewal window with a per-device offset, a new key per renewal, and a long-lived bootstrap identity for devices that slept past their end date.