Closed PrettySolution closed 5 months ago
Hi,
What was finally the issue and how did you solve it? Could be useful if others face the same. Thanks
Hi, later on I learned that I could not override the Content-Type header, https://github.com/falcosecurity/falcosidekick/issues/856
Describe the bug Falcosidekick's WebHook connector ignores
WEBHOOK_CUSTOMHEADERS
env variable in falco-falcosidekick pod, resulting in an error in the logs: WebHook - 415 Unsupported Media TypeI've installed Falco Chart version 4.2.4 and made sure to configure all the necessary values for the
falcosidekick.config.webhook
object. Additionally, I've set upfalcosidekick.config.webhook.customHeaders
. Upon inspecting the environment variables within the falco-falcosidekick pod using theenv
command, I confirmed that theWEBHOOK_CUSTOMHEADERS
environment variable is properly set with thecontent-type:application/json
.Even after configuring the webhook headers correctly, I'm still encountering a 415 Unsupported Media Type error in the logs.
How to reproduce it install falco chart 4.2.4, enable falcosidekick and set up webhook connector check logs in falco-falcosidekick Pod: Webhook - Unexpected Response (415)
set falcosidekick.enabled = true set falcosidekick.config.webhook.address = http://xxx.yyy.194.126:10029/falco set falcosidekick.config.webhook.method = POST set falcosidekick.config.webhook.checkcert = false set falcosidekick.config.webhook.customHeaders = content-type:application/json
Expected behaviour
Falcosidekick - Post OK (200)
Screenshots
Environment
Additional context