question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Upgraded from v1.1.0 to v1.2.0 produces Hostname/IP does not match certificate's altnames: Host: smee.io. is not in the cert's altnames

See original GitHub issue

Hi,

first of all thanks for the support. We are using smee.io service/client to communicate github events with our internal Jenkins instance (nothing new here). We upgraded smee-client npm library from v1.1.0 to v1.2.2 and then this error is produced https://issues.redhat.com/browse/BXMSPROD-983

Connected https://smee.io/
Error [ERR_TLS_CERT_ALTNAME_INVALID]: Hostname/IP does not match certificate's altnames: Host: smee.io. is not in the cert's altnames: xxxxx
....
  code: 'ERR_TLS_CERT_ALTNAME_INVALID',
  response: undefined
}

We decided to force our machine to use v1.1.0 [1] and now it’s working. I’ve been analyzing your changes from v1.1.0 to v1.2.2 and I can see:

  • You added typescript and adapted client/index.js to client/index.ts (NOT AFFECTING)
  • You format target url using url.format (NOT AFFECTING)
  • You removed server code from there (SHOULD NOT AFFECT)
  • You upgraded these libraries (most probably by dependantbot):
    • commander@^2.12.2 to ^2.19.0 (NOT AFFECTING, treating command line args)
    • eventsource@^1.0.5 to ^1.0.7 (it shouldn’t affect to us, since it’s just treating HTTP events)
    • morgan@^1.9.0 to ^1.9.1 (NOT AFFECTING, logger)
    • validator@10.4.0 to ^10.11.0 (NOT AFFECTING, string validators and sanitizers)
    • superagent@^3.8.3 to ^5.0.2 (this is most probably the one which is introducing the error since is the library they use for pushing events).

It’s true we can setup our certificates to include smee.io stuff but I wanted to let you know, in case you are not aware, you introduced a new integration step to perform in case you want to use smee stuff, we liked smee as it was 💘

[1] https://github.com/kiegroup/kie-jenkins-scripts/pull/807 related to https://issues.redhat.com/browse/BXMSPROD-983

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
derekjobstcommented, Aug 30, 2021

Also seeing this issue. Suggested user revert to 1.1.0 or set the NODE_TLS_REJECT_UNAUTHORIZED flag. Looking forward to the fix in #162 😃

0reactions
gr2mcommented, Mar 31, 2021

I’m afraid I cannot give a lot of guidance, I never worked on smee myself, I’m afraid to introduce regressions if we do any changes. The PR at https://github.com/probot/smee-client/pull/162 does not have any tests, and I don’t know enough about smee to be confident that the change won’t break things for existing users

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hostname/IP does not match certificate's altnames
Depending on how the certificate is setup for "API Y" you can't just connect to a different server and have it work. While...
Read more >
smee.io | Webhook payload delivery service
smee.io is a small service that uses Server-Sent Events to proxy payloads from the webhook source, then transmit them to your locally running...
Read more >
gosmee - Go Packages
gosmee is a webhook forwarder that you can easily run anywhere. Description. Gosmee let you relays webhooks from itself (acting as a server)...
Read more >
smee-client - npm Package Health Analysis - Snyk
smee -client. v1.2.3. Client to proxy webhooks to local host For more information about how to use this package see README.
Read more >
Another Letsencrypt method - Page 10 - Zimbra Forums
If you restart zimbra or reboot your hosts before the expiration then one might not notice this because the updated cert would have...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found