Kibana Alert Webhook behind proxy with authentication using environment variables

brunobastosg
Wed, 20 Aug 2025 19:05:18 +0000
Kibana

Hello,

I'm trying to configure a Kibana alert to send webhooks to Microsoft Teams, but I'm facing an issue with proxy authentication configuration using environment variables.

All internet access goes through a corporate proxy with basic authentication and I must configure Kibana exclusively through environment variables (cannot modify kibana.yml)

I've set XPACK_ACTIONS_PROXYURL with the proxy URL, which works partially (proxy is called but returns 407 due to missing authentication). I understand I need to configure xpack.actions.proxyHeaders to include the authorization header.

I've attempted several approaches to set the proxy headers via environment variables, all unsuccessful:

1. XPACK_ACTIONS_PROXYHEADERS={ "Authorization": "Basic BASE64Auth" } → JSON parse error

2. XPACK_ACTIONS_PROXYHEADERS='{ "Authorization": "Basic BASE64Auth" }' → JSON parse error

3. XPACK_ACTIONS_PROXYHEADERS=Authorization: Basic BASE64Auth → JSON parse error

4. XPACK_ACTIONS_PROXYHEADERS_Authorization=Basic BASE64Auth → No Kibana error, but still 407 from proxy

5. XPACK_ACTIONS_PROXYHEADERS_AUTHORIZATION=Basic BASE64Auth → No Kibana error, but still 407 from proxy

What is the correct syntax to configure xpack.actions.proxyHeaders using environment variables for proxy basic authentication?

Any guidance on the proper environment variable format would be greatly appreciated.

7 posts - 3 participants