ThreatMapper icon indicating copy to clipboard operation
ThreatMapper copied to clipboard

K8s scanner wont connect to router with 404 even with an admin key

Open pedro-castro-koerber opened this issue 1 year ago • 1 comments

After deploying the k8s scanner (with deepfence-k8s-scanner helm chart) with the following values

image: tag: "1.5.0" #managementConsoleUrl: "10.4.66.46" managementConsoleUrl: "deepfence-router.threatmapper.svc.cluster.local" deepfenceKey: "ADMIN KEY" clusterName: "kdtools"

The scanner always gives the same error

` time="2023-04-20 13:35:37" level=debug msg="Token generated successfully" file="main.go:61"

time="2023-04-20 13:36:07" level=debug msg="{"data":{"scans":{"7b75a386-9850-4e07-aac8-6003ba940582_2023-04-20T12:02:30.000":{"scan_id":"7b75a386-9850-4e07-aac8-6003ba940582_2023-04-20T12:02:30.000","account_id":"7b75a386-9850-4e07-aac8-6003ba940582","scan_type":"nsa-cisa","controls":null}},"refresh":""}}" file="main.go:108"

time="2023-04-20 13:36:07" level=info msg="scanId: 7b75a386-9850-4e07-aac8-6003ba940582_2023-04-20T12:02:30.000 scanType: nsa-cisa status: INPROGRESS" file="main.go:177"

time="2023-04-20 13:37:03" level=error msg="Unable to complete request on https://deepfence-router.threatmapper.svc.cluster.local/ingest/topics/compliance-scan-logs. Got 404 - \n<html lang="en">\n

\n<meta charset="utf-8">\nError\n\n\n
Cannot POST /ingest/topics/compliance-scan-logs
\n\n

pedro-castro-koerber avatar Apr 20 '23 13:04 pedro-castro-koerber

Hello @pedro-castro-koerber - Can you upgrade the threatmapper and check ? https://github.com/deepfence/ThreatMapper/tree/release-1.5/deployment-scripts

shyam-dev avatar Jun 01 '23 19:06 shyam-dev