A prototype proves that a request can work. Production means it keeps working safely when credentials leak, networks fail, inputs are malformed, dependencies change, or the device needs recovery.
Minimum controls
- Use an app API key with the narrowest scopes for each device.
- Keep tokens in environment variables or a secret manager.
- Use HTTPS, validate every input, and preserve trailing slashes.
- Set timeouts and bounded exponential backoff for 429 and transient 5xx responses.
- Log status, timing and request IDs without logging secrets.
- Back up configuration and test restoration.
Retry and idempotency
Do not blindly retry an uncertain POST: it may create duplicates. Retry validation failures never; retry rate limits and transient server failures slowly and with a maximum attempt count. Use a client-side event ID or reconciliation process where duplicates matter.
A pre-release test run
- Use a non-production endpoint and a test credential.
- Send one valid record and confirm the expected
201response. - Send an invalid value and confirm the client receives a useful
400without a record being created. - Temporarily block the network and confirm the collector times out and recovers.
- Restart the service and verify it resumes without duplicating an uncertain write.
- Revoke the test key and confirm the client reports the authentication failure without exposing the key.
Device health and recovery
Run the collector under a service manager, verify restart behavior, monitor disk and memory, and keep a tested replacement image or setup procedure. Plan how to rotate a compromised key and disable a lost device.
Release review
- Test the current project and dependency versions.
- Confirm endpoint visibility, scopes and credential storage.
- Exercise sensor, network, API and dashboard failure paths.
- Record the rollback or recovery step.
- Review the checklist again after material changes.
Next step
Use REST API Authentication and Common Errors to diagnose a failed request, then apply this checklist before exposing the project to production traffic.