Skip to content

Not Able to Run On Windows #24

@joshkurz

Description

@joshkurz

ON Windows, I am able to install hardeneks, but when I run the command I get a 403 for every single kubernetes command.

It looks like the python client we are using is not sending the authorization bearer token alongside the request by default.
If I hardcode this in I see the auth token being passed and everything works. If I remove the api_key and prefix, I don't see it. possibly something that is wrong in my kube config, but on mac and linux it works fine.

        kubernetes.config.load_kube_config(context=context)
        configuration = kubernetes.client.Configuration.get_default_copy()
        configuration.debug = True
        configuration.api_key = {"authorization": "foobar"}
        configuration.api_key_prefix = {"authorization": "bearer"}
        kubernetes.client.Configuration.set_default(configuration)

I dont see an issue on the python kubernetes client repo that says other users are having this issue so it could possibly be a version issue of windows or the client I am running. I need more assistance to help test on Windows to confirm.

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