[RORDEV-2145] Document PKI auth feature - #329
Open
coutoPL wants to merge 2 commits into
Open
Conversation
Adds the pkis connector, the pki_authentication / pki_authorization / pki_auth rules, and brings the encryption section up to date: client_authentication is no longer a boolean but none / optional / required. The connector section leads with what stops PKI working rather than with syntax, because all three failure modes are silent. TLS terminated at a load balancer means no certificate ever reaches the node; client_authentication left at none means the node never asks for one; and ReadonlyREST cannot warn about either, since the ACL has no view of the TLS configuration. It also warns that PKI is only as strong as the verification the TLS layer performs. verification_mode: none makes Elasticsearch request a certificate and validate nothing, so anyone who can run a CA can issue one carrying a service's CN and be authenticated as that service - which is the strongest argument for pinning issuer_dn. The Active Directory case is called out early: the login identity is the UPN and is absent from the DN entirely, so a CN-based provider yields an unusable username and no pattern can recover it.
This comment was marked as resolved.
This comment was marked as resolved.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the pkis connector, the pki_authentication / pki_authorization / pki_auth rules, and brings the encryption section up to date: client_authentication is no longer a boolean but none / optional / required.
The connector section leads with what stops PKI working rather than with syntax, because all three failure modes are silent. TLS terminated at a load balancer means no certificate ever reaches the node; client_authentication left at none means the node never asks for one; and ReadonlyREST cannot warn about either, since the ACL has no view of the TLS configuration.
It also warns that PKI is only as strong as the verification the TLS layer performs. verification_mode: none makes Elasticsearch request a certificate and validate nothing, so anyone who can run a CA can issue one carrying a service's CN and be authenticated as that service - which is the strongest argument for pinning issuer_dn.
The Active Directory case is called out early: the login identity is the UPN and is absent from the DN entirely, so a CN-based provider yields an unusable username and no pattern can recover it.
Summary by CodeRabbit