Skip to content
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

Fix error source for certificare verification hostname error #1247

Merged
merged 2 commits into from
Feb 27, 2025

Conversation

ivanahuckova
Copy link
Member

Added x509.HostnameError handling in the isTLSCertificateVerificationError function, as observed in Zabbix.

This error type is now checked both directly and when wrapped in url.Error. I have also added a corresponding test case for a hostname verification scenario.

@ivanahuckova ivanahuckova requested a review from a team as a code owner February 27, 2025 10:25
@ivanahuckova ivanahuckova requested review from wbrowne, andresmgot, s4kh and fabrizio-grafana and removed request for a team and s4kh February 27, 2025 10:25
@ivanahuckova ivanahuckova merged commit eda27eb into main Feb 27, 2025
3 checks passed
@ivanahuckova ivanahuckova deleted the ivana/certificate-hostname-downstream-error branch February 27, 2025 10:35
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.

None yet

2 participants