Skip to content

System certificates ignored #2546

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions