Demo server certificate install path differs from Yocto to deb package

Description

In Yocto builds, the server is installed at /etc/mender/server.crt, while the deb package installs it at /usr/share/doc/mender-client/examples/demo.crt (following Debian guidelines).

This makes mender setup command to not be able to properly set a demo environment for Yocto builds (see related issue ).

At the moment of writing this ticket, is it a bit uncertain what should be done; the easiest will be to use the same path in both installations and release it in next yocto version zeus, but still we need to make it work in current warrior branch and upcoming mender 2.3.

Acceptance criteria:

  • Yocto recipe for mender installs the demo certificate in /usr/share/doc/mender-client/examples/demo.crt

  • Acceptance tests and scripts are updated accordingly

Affects versions

None

Environment

None

Checklist

Activity

Show:

Kristian AmlieFebruary 10, 2020 at 12:02 PM

Lluis CamposJanuary 28, 2020 at 9:26 AM

Thanks, I removed then the zeus branch and we will do this in master + warrior
Estimated the task to 2sp

Kristian AmlieJanuary 28, 2020 at 8:25 AM

I think the install location was just our convention, and we can easily install it somewhere else (this would not affect production certificates). It's important for 2.3 in the sense that mender setup won't work without it. But do we expect people to run that on Yocto?

Since it's only for demo mode, I think it's fine to switch this even in a stable Yocto branch. So there is no strong need to tie this to zeus, IMHO.

eystein.maloy.stenbergJanuary 27, 2020 at 9:48 PM

Is this important for the 2.3 release, or next Yocto version, or both?

Currently it seems to be a bit unknown, but if we need to release this with 2.3 we need to figure out what to do and estimate it so it can be on the next sprint.

From my PoV these OSes are just different and probably mender setup should just look in several places. Some users are quite religious about following their OS policy for where to store different types of files.

Lluis CamposJanuary 16, 2020 at 9:11 AM

Yes, I understand (and agree!) that the certificate is only with the demo layer. But can we change the cert location between minor releases of Mender for the same yocto release (warrior)?

Fixed

Details

Assignee

Reporter

Labels

Story Points

Priority

Days in progress

0

Sprint

Backlog

yes

Zendesk Support

Checklist

Created January 13, 2020 at 9:17 AM
Updated June 25, 2024 at 12:02 PM
Resolved February 12, 2020 at 7:50 AM