Skip to content

Conversation

@petersmythe
Copy link
Contributor

Each of these GeoServer versions runs on 2 JDK versions. By switching the (internal to Docker) JDK version to the most recent of the 2, allows us to improve vulnerability scores.

For 2.28: runs on 17, 21 -> 21
For 2.27: runs on 11, 17 -> 17

e.g. for 2.28, Docker Scout reports 1 less High Severity and 14 less Medium Severity by switching from jdk17 to 21

image

Each of these GeoServer versions runs on 2 JDK versions.  By switching the (internal to Docker) JDK version to the most recent of the 2, allows us to improve vulnerability scores.

For 2.28: runs on 17, 21 -> 21
For 2.27: runs on 11, 17 -> 17
@petersmythe
Copy link
Contributor Author

See the supported versions: https://github.com/geoserver/geoserver/wiki/Release-Schedule

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR upgrades the base JDK versions used for GeoServer Docker images to reduce security vulnerabilities. The changes update the internal JDK versions to the maximum supported by each GeoServer version series.

Changes:

  • Updated GeoServer 2.28.x to use JDK 21 (previously JDK 17)
  • Updated GeoServer 2.27.x and earlier to use JDK 17 (previously JDK 11)
  • Modified the release script to automatically select the appropriate JDK version based on the GeoServer version

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@petersmythe
Copy link
Contributor Author

I would like to implement this security upgrade before 2.28.2 (imminent), please @buehner. Any objections?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant