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

Kube hunter fails when testing Rancher cluster. #515

Open
tanmaypandey7 opened this issue Jul 25, 2022 · 0 comments
Open

Kube hunter fails when testing Rancher cluster. #515

tanmaypandey7 opened this issue Jul 25, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@tanmaypandey7
Copy link

What happened

Ran kube-hunter on Rancher cluster.
Got an 404 Not Found error for CIDR.
image
I am using kube-hunter 0.6.5 image and Rancher is running on k8s 1.23.

Expected behavior

The test should run successfully.

The execution starts from here when we confirm if we are using an aws pod or not. The token hits a token endpoint which always fetches a 200 response code(see screenshot). This is the main bug.
image

Once the condition is true, the condition calls the function here, where we hit an hardcoded API which fetches a 404 code when getting the response from token.

Solution - Instead of using a hardcoded api, the input can be taken from the user about which Cloud Provider should be used for the testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant