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

Unable to run kubernetes Scan #3845

Closed
weisinc opened this issue Apr 23, 2024 · 3 comments
Closed

Unable to run kubernetes Scan #3845

weisinc opened this issue Apr 23, 2024 · 3 comments
Assignees
Labels
provider/kubernetes Issues/PRs related with the Kubernetes provider severity/low Bug won't result in any noticeable breakdown of the execution.

Comments

@weisinc
Copy link

weisinc commented Apr 23, 2024

Steps to Reproduce

  1. command: prowler kubernetes --context --namespace
  2. Cloud provider: GCP/GKE
  3. Environment: Single project in GCP
  4. Error: [File: kubernetes_provider.py:151] [Module: kubernetes_provider] CRITICAL: ConfigException[141]: Service host/port is not set.

Expected behavior

Prowler should start scanning the k8 namespace I've specified.

Actual Result with Screenshots or Logs

[File: kubernetes_provider.py:151] [Module: kubernetes_provider] CRITICAL: ConfigException[141]: Service host/port is not set.

How did you install Prowler?

Cloning the repository from github.com (git clone)

Environment Resource

GKE

OS used

macOS: Sonoma 14.4.1

Prowler version

Prowler 4.1.0

Pip version

pip 23.3.1

Context

No response

@weisinc weisinc added bug status/needs-triage Issue pending triage labels Apr 23, 2024
@sergargar
Copy link
Member

Hi @weisinc, thanks for reaching us out!
Can you check if you have connection to your Kubernetes cluster, please?

@sergargar sergargar self-assigned this Apr 30, 2024
@sergargar sergargar added status/awaiting-reponse Waiting response from Issue owner severity/low Bug won't result in any noticeable breakdown of the execution. provider/kubernetes Issues/PRs related with the Kubernetes provider and removed status/needs-triage Issue pending triage labels Apr 30, 2024
@weisinc
Copy link
Author

weisinc commented Apr 30, 2024

@sergargar , yes I do have connection to my kubernetes cluster. ie I'm getting back k8 info from kubectl

@weisinc
Copy link
Author

weisinc commented May 1, 2024

It is working for me now. I just need to explicitly specify the config file. I thought the command would default to it.

@weisinc weisinc closed this as completed May 1, 2024
@jfagoagas jfagoagas removed bug status/awaiting-reponse Waiting response from Issue owner labels May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
provider/kubernetes Issues/PRs related with the Kubernetes provider severity/low Bug won't result in any noticeable breakdown of the execution.
Projects
None yet
Development

No branches or pull requests

3 participants