You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Automatic verification and updates of Quarkus
#8985
We have consistently had challenges with upgrading to new WildFly releases, which results in a large gap between when WildFly is released, and a Keycloak release with the upgrade to the new WildFly. To illustrate this WildFly 24 was released on June 17th, WildFly 25 was released on October 5th, and we still don't have a Keycloak release available based on either.
Purely from a perspective of CVEs in dependencies inherited from WildFly this is not acceptable. In addition it is taking a lot of resources to manage these upgrades.
With Keycloak.X and Quarkus the aim is to continuously upgrade, with Keycloak releases being done as close as possible to a Quarkus release as possible. This means we need to verify Quarkus continuously has development happens, rather than at the time of a release.
One issue with that is we want our main branch to be updated only when an actual Quarkus release has happened, and there can be incompatibilities between the latest Quarkus release and Quarkus main branch.
The solution I'd like to propose for this is creating a GitHub workflow that can automate the following:
Maintain a "quarkus-update" branch that is automatically rebased with the main branch as PRs are merged
Update Quarkus in the "quarkus-update" branch with the latest snapshot release of Quarkus
Detect a new Final release of Quarkus and open a PR against main branch
The workflow should at least run nightly, but could run more frequently than that. The reason behind the "quarkus-update" branch is that if there are changes required we can detect this and send a PR to resolve these issues to the "quarkus-update" branch without breaking the main branch which needs to remain compatible with the latest Quarkus release.
One issue that we can't solve right now, is that we can't inherit dependency versions from the Quarkus BOM, which requires manually updating dependency versions in https://github.com/keycloak/keycloak/blob/main/quarkus/pom.xml. This is something we need to live with for now until we can remove support for WildFly, and potentially also move adapters into a separate repository. In the long run though versions of dependencies inherited from Quarkus should set by adding the Quarkus BOM to the Keycloak parent.
For core bom syncing I'm wondering if we can explore other ways. Is there any other kind of artifact you could depend on we could generate ?
I don't think so. The problem we have right now is that we define versions of some dependencies in the top-level parent pom, which sets versions used by WF distribution, adapters, testsuite, etc.. Right now we can't use the versions defined in the Quarkus BOM everywhere, and nor can we override the versions from the BOM in the Quarkus modules I think. As we get rid of WildFly distribution, and also refactor a bit around adapters we should be able to just import the Quarkus BOM at the top-level.
I prepared a stub of the technical integration with quarkus-ecosystem-ci here: #8971
That PR can be used as a starting point to cover the additional requirements @stianst if you agree on moving forward in this direction.
@stianst I was considering the requirement of having a separate quarkus-update branch and I would like to know if we can start small and eventually implement it when we feel the need, here you have the main motivations:
All the merge actions are requiring quite high privileges and they are all "third-party"
Quarkus, so far, demonstrated to be pretty much stable or, alternatively, really quick in actioning any issue found
There is no "immediate need" for heavy automation since the process is not really automated yet
Regarding the update of the dependencies, I do believe that we can simply exclude it at first with a tuned selective update (like the one implemented here) and improve on it over time.
All in all I feel that we can keep your initial indication as a final goal and progress toward it with smaller steps.
From looking at upgrades of Quarkus in the past, most upgrades have included some code changes on our end. The reasoning for a separate branch is that I want to have the upgrade ready and prepared in advance of the Quarkus final release, as we want to release as close to the Quarkus release as we can.
Since those actions are third-party I would suggest a code review(I did it and found the code legit but better to have another couple of eyes) + forking under the keycloak organization.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
We have consistently had challenges with upgrading to new WildFly releases, which results in a large gap between when WildFly is released, and a Keycloak release with the upgrade to the new WildFly. To illustrate this WildFly 24 was released on June 17th, WildFly 25 was released on October 5th, and we still don't have a Keycloak release available based on either.
Purely from a perspective of CVEs in dependencies inherited from WildFly this is not acceptable. In addition it is taking a lot of resources to manage these upgrades.
With Keycloak.X and Quarkus the aim is to continuously upgrade, with Keycloak releases being done as close as possible to a Quarkus release as possible. This means we need to verify Quarkus continuously has development happens, rather than at the time of a release.
One issue with that is we want our main branch to be updated only when an actual Quarkus release has happened, and there can be incompatibilities between the latest Quarkus release and Quarkus main branch.
The solution I'd like to propose for this is creating a GitHub workflow that can automate the following:
The workflow should at least run nightly, but could run more frequently than that. The reason behind the "quarkus-update" branch is that if there are changes required we can detect this and send a PR to resolve these issues to the "quarkus-update" branch without breaking the main branch which needs to remain compatible with the latest Quarkus release.
One issue that we can't solve right now, is that we can't inherit dependency versions from the Quarkus BOM, which requires manually updating dependency versions in https://github.com/keycloak/keycloak/blob/main/quarkus/pom.xml. This is something we need to live with for now until we can remove support for WildFly, and potentially also move adapters into a separate repository. In the long run though versions of dependencies inherited from Quarkus should set by adding the Quarkus BOM to the Keycloak parent.
All reactions
Replies: 1 comment · 13 replies
Uh oh!
There was an error while loading. Please reload this page.
@andreaTP @DGuhr @pedroigor FIY
All reactions
Uh oh!
There was an error while loading. Please reload this page.
I don't think so. The problem we have right now is that we define versions of some dependencies in the top-level parent pom, which sets versions used by WF distribution, adapters, testsuite, etc.. Right now we can't use the versions defined in the Quarkus BOM everywhere, and nor can we override the versions from the BOM in the Quarkus modules I think. As we get rid of WildFly distribution, and also refactor a bit around adapters we should be able to just import the Quarkus BOM at the top-level.
All reactions
Uh oh!
There was an error while loading. Please reload this page.
I prepared a stub of the technical integration with
quarkus-ecosystem-cihere: #8971That PR can be used as a starting point to cover the additional requirements @stianst if you agree on moving forward in this direction.
@gsmet and @maxandersen thanks a lot for your input!
All reactions
Uh oh!
There was an error while loading. Please reload this page.
@stianst I was considering the requirement of having a separate
quarkus-updatebranch and I would like to know if we can start small and eventually implement it when we feel the need, here you have the main motivations:Regarding the update of the dependencies, I do believe that we can simply exclude it at first with a tuned selective update (like the one implemented here) and improve on it over time.
All in all I feel that we can keep your initial indication as a final goal and progress toward it with smaller steps.
All reactions
Uh oh!
There was an error while loading. Please reload this page.
From looking at upgrades of Quarkus in the past, most upgrades have included some code changes on our end. The reasoning for a separate branch is that I want to have the upgrade ready and prepared in advance of the Quarkus final release, as we want to release as close to the Quarkus release as we can.
All reactions
Uh oh!
There was an error while loading. Please reload this page.
@stianst here you have a prototype for a possible solution to the separate branch:
https://github.com/andreaTP/keycloak/blob/test-quarkus-branch/.github/workflows/quarkus-branch.yaml
Since those actions are third-party I would suggest a code review(I did it and found the code legit but better to have another couple of eyes) + forking under the keycloak organization.
All reactions