Skip to content
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

Pinning Prometheus to 0.12.x for Micrometer 1.8.x #2965

Closed
jonatan-ivanov opened this issue Jan 11, 2022 · 9 comments
Closed

Pinning Prometheus to 0.12.x for Micrometer 1.8.x #2965

jonatan-ivanov opened this issue Jan 11, 2022 · 9 comments
Labels
type: task A general task
Milestone

Comments

@jonatan-ivanov
Copy link
Member

So that automated dependency update won't resolve newer versions

@jonatan-ivanov jonatan-ivanov added the type: task A general task label Jan 11, 2022
@jonatan-ivanov jonatan-ivanov added this to the 1.8.2 milestone Jan 11, 2022
@CEikermann
Copy link

Hey @jonatan-ivanov

Does micrometer not working with newer prometheus java client versions than 0.12.x ?

@shakuzen
Copy link
Member

We don't generally upgrade minor versions of dependencies we compile against in patch releases. This is pinning the minor version for our 1.8.x maintenance branch. Micrometer should work with newer versions of the prometheus java client as long as they don't have breaking changes. Our main branch used for Micrometer 1.9 development compiles against the latest version of the prometheus java client without any corresponding changes that I remember.

@CEikermann
Copy link

@shakuzen Thanks for clarification !

@jonatan-ivanov
Copy link
Member Author

Yepp, if you check our latest milestone release (1.9.0-M2 or you can check 2.x too), you can see that the Prometheus Client version is 0.14.1 there (latest at the time of creating that release).

@lalomartins
Copy link

This triggers https://nvd.nist.gov/vuln/detail/CVE-2019-3826 if I upgrade micrometer-registry-prometheus. Should I file a separate issue?

@checketts
Copy link
Contributor

checketts commented Feb 8, 2022

Isn't that CVE is for the Prometheus server. I can't seem to find the Prometheus client exposure. Could you help me understand? Please open a separate ticket.

@lalomartins
Copy link

I'm hardly an expert, I have about a month of JVM experience 😅 all I know is I upgraded micrometer-registry-prometheus to 1.8.2 and that bombed me with that CVE. I can try to inspect my dependency tree if it helps.

And yes it's almost certainly a separate ticket, but we might as well make sure this is the right place for it first 🤔

@lalomartins
Copy link

Ok false alarm, sorry for the noise. Seems the OWASP dependency check tool is bad at handling hyphens 🤦 it thinks your package is Prometheus… I'll go hit their issue tracker instead. Sigh…

@lalomartins
Copy link

FYI (and in case anyone arrives here via google) — jeremylong/DependencyCheck#1927

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

No branches or pull requests

5 participants