Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop using deprecated zkcli.sh to setup security #731

Open
janhoy opened this issue Dec 9, 2024 · 0 comments
Open

Stop using deprecated zkcli.sh to setup security #731

janhoy opened this issue Dec 9, 2024 · 0 comments

Comments

@janhoy
Copy link
Contributor

janhoy commented Dec 9, 2024

Operator uses zkcli.sh to upload security.json to zookeeper (https://github.com/apache/solr-operator/blob/main/controllers/util/solr_security_util.go#L241). Since this script is gone in 10.0 we should change this.

Here is an alternative way using bin/solr.

solr zk cp zk:/security.json /tmp/current_security.json >/dev/null 2>&1
if [ $? -eq 0 ]; then
    if [ ! -s /tmp/current_security.json ] || grep -q '^{}$' /tmp/current_security.json; then
        echo $SECURITY_JSON > /tmp/security.json
        solr zk cp /tmp/security.json zk:/security.json >/dev/null 2>&1
        echo "put security.json in ZK"
    fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant