Skip to content

MEN-8351: fix(build): Set default value for secondary CA cert to false + misc #207

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

lluiscampos
Copy link
Member

The secondary CA cert is really optional, as a custom Mender Server could use the same domain for both API calls and Artifacts storage.

Set MENDER_NET_CA_CERTIFICATE_TAG_SECONDARY_ENABLED default to n and instead select it when selecting hosted Mender option(s).

Signed-off-by: Lluis Campos <[email protected]>
Ticket: MEN-8351

Signed-off-by: Lluis Campos <[email protected]>
The secondary CA cert is really optional, as a custom Mender Server
could use the same domain for both API calls and Artifacts storage.

Set `MENDER_NET_CA_CERTIFICATE_TAG_SECONDARY_ENABLED` default to `n` and
instead select it when selecting hosted Mender option(s).

Ticket: MEN-8351

Signed-off-by: Lluis Campos <[email protected]>
@lluiscampos lluiscampos force-pushed the MEN-8351-improvements-self-hosted branch from ee4aacf to 092a79f Compare May 9, 2025 20:21
@lluiscampos lluiscampos changed the title MEN-8351: fix(build): Set default value for secondary CA cert to false MEN-8351: fix(build): Set default value for secondary CA cert to false + misc May 9, 2025
Copy link
Collaborator

@vpodzime vpodzime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me otherwise.

@@ -469,7 +469,7 @@ if MENDER_MCU_CLIENT
range 0 2
default 2
help
Peer verification level for TLS connection.
Peer verification level for TLS connection. For testing purposes, set to 0 to skip TLS peer verify
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So what does 1 mean?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It means optional. See here and here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO we don't really support "optional", because to properly use it we would need to check the handshake result and print a warning or something.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. The help should say it then. And perhaps create a task to make sure 1 is handled gracefully?

Copy link
Collaborator

@danielskinstad danielskinstad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants