Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Able to Run On Windows #24

Open
joshkurz opened this issue Mar 28, 2023 · 0 comments
Open

Not Able to Run On Windows #24

joshkurz opened this issue Mar 28, 2023 · 0 comments

Comments

@joshkurz
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant