janhoy opened a new pull request, #854:
URL: https://github.com/apache/solr-operator/pull/854

   When solrSecurity.probesRequireAuth is set, the generated probe command 
piped the output of 'solr api' through 'grep -v JAVA_TOOL_OPTIONS' to keep the 
JVM's "Picked up JAVA_TOOL_OPTIONS: ..." line, which contains the basic auth 
credentials, out of the probe output that Kubernetes surfaces in pod events.
   
   A pipeline exits with the status of its last command, so the exit code of 
'solr api' was discarded and grep's 0 was reported instead. The probes 
therefore always succeeded, and a pod whose credentials Solr rejects with a 401 
was still reported as healthy and ready.
   
   Capture the output in a variable instead of piping, save the exit status, 
then filter and exit with the saved status. POSIX sh only, so this does not 
rely on 'pipefail', which dash does not support.
   
   Fixes #799


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to