Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add web ui auth capability to the Docker image
- Loading branch information
1 parent
a0e63bb
commit 469475a
Showing
4 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/server/src/main/docker/configure-webui-authentication.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh | ||
|
||
if [ "true" = "${REAPER_ENABLE_WEBUI_AUTH}" ]; then | ||
cat <<EOT >> /etc/cassandra-reaper.yml | ||
accessControl: | ||
sessionTimeout: PT10M | ||
shiro: | ||
iniConfigs: ["file:${REAPER_SHIRO_INI}"] | ||
EOT | ||
fi | ||
|
||
if [ "true" = "${REAPER_ENABLE_WEBUI_AUTH}" ]; then | ||
cat <<EOT2 >> /etc/shiro.ini | ||
${REAPER_WEBUI_USER} = ${REAPER_WEBUI_PASSWORD} | ||
EOT2 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[main] | ||
authc = org.apache.shiro.web.filter.authc.PassThruAuthenticationFilter | ||
authc.loginUrl = /webui/login.html | ||
|
||
[urls] | ||
# Allow anonynous access to login page (and dependencies), but no other pages | ||
/webui/ = authc | ||
/webui = authc | ||
/webui/login.html = anon | ||
/webui/*.html* = authc | ||
/webui/*.js* = anon | ||
/ping = anon | ||
/login = anon | ||
/** = anon | ||
|
||
[users] |