Disable the CDM referer interceptor to make the reverse proxy work.

This commit is contained in:
Andrea Dell'Amico 2020-08-03 15:51:57 +02:00
parent 0161c5d532
commit e92e5f637e
1 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,12 @@
notify: Restart cloudera-scm-server
tags: [ 'cdh', 'hadoop', 'cdh_m_conf' ]
- name: Comment the CsrfRefererInterceptor because it blocks the reverse proxy
lineinfile:
path: '/usr/share/cmf/webapp/WEB-INF/spring/mvc-config.xml'
state: absent # not required. choices: absent;present. Whether the line should be there or not.
regexp: '<bean class="com.cloudera.server.web.cmf.csrf.CsrfRefererInterceptor" />'
- name: Install the Cloudera Manager defaults
template: src=cloudera-scm-server.default.j2 dest=/etc/default/cloudera-scm-server owner=root group=root mode='0444'
notify: Restart cloudera-scm-server