Skip to content

Conversation

@ppkarwasz
Copy link
Contributor

This change adds an important note to the documentation for log4j2.trustStoreLocation and the TrustStore plugin, advising users to configure trust stores with trust roots that are appropriate for their communication scope.

The recommendation is grounded in public guidance from NIST SP 800-52 Rev. 2: Guidelines for the Selection, Configuration, and Use of Transport Layer Security (TLS) Implementations, which advises minimizing trust anchors to those necessary for the intended connections.

This change adds an important note to the documentation for `log4j2.trustStoreLocation` and the `TrustStore` plugin, advising users to configure trust stores with trust roots that are appropriate for their communication scope.

The recommendation is grounded in public guidance from
[NIST SP 800-52 Rev. 2: *Guidelines for the Selection, Configuration, and Use of Transport Layer Security (TLS) Implementations*](https://csrc.nist.gov/pubs/sp/800/52/r2/final), which advises minimizing trust anchors to those necessary for the intended connections.
Copy link
Member

@garydgregory garydgregory left a comment

Choose a reason for hiding this comment

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

Looks good. The file name "admonition" is weird in this context but that's just me. "guideline" seems better to me but it's not a big deal.

@ppkarwasz ppkarwasz enabled auto-merge (squash) December 17, 2025 22:32
@ppkarwasz
Copy link
Contributor Author

@garydgregory,

Thanks! I'll proceed with the rest of my TODO list tomorrow.

@ppkarwasz ppkarwasz merged commit 9c22ca2 into 2.x Dec 17, 2025
5 checks passed
@ppkarwasz ppkarwasz deleted the doc/2.x/trust-root branch December 17, 2025 22:52
ppkarwasz added a commit that referenced this pull request Dec 17, 2025
* docs: recommend use of appropriately scoped trust roots

This change adds an important note to the documentation for `log4j2.trustStoreLocation` and the `TrustStore` plugin, advising users to configure trust stores with trust roots that are appropriate for their communication scope.

The recommendation is grounded in public guidance from
[NIST SP 800-52 Rev. 2: *Guidelines for the Selection, Configuration, and Use of Transport Layer Security (TLS) Implementations*](https://csrc.nist.gov/pubs/sp/800/52/r2/final), which advises minimizing trust anchors to those necessary for the intended connections.

* fix: rename partial
Comment on lines +20 to +23
Log4j Core typically does not communicate with external organizations; therefore, the default trust store provided by the Java Runtime Environment is often not appropriate.

When configuring a trust store for Log4j Core, follow established best practices. For example,
https://csrc.nist.gov/pubs/sp/800/52/r2/final[NIST SP 800-52 Rev. 2] (§4.5.2) recommends using a trust store that contains only the CA certificates required for the intended communication scope, such as a private or enterprise CA. This reduces exposure to unintended or compromised CA certificates included in the default trust store.
Copy link
Member

Choose a reason for hiding this comment

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

Very helpful!

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.

4 participants