Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 03-22-2022 09:48 AM
Hello All,
We are connecting to CM console via F5 Load Balancer (Reverse Proxy). We are trying to enable X-Forwarded-For (XFF) in HTTP header, to get actual source client IP address from the CM Audits log.
How can I enable CM server to read XFF HTTP header for the source client IP address instead of reading source IP address from layer 3?
Thank you in advance.
Created 03-24-2022 01:29 AM
Hello @ram76 ,
You can configure Hue to use the XFF header:
[desktop]
use_x_forwarded_host=trueSee hue.ini reference:
https://github.com/cloudera/hue/blob/master/desktop/conf.dist/hue.ini
If not already done, besides using an external load-balancer (like F5 - to let the end users remember only a single Hue login URL) please consider to add "Hue Load Balaner" role in CM > Hue service (which sets up an Apache httpd) to serve the static contents.
See the following for more:
https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/hue_use_add_lb.html#hue_use_add_lb
Hope this helps. Best regards, Miklos
Created 03-25-2022 12:59 AM
Hi @mszurap ,
Thank you for the solution, I guess this would help to audit HUE access, though I was I looking for CM Audits.
For HUE I assume I need to add the parameter you mentioned in the following HUE configuration item.
Hue Service Advanced Configuration Snippet (Safety Valve) for hue_safety_valve.ini
Regarding to the preserve source client IP when login into CM console. I did log a ticket Cloudera Support and apparently there is JIRA OPSAPS-41615 was raised for this enhancement for CM server able to read XFF header. I don't have the access to the JIRA. I am not sure if you do.
Thanks again for the solution for HUE. I will try to test it my environment and I will update you.
Kind regards,
Rama.
Created 03-25-2022 01:27 AM
Hi Rama, yes, you can configure that in the "Hue Service Advanced Configuration Snippet (Safety Valve) for hue_safety_valve.ini".
OPSAPS-41615 is still open, in the future you can ask the status from any of your account team contacts. If you don't know who are those contacts, please ask/clarify that through the already open support case.
Best regards, Miklos