Bug 2088303
| Summary: | Webhook raises "certificate verify failed" error even the target host is trusted by the system SSL CA bundle | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Hao Chang Yu <hyu> |
| Component: | Hooks and Webhooks | Assignee: | Oleh Fedorenko <ofedoren> |
| Status: | CLOSED ERRATA | QA Contact: | Griffin Sullivan <gsulliva> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.10.5 | CC: | ahumbe, mhulan, ofedoren, pcreech, zhunting |
| Target Milestone: | 6.12.0 | Keywords: | Patch, Triaged |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | foreman_webhooks-3.0.4 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-11-16 13:33:51 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Hao Chang Yu
2022-05-19 07:17:40 UTC
Created redmine issue https://projects.theforeman.org/issues/35281 from this bug Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35281 has been resolved. Hi Oleh, Can we get a new release of foreman_webhooks that will have the fix for this bug? Verification currently blocked by https://bugzilla.redhat.com/show_bug.cgi?id=2124928 Verified in 6.12 snap 11 Webhooks no longer raise certificate error when x509 Certificate Authorities is blank and target host is trusted by the system. Steps to Reproduce: 1. In Satellite, make sure the target host is trusted by the system SSL CA bundle by adding its CA certificates to "/etc/pki/ca-trust/source/anchors/" directory and run "update-ca-trust" command. 2. Run "curl https://target.host.com" to test it 3. In Satellite web UI -> Adminster -> Webhooks -> Add new web hook with the following data: Subscribe to = "Actions Remote Execution Run Host Job Succeeded" Template: Remote Execution Host Job Target url: https://target.host.com/sub/paths Enabled: Check Verify SSL: Check Capsule Authorization: Uncheck X509 Certification Authorities: Empty 4. Now run a SSH REX job against any host and wait for it to finish successfully. Results: Webhook runs successfully. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: Satellite 6.12 Release), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:8506 |