Hi Search Guard team,
I’m using Apache as a proxy to redirect to Kibana.
Apache is not installed on the same host as Kibana.
Elasticsearch version: 6.6
Search Guard version: 6.x-24 sg_config.yml (9.6 KB)
Kibana: 6.6 kibana.yml (5.5 KB)
I tried to setup in Apache but it doesn’t work.
With this Apache config, I got HTTP 500 from authinfo
<Proxy balancer://kibana_cluster>
BalancerMember http://10.49.113.25:5601
BalancerMember http://10.49.114.42:5601
BalancerMember http://10.49.116.194:5601
</Proxy>
ProxyPass /api/v1/auth/authinfo balancer://kibana_cluster/api/v1/auth/authinfo
ProxyPassReverse /api/v1/auth/authinfo balancer://kibana_cluster/api/v1/auth/authinfo
ProxyPass /bundles balancer://kibana_cluster/bundles
ProxyPass /dlls balancer://kibana_cluster/dlls
ProxyPass /monitor/api/console balancer://kibana_cluster/api/console
ProxyPass /plugins balancer://kibana_cluster/plugins
ProxyPass /ui balancer://kibana_cluster/ui
ProxyPass /api/xpack balancer://kibana_cluster/api/xpack
<Location /monitor/events_aws/>
RequestHeader set "Authorization" "Basic ODAxNTk5NjpXZWxjb20zKw=="
RequestHeader set "X-Forwarded-For" "10.51.2.116"
RequestHeader set "x-proxy-user" "8015996"
ProxyPass balancer://kibana_cluster/app/kibana
ProxyPassReverse balancer://kibana_cluster/app/kibana
</Location>
With this Apache config, I got HTTP 404.
<Proxy balancer://kibana_cluster>
BalancerMember http://10.49.113.25:5601
BalancerMember http://10.49.114.42:5601
BalancerMember http://10.49.116.194:5601
</Proxy>
<Location /monitor/events_aws/>
RequestHeader set "Authorization" "Basic ODAxNTk5NjpXZWxjb20zKw=="
RequestHeader set "X-Forwarded-For" "10.51.2.116"
RequestHeader set "x-proxy-user" "8015996"
ProxyPass balancer://kibana_cluster/
ProxyPassReverse balancer://kibana_cluster/
</Location>
Did I configure something wrong?
By the way, do we need to set Authorization header for the proxy authentication?
Regards,
Worapoj