-
Notifications
You must be signed in to change notification settings - Fork 114
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
Option to merge the JVM truststore with user-supplied truststore #461
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1523,6 +1523,16 @@ type SolrTLSOptions struct { | |
// This option is typically used with `spec.updateStrategy.restartSchedule` to restart Solr pods before the mounted TLS cert expires. | ||
// +optional | ||
MountedTLSDir *MountedTLSDirectory `json:"mountedTLSDir,omitempty"` | ||
|
||
// Path on the Solr image to your JVM's truststore to merge with an external truststore. | ||
// If supplied, Solr will be configured to use the merged truststore. | ||
// The truststore for the JVM in the default Solr image is: $JAVA_HOME/lib/security/cacerts | ||
// +optional | ||
MergeJavaTruststore string `json:"mergeJavaTrustStore,omitempty"` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this work with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Typically, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, nvm all that So maybe we just punt on this feature for 0.6 and solve it using an init-db script instead? There's already some code in place for mounting a script into the init-db. |
||
|
||
// Password for the Java truststore to merge; defaults to "changeit" | ||
// +optional | ||
MergeJavaTruststorePass string `json:"mergeJavaTrustStorePass,omitempty"` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this be a secret reference? How bad is it to have this in plain text? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. seemed like overkill to me since it's the truststore pass for the JVM which is most likely "changeit" and isn't used by Solr ... that said, we can pull from a secret too ... doubt many would ever use this option. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ahhh ok, didn't understand it was unusual to change it. Sounds good |
||
} | ||
|
||
// +kubebuilder:validation:Enum=Basic | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add the
// +optional
tag for both of these new options? Just for consistency sake