hardeneks
hardeneks copied to clipboard
Not Able to Run On Windows
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.
Hi @joshkurz Are you still having this issue? Have you tried install hardeneks on Windows WSL? https://learn.microsoft.com/en-us/windows/wsl/