javascript
javascript copied to clipboard
self signed certificate in certificate chain error in 1.0.0-rc4
Describe the bug A clear and concise description of what the bug is.
I receive the following error:
request to https://example?pretty=true failed, reason: self signed certificate in certificate chain
this was not appearing on previous versions of the kubernetes client, I also noticed it on 0.20.0
but had to upgrade due to vulnerability issues with request
, is there a way to get rid of this error? I am logging into my cluster and generating a token just fine which used to work.
** Client Version **
e.g. 0.12.0
v1.0.0-rc4
** Server Version **
e.g. 1.19.1
v1.26.6
To Reproduce Steps to reproduce the behavior:
run any request with kubernetes client, e.g:
await this.kc.readNamespace({
name: this.kubeConfig.namespace,
pretty: "true",
});
Expected behavior A clear and concise description of what you expected to happen.
I should be able to make calls without errors about self-signed certs in cert chain.
** Example Code** Code snippet for what you are doing
Environment (please complete the following information):
- OS: [e.g. Windows, Linux] MacOS
- NodeJS Version [eg. 10] v18.19.0
- Cloud runtime [e.g. Azure Functions, Lambda]
Additional context Add any other context about the problem here.