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

Detect .truststore and .keystore files as JKS #39243

Conversation

cescoffier
Copy link
Member

Despite the declining usage of JKS (Java KeyStore) format, many Java guides and articles, such as https://tomcat.apache.org/tomcat-9.0-doc/ssl-howto.html (updated in 2024), still reference it extensively. Traditionally, JKS files are identified by three common extensions: .jks, .keystore, and .truststore.

This commit addresses (reduces) the recent breaking change: JKS is no longer the default keystore/truststore format. It introduces the automatic association of files with extensions .keystore and .truststore to JKS format (in addition to .jks), which mitigates potential disruptions for users using these conventions.

@michalvavrik You recently reported this change. I decided to re-add the association of .keystore and .truststore as JKS. The reason is the abundance of resources using these conventions.

Despite the declining usage of JKS (Java KeyStore) format, many Java guides and articles, such as https://tomcat.apache.org/tomcat-9.0-doc/ssl-howto.html (updated in 2024), still reference it extensively. Traditionally, JKS files are identified by three common extensions: .jks, .keystore, and .truststore.

This commit addresses the recent breaking change where JKS is no longer the default keystore/truststore format. It introduces automatic association of files with extensions .keystore and .truststore to JKS format (in addition to .jks). This approach mitigates potential disruptions for users using these conventions.
Copy link
Member

@michalvavrik michalvavrik left a comment

Choose a reason for hiding this comment

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

I think this is right decision. Changes LGTM.

@quarkus-bot
Copy link

quarkus-bot bot commented Mar 7, 2024

Status for workflow Quarkus CI

This is the status report for running Quarkus CI on commit 312fa4b.

✅ The latest workflow run for the pull request has completed successfully.

It should be safe to merge provided you have a look at the other checks in the summary.

@sberyozkin
Copy link
Member

Yeah, even though it is a legacy format, thanks @cescoffier

@sberyozkin sberyozkin merged commit e62c12c into quarkusio:main Mar 7, 2024
49 checks passed
@quarkus-bot quarkus-bot bot added this to the 3.9 - main milestone Mar 7, 2024
@cescoffier cescoffier deleted the add-keystore-and-truststore-extension-as-jks branch March 7, 2024 14:41
@michalvavrik
Copy link
Member

@cescoffier
Copy link
Member Author

Yes! I will update it tomorrow.

@cescoffier
Copy link
Member Author

Done.

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

Successfully merging this pull request may close these issues.

3 participants