Allow users to supply ACL credentials for provided ZK ensembles to configure Solr to set ACLs on znodes#253
Conversation
HoustonPutman
left a comment
There was a problem hiding this comment.
Awesome addition and especially with tests AND docs 😉
Just a few minor comments
| allACL = ref.ProvidedZookeeper.AllACL | ||
| readOnlyACL = ref.ProvidedZookeeper.ReadOnlyACL | ||
| } | ||
| return |
There was a problem hiding this comment.
very cool, did not know about this syntax
| } | ||
|
|
||
| if zkSpec.ZookeeperPod.Env != nil { | ||
| zkCluster.Spec.Pod.Env = zkSpec.ZookeeperPod.Env |
There was a problem hiding this comment.
Think you need to add this field to CopyZookeeperClusterFields
There was a problem hiding this comment.
Good catch! Thanks ... always seem to forget about these. I added a basic test for this but only looking at the env ... maybe I should bite the bullet and test all of those fields?
There was a problem hiding this comment.
Nah, there's already another issue that relates to that. We can tackle it separately and handle all objects at the same time. (They all have the same issue)
HoustonPutman
left a comment
There was a problem hiding this comment.
I think this is good to go! Great work as always
…nfigure Solr to set ACLs on znodes (apache#253)
This fixes #252 .
In addition to unit tests, I added the following config to my SolrCloud CRD YAML to enable basic auth and configure my provided ZK ensemble with ACLs:
Verified the
/security.jsonwas bootstrapped with the correct ACLs.