DataDog / managed-kubernetes-auditing-toolkit

All-in-one auditing toolkit for identifying common security issues in managed Kubernetes environments. Currently supports Amazon EKS.
Apache License 2.0
317 stars 18 forks source link

mkat eks find-role-relationships can't find hostname (missing region) #18

Open NickTheCloudCoder opened 1 week ago

NickTheCloudCoder commented 1 week ago

mkat eks find-role-relationships can't find hostname (missing region)

It has a double dot: eks..amazonaws.com: no such host

Probably it should have the region, like us-east-1 in between the .'s

The other two options work OK.

sh-5.2$ ./mkat eks find-role-relationships
              _              _
  _ __ ___   | | __   __ _  | |_
 | '_ ` _ \  | |/ /  / _` | | __|
 | | | | | | |   <  | (_| | | |_
 |_| |_| |_| |_|\_\  \__,_|  \__|

2024/10/24 09:05:01 Connected to EKS cluster my-cluster
2024/10/24 09:05:01 Retrieving cluster information
2024/10/24 09:05:01 unable to analyze cluster role relationships: unable to retrieve EKS cluster information: unable to retrieve cluster OIDC issuer: operation error EKS: DescribeCluster,https response error StatusCode: 0, RequestID: , request send failed, Get "https://eks..amazonaws.com/clusters/my-cluster": dial tcp: lookup eks..amazonaws.com: no such host
christophetd commented 1 week ago

Thanks for reporting! Do you have an AWS region set in your environment?