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

TLS: Do not require CA config if not used. #7862

Merged
merged 1 commit into from
Sep 29, 2020

Conversation

yossigo
Copy link
Member

@yossigo yossigo commented Sep 29, 2020

The tls-ca-cert or tls-ca-cert-dir configuration parameters are only
used when Redis needs to authenticate peer certificates, in one of these
scenarios:

  1. Incoming clients or replicas, with tls-auth-clients enabled.
  2. A replica authenticating the master's peer certificate.
  3. Cluster nodes authenticating other nodes when establishing the bus
    protocol connection.

The tls-ca-cert or tls-ca-cert-dir configuration parameters are only
used when Redis needs to authenticate peer certificates, in one of these
scenarios:

1. Incoming clients or replicas, with `tls-auth-clients yes`.
2. A replica authenticating the master's peer certificate.
3. Cluster nodes authenticating other nodes when establishing the bus
   protocol connection.
@ushachar
Copy link
Contributor

ushachar commented Sep 29, 2020

@yossigo Don't you see valid reasons for enabling TLS for replication traffic without requiring client certs? Why couple the two?
When tls-replication is turned on, just follow the tls-auth-clients configuration (or - we can create tls-auth-peers to allow all permutations).

@yossigo yossigo merged commit 1591e34 into redis:unstable Sep 29, 2020
@yossigo
Copy link
Member Author

yossigo commented Sep 29, 2020

@ushachar I think that having tls-auth-clients control whether or not the master's server cert is verified is not intuitive. I'm OK with the current approach where the server certificate is always verified on all outgoing TLS connections, and this did not seem to be an issue for anyone.

@yossigo yossigo deleted the tls-relax-ca-config branch September 29, 2020 17:52
@oranagra oranagra mentioned this pull request Oct 26, 2020
oranagra pushed a commit that referenced this pull request Oct 27, 2020
The tls-ca-cert or tls-ca-cert-dir configuration parameters are only
used when Redis needs to authenticate peer certificates, in one of these
scenarios:

1. Incoming clients or replicas, with `tls-auth-clients` enabled.
2. A replica authenticating the master's peer certificate.
3. Cluster nodes authenticating other nodes when establishing the bus
   protocol connection.

(cherry picked from commit 1591e34)
JackieXie168 pushed a commit to JackieXie168/redis that referenced this pull request Nov 4, 2020
The tls-ca-cert or tls-ca-cert-dir configuration parameters are only
used when Redis needs to authenticate peer certificates, in one of these
scenarios:

1. Incoming clients or replicas, with `tls-auth-clients` enabled.
2. A replica authenticating the master's peer certificate.
3. Cluster nodes authenticating other nodes when establishing the bus
   protocol connection.
jschmieg pushed a commit to memKeyDB/memKeyDB that referenced this pull request Nov 6, 2020
The tls-ca-cert or tls-ca-cert-dir configuration parameters are only
used when Redis needs to authenticate peer certificates, in one of these
scenarios:

1. Incoming clients or replicas, with `tls-auth-clients` enabled.
2. A replica authenticating the master's peer certificate.
3. Cluster nodes authenticating other nodes when establishing the bus
   protocol connection.

(cherry picked from commit 1591e34)
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.

3 participants