Skip to content

System certificates ignoredΒ #2546

@jeffmaury

Description

@jeffmaury

Describe the bug

System certificates configured through global agent are ignored by the kubernetes-client.

In Podman Desktop, as nodejs is not using the system certificates, we load them and make them available to various https libraries through the global agent.
But the kubernetes-client is providing its own agent to the node-fetch library and everything configured through the global agent is not taken.
So if we have to connect to a cluster with a certificate generated by a private certificate authority, it is failing but working fine in kubectl.

I can see 2 solutions:

  • merge of global agent is done in the kubernetes-client library
  • merge of global agent is done outside the kubernetes-client library (overriding applyToHTTPSOptions ?)

Client Version
1.3.0

Server Version
N/A

To Reproduce

Expected behavior

Connect to a cluster with private certificate (kind ?)

Example Code

N/A

Environment (please complete the following information):

  • OS: Ubuntu
  • Node.js version 22
  • Cloud runtime N/A

Additional context
Add any other context about the problem here.

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