-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Fleet APM Integration] static Java agent version list becomes stale quickly #129866
Comments
Pinging @elastic/apm-ui (Team:apm) |
@eyalkoren Hey! We (UI Team) spoke about this in our refinement recently and I wanted to just make a some clarifications here. The "Easy fix" seems like the best way forward here, because of what would needed to be clarified for the "Ideal fix" in terms of unknowns. Querying an API for the available versions would be a lovely solution here. But I'm not sure about an external API (in this case repo1.maven.org but alternatively api.github.com). I feel like the security team might have something to say about that, and I'm not even sure that our systems can guarantee access to these APIs in the enviroments they will be running in e.g. behind firewalls etc Do you know of any other examples of features relying on external API access? Next steps I can see:
I can look into number 2, and see if anyone can provide insight into number 1. But any other insight or opinion here would be appreciated. |
The easy fix is certainly enough for now. |
@eyalkoren OK, let's move forward with the easy fix for now. |
@eyalkoren in the current version there's a default value, which is the first element from the static list of versions. Do you want to have a default value set in the text field? Should this field be required, meaning the |
No, I don't think having a static version as default would serve us right, unless it is
Good question! Ideally, the least we require is best. I am not sure which cli artifact we are using for this integration, but either way, we probably need to make it required at this point- if we use the @felixbarny what do you think about adding special handling for Regardless, I think it would be useful if the description of the text field will contain either example for proper versions like |
SGTM
Adding a example version, such as
Yes, for now, the save button should be disabled. After we have enhanced the attacher and updated APM Server to use it, we can add a default value |
No, this is entirely different and has nothing to do with getting stale, you could even give |
I can add a link to any of the links @eyalkoren mentioned above. So I should save |
Current fix
Future enhancementOnce we implement elastic/apm-agent-java#2614 and the APM Server is released with a version that contains this addition, we should use @felixbarny please approve or correct |
Suggested description: I would remove the example as I still think there's a risk users will just type in the example, such as 1.0.0. The field should be validated with a regex, such as |
Yes, that's already the case @felixbarny . It shows an error message: |
@eyalkoren / @felixbarny PR is up here #131759 |
When creating an Agent policy with APM integration and using the new (beta) Java Agent attacher, one of the integration config options is the APM Java agent version. Currently, this config is a combination of a text box and a pre-populated dropdown list of proposed versions:
It's not very clear that this is a free-text input, but even if it was, most users would likely just choose one of these options. The problem is that this list is statically created on build time, which means that it will become stale very quickly. In the worst case, the latest version in this list would contain a version that has a severe bug that was quickly resolved and released, but users will be tricked to use it.
Easy fix:
Version (for example: "1.30.0")
.Ideal fix:
Fetch available versions from maven central at runtime in the integration page
The text was updated successfully, but these errors were encountered: