From ea333d897e209e42ccafa95a8e651ff4c273db06 Mon Sep 17 00:00:00 2001 From: charitha Date: Tue, 20 Dec 2016 12:31:13 +0530 Subject: [PATCH] Remove carbon console UI from MB --- .../distribution/src/main/assembly/bin.xml | 7 + .../broker/distribution/src/main/conf/web.xml | 177 ++++++++++++++++++ modules/broker/p2-profile/pom.xml | 7 + 3 files changed, 191 insertions(+) create mode 100644 modules/broker/distribution/src/main/conf/web.xml diff --git a/modules/broker/distribution/src/main/assembly/bin.xml b/modules/broker/distribution/src/main/assembly/bin.xml index 15dda311..8d198090 100644 --- a/modules/broker/distribution/src/main/assembly/bin.xml +++ b/modules/broker/distribution/src/main/assembly/bin.xml @@ -210,6 +210,7 @@ **/broker.xml + tomcat/carbon/WEB-INF/web.xml **/axis2.xml **/carbon.xml **/cipher-text.properties @@ -352,6 +353,12 @@ ${pom.artifactId}-${pom.version}/repository/conf/ true + + src/main/conf/web.xml + + ${pom.artifactId}-${pom.version}/repository/conf/tomcat/carbon/WEB-INF/ + true + src/main/conf/metrics.xml diff --git a/modules/broker/distribution/src/main/conf/web.xml b/modules/broker/distribution/src/main/conf/web.xml new file mode 100644 index 00000000..ce5eba2e --- /dev/null +++ b/modules/broker/distribution/src/main/conf/web.xml @@ -0,0 +1,177 @@ + + + + + + + Restrict access to carbon console + + Restricted Console UI + /carbon/* + + + + + + + Owasp.CsrfGuard.Config + repository/conf/security/Owasp.CsrfGuard.Carbon.properties + + + + bridgeservlet + Carbon Bridge Servlet + Carbon Bridge Servlet + org.wso2.carbon.tomcat.ext.servlet.DelegationServlet + + 1 + + + + + JavaScriptServlet + org.owasp.csrfguard.servlet.JavaScriptServlet + + + + bridgeservlet + /* + + + + bridgeservlet + *.jsp + + + + JavaScriptServlet + /carbon/admin/js/csrfPrevention.js + + + + + CharsetFilter + org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter + + requestEncoding + UTF-8 + + + + + + CSRFGuard + org.owasp.csrfguard.CsrfGuardFilter + + + + + HttpHeaderSecurityFilter + org.apache.catalina.filters.HttpHeaderSecurityFilter + + hstsEnabled + false + + + + + HttpHeaderSecurityFilter + * + + + + CharsetFilter + /* + + + + CSRFGuard + /* + + + + + org.owasp.csrfguard.CsrfGuardServletContextListener + + + + + org.owasp.csrfguard.CsrfGuardHttpSessionListener + + + + 15 + + true + + + + + + 400 + /carbon/errors/error_400.html + + + 401 + /carbon/errors/error_401.html + + + 403 + /carbon/errors/error_403.html + + + 404 + /carbon/errors/error_404.html + + + 405 + /carbon/errors/error_405.html + + + 408 + /carbon/errors/error_408.html + + + 410 + /carbon/errors/error_410.html + + + 500 + /carbon/errors/error_500.html + + + 502 + /carbon/errors/error_502.html + + + 503 + /carbon/errors/error_503.html + + + 504 + /carbon/errors/error_504.html + + + + /carbon/errors/error.html + + diff --git a/modules/broker/p2-profile/pom.xml b/modules/broker/p2-profile/pom.xml index a007c3db..938d31b6 100644 --- a/modules/broker/p2-profile/pom.xml +++ b/modules/broker/p2-profile/pom.xml @@ -115,6 +115,9 @@ org.wso2.carbon.messaging:org.wso2.carbon.andes.feature:${carbon.messaging.version} + + org.wso2.carbon.multitenancy:org.wso2.carbon.tenant.common.server.feature:${carbon.multitenancy.version} + org.wso2.carbon.commons:org.wso2.carbon.tenant.mgt.common.feature:${carbon.commons.version} @@ -236,6 +239,10 @@ ${carbon.multitenancy.version} + + org.wso2.carbon.tenant.common.server.feature.group + ${carbon.multitenancy.version} + org.wso2.carbon.identity.authenticator.saml2.sso.server.feature.group