Abstract
On Monday, 27th of October, we released the Mender Server v4.1.0-saas.16 to hosted Mender US and EU. Among the many changes, there was also a change indirectly changing the cipher method for client side encryption of secrets in the IoT Manager database. The change replaced the deprecated Cipher Feedback (CFB) cipher mode with Counter (CTR) mode as suggested by the Golang documentation. On October 31th, at about 8PM, we were alerted by multiple tickets opened by customers regarding webhooks not working for AWS IoT integration. The on-call team then opened an incident. The engineering team then on Monday, 3rd of November, soon acknowledged the issue and found out the root cause. We briefly discussed how to solve the issue and we decided to rollback the IoT Manager service and re-encrypt the secret with the old algorithm for the affected customers. Two customers, however, already updated their config, because they recreated the webhook configuration, after being suggested by the Northern Tech team as a valid workaround, so the rollback affected their operation for a second time.
We are really sorry for the inconvenience, and we are working to fix this process around the IoT Manager integration.
Incident Timeline (UTC)
What went wrong
Multiple failure at multiple level:
Actions we decided to take to prevent this issue in the future
Improve the logging and monitoring around the IoT Manager service
Improve error handling by registering unsuccessful attempts to send webhooks
Register timestamp on secret update and creation, to easily understand the history of a secret
We still need to replace the outdated cipher, we will plan a non disruptive update
Introduce upgrade tests, to check that the IoT Manager service could work with both the old and the new version.