monitoringartist / jasperserver-xxl

DEPRECATED Dockerized TIBCO JasperReports Server Community Edition
https://hub.docker.com/r/monitoringartist/jasperserver-xxl/
6 stars 16 forks source link

a way to turn off csrfguard #10

Closed jeffallen closed 7 years ago

jeffallen commented 7 years ago

Jasper cannot run behind a reverse proxy because the CSRFGuard won't allow it. I have looked for solutions, to fix it, but the only thing I came up with was disabling it entirely. To do that, you need to be able to edit WEB-INF/csrf/jrs.csrfguard.properties to set org.owasp.csrfguard.Enabled to false.

See: http://community.jaspersoft.com/documentation/tibco-jasperreports-server-security-guide/v630/configuring-csrf-protection

jangaraj commented 7 years ago

Can you mount your customized file to the container as a volume?

-v /<host_path>/jrs.csrfguard.properties:/usr/local/tomcat/webapps/jasperserver/WEB-INF/csrf/jrs.csrfguard.properties
jeffallen commented 7 years ago

Yes, that would work, I guess. I hadn't thought of -v to replace a single file before. I will give it a try and if I find a neat solution, I will send you a PR with it documented.

jeffallen commented 7 years ago

Your proposed solution can't work, because the /usr/local/tomcat/webapps/jasperserver directory does not exist until entrypoint.sh runs "ant deploy-webapp-ce". I will propose another solution.

jangaraj commented 7 years ago

OK, you need to handle that in entrypoint.sh. Options:

jangaraj commented 7 years ago

This is unsupported project now. Please use official project https://github.com/TIBCOSoftware/js-docker. If you want to maintain this repository, please contact me.

jeffallen commented 7 years ago

Understood! I will switch to using the one from TIBCO too.