-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Added support for property based ssl configuration for JmxScraper #1361
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Hakky54 <hakangoudberg@hotmail.com>
|
@dhoard I attempted to add the possibility for configuring the ssl configuration for JmxScraper from the yaml file. The code changes for JmxScraper and JmxCollector seems ok to me, however I don't know how to properly test it to verify whether the configuration is really working as intended. Could you guide me for that part? Next to that, I tried to add an integration test with the intention of covering this change, however I am not sure whether I did the adjustment correctly for the integration test. I added RMISSLFromYamlTest which is basically a copy of EnvironmentVariableRMISSLTest however I adjusted the yaml file which contains the following snippet: hostPort: application:9999
ssl:
enabled: true
keyStore:
type: PKCS12
filename: localhost.pkcs12
password: changeit
trustStore:
type: PKCS12
filename: localhost.pkcs12
password: changeit
username: ${USERNAME}
password: ${PASSWORD}
rules:
- pattern: ".*"With the snippet above I would expect that the JmxScraper would pick up these configurations. So I would assume Is not needed in application.sh and exporter.sh however if I remove it the test is failing. Would you be able to point out which part I need to adjust to properly test these changes? Update I managed to make the test passing, added even an additional integration test. The current solution works with the existing yaml schema and also with the new schema containing the keystore/truststore path and passwords etc |
|
@Hakky54 I will be on PTO for a week, so won’t be able to review for a week. |
Signed-off-by: Hakky54 <hakangoudberg@hotmail.com>
|
Sure lets catch up when you are available again. Enjoy your days off |
Signed-off-by: Hakky54 <hakangoudberg@hotmail.com>
Signed-off-by: Hakky54 <hakangoudberg@hotmail.com>
Signed-off-by: Hakky54 <hakangoudberg@hotmail.com>
Signed-off-by: Hakky54 <hakangoudberg@hotmail.com>
Signed-off-by: Hakky54 <hakangoudberg@hotmail.com>
Signed-off-by: Hakky54 <hakangoudberg@hotmail.com>
Signed-off-by: Hakky54 <hakangoudberg@hotmail.com>
Should resolve #894 and #834