Skip to content

x509 certificates are not used for Webex #278

Closed
@dholbach

Description

@dholbach

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions