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

Add client opts to enable system certificates #3760

Merged
merged 1 commit into from
Mar 31, 2023

Conversation

jedevc
Copy link
Member

@jedevc jedevc commented Mar 29, 2023

Additionally, this splits out WithCredentials into separate methods:

  • WithCredentials configures the client credentials presented to the server
  • WithServerConfig configures the name and ca certificate to check the server's certificate against
  • WithServerConfigSystem configures the name to check the server's certificate against - the ca certificate is automatically pulled from the system store.

This essentially splits out the different possible TLS combinations into:

  • No TLS - none of the above client options
  • TLS verifying the server against a known CA cert - use WithServerConfig
  • TLS verifying the server against a system cert - use WithServerConfigSystem
  • mTLS verifying the server against a known CA cert - use WithServerConfig + WithCredentials
  • mTLS verifying the server against a system cert - use WithServerConfigSystem + WithCredentials

Additionally, this splits out WithCredentials into separate methods:

- WithCredentials configures the client credentials presented to the
  server
- WithServerConfig configures the name and ca certificate to check the
  server's certificate against
- WithServerConfigSystem configures the name to check the server's
  certificate against - the ca certificate is automatically pulled from
  the system store.

Signed-off-by: Justin Chadwell <me@jedevc.com>
@jedevc jedevc force-pushed the with-credentials-system-certs branch from 7827c16 to 8f66706 Compare March 30, 2023 09:00
@tonistiigi tonistiigi merged commit c58ee77 into moby:master Mar 31, 2023
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.

None yet

2 participants