Skip to content

Commit

Permalink
[RHPAM-1829] - User password is been exposed in the Readiness probe a…
Browse files Browse the repository at this point in the history
…nd Liveness probe (#215)

Remove hack needed to temporarily fix AF-1821

Signed-off-by: Filippe Spolti <fspolti@redhat.com>
  • Loading branch information
spolti authored and errantepiphany committed Apr 22, 2019
1 parent fa84a1d commit f9426af
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions jboss-kie-workbench/added/launch/jboss-kie-workbench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,6 @@ function configure() {
configure_guvnor_settings
configure_metaspace
configure_ha
# TODO: remove after https://issues.jboss.org/browse/AF-1821
temporary_AF_1821
}

# TODO: remove after https://issues.jboss.org/browse/AF-1821
function temporary_AF_1821() {
local web_xml="${JBOSS_HOME}/standalone/deployments/ROOT.war/WEB-INF/web.xml"
local number=1
# only clear the 'number' of lines following 'BASIC auth resources', otherwise we clear other matches of 'url-pattern' unintentionally
for UP in websocket rest maven2 ws ; do
sed -i "/^\s*<web-resource-name>BASIC auth resources<\/web-resource-name>\s*$/,+${number}s/^\s*<url-pattern>\/${UP}\/\*<\/url-pattern>\s*$//" "${web_xml}"
((number++))
done
# put maven2 back
sed -i "/^\s*<web-resource-name>BASIC auth resources<\/web-resource-name>\s*$/,+1s/^$/ <url-pattern>\/maven2\/\*<\/url-pattern>/" "${web_xml}"
}

function configure_admin_security() {
Expand Down

0 comments on commit f9426af

Please sign in to comment.