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 issueHi,
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:
- Created 3 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top GitHub Comments
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 😃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