diff options
author | Aravinda VK <avishwan@redhat.com> | 2017-10-17 12:50:48 +0530 |
---|---|---|
committer | jiffin tony Thottan <jthottan@redhat.com> | 2017-11-09 09:14:54 +0000 |
commit | a230a1a37770d283ff8d36c90af819fa6317c518 (patch) | |
tree | ed4b5b0d2024c15ff3effc5bb29413720501cf35 /cli | |
parent | 535d677beabd4d6e06437c386ae80e41ae34f122 (diff) |
eventsapi: HTTPS support for Webhooks
First it tries to call URL with verify=True without specifying the cert
path, it succeeds if a webhook is HTTP or HTTPS with CA trusted
certificates(for example https://github..).
If above call fails with SSL error then it tries to get the server
certificate and calls URL again. If call fails with SSL error even after
using the certificate, then verification will be disabled and logged in
the log file.
All other errors will be catched and logged as usual.
BUG: 1509200
Change-Id: I86a3390ed48b75dffdc7848022af23a1e1d7f076
Signed-off-by: Aravinda VK <avishwan@redhat.com>
(cherry picked from commit 4216869c724cf19c12d63c0580de88e9427e6467)
Diffstat (limited to 'cli')
0 files changed, 0 insertions, 0 deletions