Skip to content

Bug: in-cluster config is passing ssl_ca_cert file path instead of the content of the file #2143

Open

Description

@yk2274

Activity

  1. ggree1 commented on Nov 24, 2023

    @ggree1

    Yeah.. Is there a way to pass cert data instead of ca file path for config.ssl_ca_cert?

  2. roycaihw commented on Dec 18, 2023

    @roycaihw
    Member

    Agreed it seems to be a bug that the code is only passing the filename instead of reading the content. Would be good if we can have a test to catch the bug.

    /help

  3. k8s-ci-robot commented on Dec 18, 2023

    @k8s-ci-robot
    Contributor

    @roycaihw:
    This request has been marked as needing help from a contributor.

    Guidelines

    Please ensure that the issue body includes answers to the following questions:

    • Why are we solving this issue?
    • To address this issue, are there any code changes? If there are code changes, what needs to be done in the code and what places can the assignee treat as reference points?
    • Does this issue have zero to low barrier of entry?
    • How can the assignee reach out to you for help?

    For more details on the requirements of such an issue, please see here and ensure that they are met.

    If this request no longer meets these requirements, the label can be removed
    by commenting with the /remove-help command.

    Details

    In response to this:

    Agreed it seems to be a bug that the code is only passing the filename instead of reading the content. Would be good if we can have a test to catch the bug.

    /help

    Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

  4. added
    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
    on Dec 18, 2023
  5. changed the title [-]Bug[/-] [+]Bug: in-cluster config is passing ssl_ca_cert file path instead of the content of the file[/+] on Dec 18, 2023
  6. ddfreiling commented on Feb 1, 2024

    @ddfreiling

    This is still a bug, cannot use ansible k8s_info on a k3s node where the ~/.kube/config just contains client-certificate-data and certificate-authority-data

  7. abhi-dev91 commented on Feb 12, 2024

    @abhi-dev91

    I also need the solution on the same, we have the requirement to pick the CA certificates from the databases as we are managing thousands of kubernetes clusters and could not maintation CA or kubeconfig file individually for each.

  8. darshanip commented on Feb 18, 2024

    @darshanip

    @roycaihw I can help on this one. Want me to draft PR?

  9. fishstamp82 commented on Jun 20, 2024

    @fishstamp82

    When using kubectl the go library defaults to reading both settings, but the python client only reads the certificate-authority setting in the get_cluster_info.

    I found test cases mentioning certificate-authority-data but its never tested.

    Would the approach be similar to kubectl to add support for certificate-authority-data in this codebase?

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

    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions