Skip to content

Fix ssl_cert deprecation warnings#9758

Merged
Al2Klimov merged 3 commits intoIcinga:masterfrom
liip-forks:OdyX-fix-ssl-cert-warnings
May 24, 2024
Merged

Fix ssl_cert deprecation warnings#9758
Al2Klimov merged 3 commits intoIcinga:masterfrom
liip-forks:OdyX-fix-ssl-cert-warnings

Conversation

@OdyX
Copy link
Copy Markdown
Contributor

@OdyX OdyX commented May 8, 2023

fixes #9661

@cla-bot
Copy link
Copy Markdown

cla-bot bot commented May 8, 2023

Thank you for your pull request. Before we can look at it, you'll need to sign a Contributor License Agreement (CLA).

Please follow instructions at https://icinga.com/company/contributor-agreement to sign the CLA.

After that, please reply here with a comment and we'll verify.

Contributors that have not signed yet: @OdyX

Details
  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Please contact us if you think this is the case.

  • If you signed the CLA as a corporation, your GitHub username may not have been submitted to us. Please reach out to the responsible person in your organization.

@bobapple
Copy link
Copy Markdown
Member

bobapple commented May 8, 2023

@cla-bot check

@cla-bot cla-bot bot added the cla/signed label May 8, 2023
@Al2Klimov Al2Klimov self-assigned this May 17, 2023
This way vars.ssl_cert_altnames keeps working.
@Al2Klimov Al2Klimov removed their assignment Jul 25, 2023
@Al2Klimov Al2Klimov added this to the 2.15.0 milestone Aug 1, 2023
@Al2Klimov Al2Klimov added the area/itl Template Library CheckCommands label Oct 23, 2023
@Al2Klimov Al2Klimov merged commit b56839f into Icinga:master May 24, 2024
@jktr
Copy link
Copy Markdown

jktr commented Oct 17, 2025

I don't think setting vars.ssl_cert_cn = "$ssl_cert_altnames$" for compatibility works.

check_ssl's --altnames (via ssl_cert_altnames) is a simple flag, but --match (via ssl_cert_cn) expects a pattern. So when the boolean ssl_cert_altnames is set but ssl_cert_cn isn't, check_ssl is called with --match false or --match true, which results in false negatives.

I've side-stepped this by setting ssl_cert_cn to a an actual pattern.

@yhabteab
Copy link
Copy Markdown
Member

Hi @jktr, and thanks for reporting!

That change indeed doesn't make any sense! Can you please submit a PR that reverts d3d74c2 or a new issue? This PR is merged and will quickly get lost!

@jktr
Copy link
Copy Markdown

jktr commented Oct 20, 2025

@yhabteab Thanks for confirming the problem. I've opened a PR at #10611

edit: Due to the CCLA requirement, I won't be able to contribute a PR for this. I've opened an issue at #10615 instead to avoid this getting lost.

@OdyX
Copy link
Copy Markdown
Contributor Author

OdyX commented Oct 20, 2025

Good catch, thank you all for finding this out. I can't understand why past me proposed this without seeing the flag aspect, but here we are; I'm glad some more eyes landed on this issue!

@yhabteab
Copy link
Copy Markdown
Member

I can't understand why past me proposed this without seeing the flag aspect, but here we are;

Hi, I don't think it's your fault :)! It's introduced by this liip-forks#1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/itl Template Library CheckCommands cla/signed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

plugins-contrib.d/web.conf check_ssl_cert deprecated warnings

5 participants