Invalid server certificate cause Mender client to exit

Description

I inadvertently neglected to install my custom server.crt file. This resulted in the Mender client exiting with the following log:

In this case, rollback is not performed.  The Mender client should not exit on error here, but rather do rollback, assuming we are in an OTA update.

Acceptance criteria

  • When booting after an OTA update, the Mender client should roll back, not exit, upon Mender configuration errors

Affects versions

None

Environment

None

Checklist

Activity

Show:

eystein.maloy.stenberg May 9, 2019 at 3:18 PM

OK! Closing.

Kristian Amlie May 9, 2019 at 10:19 AM

The PR has been closed, so this can probably be closed too.

Ole Petter Orhagen April 30, 2019 at 2:10 PM

Kristian Amlie April 30, 2019 at 7:56 AM

For the keystore the point is moot, since if you fail to load the keystore, the client will not know that it's in the middle of an update anyway. Error loading the tenant token isn't an error, since this is expected to be missing for onprem installations. That leaves only the certificate, which means that I think 2) is better. Just make sure the error is logged, so that even if the client starts successfully, you should easily be able to see why your connection is failing.

Ole Petter Orhagen April 30, 2019 at 7:09 AM

, what are your thoughts on this?

Fixed

Details

Assignee

Reporter

Priority

Backlog

yes

Zendesk Support

Checklist

Created February 18, 2019 at 10:23 PM
Updated June 25, 2024 at 12:03 PM
Resolved May 9, 2019 at 3:18 PM