I'm new to Grails and I'm curious to know how do y...
# questions
u
I'm new to Grails and I'm curious to know how do you manage CVEs and upgrades to fix them. I'm not even sure this is the right channel to ask this kind of questions. I'm packaging in a Docker container the application my team is developing and the security scanner we use (trivy) reports a few issues. All of those issues are in dependencies and are solved. Even if I'm still learning I'm available to help.
j
Grails uses gradle, so if it's a dependency of grails, you can swap the version via gradle / property overrdies from the spring boot dependency plugin
There are some known CVEs with Spring Boot 2.x, and unfortunately, it's paid support only. As we transition to apache, we are transitioning to a release schedule that will match Spring Boot
it's not currently possible to run Spring 3.x without Grails 7
u
Thanks James.
👍 1
u
We are using Grails 7.0.0-M3. I've already workaround most of the CVEs we are actually carrying in our final war file playing with gradle dependencies but I was curious what was the approach of the project as a whole.
j
The approach going forward will be more rapid releases to match the spring release schedule
one of the reasons we removed micronaut is b/c of the conflicting libraries that often prevent upgrades.
I'm hoping we can have an M4 by end of May. It should be a much more stable milestone.
u
The most "annoying" one is with the embedded Tomcat. I ended up removing from the war and deploying in a Tomcat
j
FYI: My company makes use of Undertow for that reason.
We're pinned to the spring boot tomcat version otherwise. And that's an upstream issue with them.
j
Since the grails-gradle-plugin applies https://docs.spring.io/dependency-management-plugin/docs/current/reference/html/#gradle.properties You can override versions in
gradle.properties
like this: tomcat.version=10.1.41 you can find the list of property names on https://docs.grails.org/snapshot/ref/Versions/Grails%20BOM.html
u
Thanks
u
I don’t know why slack notified your message only today
u
this looks to be the way for our project.
❤️ 1