RANGER-5643: Fix docker Kerberos for Solr audit dispatcher#1016
RANGER-5643: Fix docker Kerberos for Solr audit dispatcher#1016ramackri wants to merge 1 commit into
Conversation
eb1df72 to
0dd13b3
Compare
|
@ramackri - this issue would be fixed by using FQDN of Solr server in dev-support/ranger-docker/scripts/audit-dispatcher/ranger-audit-dispatcher-solr-site.xml, as shown below In addition,
No other changes should be needed. Please review and update. |
Use Solr FQDN in dispatcher site XML for SPNEGO and align Solr kerberos.cookie.domain with HTTP/ranger-solr.rangernw@REALM. Co-authored-by: Cursor <cursoragent@cursor.com>
a7dd248 to
5863aa8
Compare
|
Yes @mneethiraj reverted JAVA side change and only those 3 file changes will be enough |
Fixes RANGER-5643: In Kerberos-enabled Docker, the Solr audit dispatcher fails to index audits — SPNEGO errors (
LOOKING_UP_SERVER,NEGOTIATE, 401 from Solr) when the dispatcher uses the short Solr hostname.Problem
The Solr dispatcher consumes from Kafka but cannot write to Solr. Logs show:
Solr’s HTTP service principal is
HTTP/ranger-solr.rangernw@REALM, but the dispatcher was configured withhttp://ranger-solr:8983/.... SPNEGO requires the client target hostname to match the service principal host part.Changes
dev-support/ranger-docker/scripts/audit-dispatcher/ranger-audit-dispatcher-solr-site.xmlxasecure.audit.destination.solr.urls→http://ranger-solr.rangernw:8983/solr/ranger_auditsdev-support/ranger-docker/scripts/solr/ranger-solr.shCOOKIE_DOMAIN→ranger-solr.rangernwdev-support/ranger-docker/scripts/solr/solr-security.jsonkerberos.cookie.domainandcookie.domain→ranger-solr.rangernwWhy this is sufficient for Docker
solr.urlsmatchesHTTP/ranger-solr.rangernw@EXAMPLE.COM_HOST: Docker compose already setshostname: ranger-audit-dispatcher-solr.rangernw, which matches the keytab entryTest plan
cd dev-support/ranger-docker docker compose -f docker-compose.ranger-audit-dispatcher-solr.yml build ranger-solr ranger-audit-dispatcher-solr docker compose -f docker-compose.ranger-audit-dispatcher-solr.yml up -d --force-recreate ranger-solr ranger-audit-dispatcher-solrLOOKING_UP_SERVER/ SPNEGO / 401 on Solr update