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

x509 certificates are not used for Webex #278

Closed
dholbach opened this issue Oct 27, 2021 · 0 comments · Fixed by #280
Closed

x509 certificates are not used for Webex #278

dholbach opened this issue Oct 27, 2021 · 0 comments · Fixed by #280

Comments

@dholbach
Copy link
Member

From Ada Logics

In the alert-controller the Webex hook takes an x509 certificate as argument but does not use it here:

func NewWebex(hookURL, proxyURL string, certPool *x509.CertPool) (*Webex, error) {
_, err := url.ParseRequestURI(hookURL)
if err != nil {
return nil, fmt.Errorf("invalid Webex hook URL %s", hookURL)
}
return &Webex{
URL: hookURL,
ProxyURL: proxyURL,
}, nil
}

This is despite the certPool being used by the Webex notifier here:

if err := postMessage(s.URL, s.ProxyURL, s.CertPool, payload); err != nil {
return fmt.Errorf("postMessage failed: %w", err)
}

Recommendation
Ensure certificate is used or clarify why it is not.

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 a pull request may close this issue.

1 participant