I have setup Reaper to use Shiro auth like so;
accessControl:
sessionTimeout: PT10M
shiro:
iniConfigs: ["classpath:shiro.ini"]
However no matter what users I specify in the shiro.ini file it only allows me to login as the default admin user with 'admin' as password.
Relevant part of Shiro config
[users] user1 = password, admin [roles] admin = *Hi Oscar,
can you try to use file: instead of classpath:, e.g.: iniConfigs: ["file:/etc/cassandra-reaper/shiro.ini"]
This worked or me.
Please find below shiro.ini config-parts with encrypted passwords:
[main]authc = org.apache.shiro.web.filter.authc.PassThruAuthenticationFilter
authc.loginUrl = /webui/login.html
sha256Matcher = org.apache.shiro.authc.credential.Sha256CredentialsMatcher
iniRealm.credentialsMatcher = $sha256Matcher
filterChainResolver.globalFilters = null
operator = *
user = *:read
# default authentication is the following hardcoded admin user
[users]
admin = PasswordHashHere, operator
otherUser = PasswordHashHere, operator
You can create a hash with one of the following commands:
echo -n "YourPassword" | shasum -a 256
echo -n "YourPassword" | sha256sum
This is awesome Felix, it worked! Thank you.