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

fix: Typo #539

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ In order to mimic an attacker in it's early stages, kube-hunter requires no auth
$ kube-hunter --active --service-account-token eyJhbGciOiJSUzI1Ni...
```

* When runing with `--pod` flag, kube-hunter uses the service account token [mounted inside the pod](https://kubernetes.io/docs/reference/access-authn-authz/service-accounts-admin/) to authenticate to services it finds during the hunt.
* When running with `--pod` flag, kube-hunter uses the service account token [mounted inside the pod](https://kubernetes.io/docs/reference/access-authn-authz/service-accounts-admin/) to authenticate to services it finds during the hunt.
* if specified, `--service-account-token` flag takes priority when running as a pod


Expand Down
2 changes: 1 addition & 1 deletion kube_hunter/conf/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def parser_add_arguments(parser):
metavar="KUBECONFIG",
default=None,
help="Specify the kubeconfig file to use for Kubernetes nodes auto discovery "
" (to be used in conjuction with the --k8s-auto-discover-nodes flag.",
" (to be used in conjunction with the --k8s-auto-discover-nodes flag.",
)

parser.add_argument("--active", action="store_true", help="Enables active hunting")
Expand Down
2 changes: 1 addition & 1 deletion kube_hunter/core/events/event_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def publish_event(self, event, caller=None):
# We check if the event we want to publish is an inherited class of the current registered-to iterated event
# Meaning - if this is a relevant event:
if hooked_event in event.__class__.__mro__:
# If so, we want to publish to all registerd hunters.
# If so, we want to publish to all registered hunters.
for hook, predicate in self.hooks[hooked_event]:
if predicate and not predicate(event):
continue
Expand Down
2 changes: 1 addition & 1 deletion kube_hunter/modules/discovery/apiserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def __init__(self, event):
self.session.headers.update({"Authorization": f"Bearer {self.event.auth_token}"})

def classify_using_version_endpoint(self):
"""Tries to classify by accessing /version. if could not access succeded, returns"""
"""Tries to classify by accessing /version. if could not access succeeded, returns"""
config = get_config()
try:
endpoint = f"{self.event.protocol}://{self.event.host}:{self.event.port}/version"
Expand Down
2 changes: 1 addition & 1 deletion kube_hunter/modules/hunting/apiserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def get_items(self, path):
for item in resp["items"]:
items.append(item["metadata"]["name"])
return items
logger.debug(f"Got HTTP {r.status_code} respone: {r.text}")
logger.debug(f"Got HTTP {r.status_code} response: {r.text}")
except (requests.exceptions.ConnectionError, KeyError):
logger.debug(f"Failed retrieving items from API server at {path}")

Expand Down