Skip to content

KhaaS : Bug into playbook and GRPC server doesn't works #257

@theoberthier

Description

@theoberthier

Describe the bug

  1. To have ui-jupyter i must modifed docker-compose.release.yaml to add your jupyter ui image

  2. kubehound dump remote => add env on host :

    • AWS_ACCESS_KEY_ID=<>
    • AWS_SECRET_ACCESS_KEY=<>
    • AWS_DEFAULT_REGION=<>
    • AWS_ENDPOINT_URL=http://:
  3. GRPC server deny connection

To Reproduce
Steps to reproduce the behavior:

  1. launch all stack with :
    "docker compose -f docker-compose.yaml -f docker-compose.release.yaml -f docker-compose.release.ingestor.yaml up -d"
    in /Kubehound/deployments/kubehound/
    this error it's raise : service "ui-jupyter" has neither an image nor a build context specified: invalid compose project

  2. GRPC aren't reachable :
    add env variable describe in 2.
    when i try to reach the endpoint :9000, with grpc client or ./bin/build/kubehound dump remote --bucket s3://kh-bucket --insecure --khaas-server 10.10.20.50:9000

INFO[17:05:58] Loading application from inline command      
INFO[17:05:58] Using /home/<user>/.config/kubehound.yaml for default config 
INFO[17:05:58] Initializing application telemetry           
WARN[17:05:58] Telemetry disabled via configuration         
INFO[17:05:58] Loading Kubernetes data collector client     
WARN[17:05:58] About to dump k8s cluster: "default" - Do you want to continue ? [Yes/No] 


-----------------
INFO[17:06:01] Launching ingestion on <ip>:9000 [rundID: 01j7h0s28d1m5hckz4gbgngwaa] 
FATA[17:06:01] call Ingest (default:01j7h0s28d1m5hckz4gbgngwaa): rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp <ip>:9000: connect: connection refused"

i tried to logs a container, and execute shell inside to debug it, but i can't launch anything with docker exec -it ....

Expected behavior
When i launch ./kubehound dump remote ........ i except to push dump into s3 bucket (it's works) and i want to send RPC request to my GRPC server

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions