-
Notifications
You must be signed in to change notification settings - Fork 90
3.0.0-M5: JMX Endpoint Exposure #444
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
Comments
Hi @fabapp2 , i would like to work on this one . |
Hi @ishu-thakur, thank you for your picking this issue! 🚀 As application.yaml/application.properties contain the properties for 'default' profile (which properties will be used until overwritten by a properties in another profile) it should be enough to set the property there. If more than one application.properties/.yaml exists it should be set in all of them (hard to calculate if they are ending up in digferent deployables) which should be sufficient. Please also see #446 Thanks again for picking this! |
Hi @fabapp2 tell me if i'm wrong , so the thing I have to do is that management.endpoints.jmx.exposure.include=* in the application.properties where we are setting the profile 'default' as it will override the the property if present in the other application.properties ? Sry i am asking question as i'm new contributor so I want to get the clarity for it . |
Hi @ishu-thakur It's great you ask to clarify!
Creating the report should be straightforward looking at the linked example classes. 🤞 For the migration recipe:
As I mentioned, feel free to ask anything anytime. You can also provide a draft PR in case you have questions or need feedback early on. Hope this was helpful? |
Hello @fabapp2 I would also like to work on this issue and will be syncing with @ishu-thakur for this issue. |
Hi @DevPJ9, |
Hello @fabapp2.I know @ishu-thakur and will be able to sync with him. Thanks for your suggestion and support. |
@fabapp2 I am little uncertain how to contribute can you help me with it ? and Apologies for the late reply from my side 🙏 . |
Hi @ishu-thakur |
@fabapp2 is there any documentation that tell how we can run the project or file to test the logic for JMX endpoint exposure i have created as the test case file doesn't seems to runnable :( . And i think the new Action will go to boot-2.7-3.0-upgrade-report.yaml instead boot-2.7-3.0-dependency-version-update.yaml . Do i have to create a condition under org.springframework.sbm.boot.upgrade_27_30.conditions for it too ? |
Hi @ishu-thakur |
Hi @ishu-thakur Here it could be done like this (🤞): // get spring boot application property files
List<SpringBootApplicationProperties> applicationProperties = context.search(
new SpringBootApplicationPropertiesResourceListFilter());
applicationProperties.stream()
// filter the properties files for default profile
.filter(p -> p.isDefaultProperties())
// and add the property
.forEach(p -> p.setProperty("...", "...")); For The Action (migration) you'll need to provide a condition (and reference it in yaml) in the package you named. The migration bit can be tested by creating a If you like you can just create a draft PR with what you have and I can answer questions and provide feedback on concrete code, might be easier. |
@ishu-thakur you must add .addRegistrar(new SpringBootApplicationPropertiesRegistrar(new SpringApplicationPropertiesPathMatcher())) to make |
@fabapp2 while i am writing the testcase for the jmx exposure ? then i should add . |
Sorry for my late reply, Correct, otherwise "specialized resource" |
@fabapp2 its okay I hope you have enjoyed your vacation :) yes let me figure it out and make changes then . |
Uh oh!
There was an error while loading. Please reload this page.
From the Release Notes
What needs to be done
To guarantee that JMX endpoint exposure is exactly the same as prior to 3.0 the settings in 2.7 should be restored and the user should be warned about the implications and how to secure JMX endpoints.
Report
Condition
Application is a Spring Boot 3.0.0 application and
management.endpoints.jmx.exposure.include
is not set.Section
Recipe
Condition
Application is a Spring Boot 3.0.0 application and
management.endpoints.jmx.exposure.include
is not set.Action
management.endpoints.jmx.exposure.include=*
inapplication.properties
The text was updated successfully, but these errors were encountered: