-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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 TCP+TLS Healthchecks #18381
Merged
Merged
Add TCP+TLS Healthchecks #18381
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
6ff0e7d
Begin adding TCPUseTLS
pgporada c6d8eaa
More TCP with TLS plumbing
pgporada 729f671
Making forward progress
pgporada a382b2f
Keep on adding TCP+TLS support for healthchecks
pgporada 14a0d49
Removed too many lines
pgporada 8ee986c
Unit tests for TCP+TLS
pgporada 7c7db53
Update tlsutil/config.go
pgporada 5b0dfc6
Working on the tcp+tls unit test
pgporada 9620347
Updated the runtime integration tests
pgporada c76008b
Progress
pgporada 562c0bc
Revert this file back to HEAD
pgporada a11c310
Remove debugging lines
pgporada 9e2012c
Implement TLS enabled TCP socket server and make a successful TCP+TLS…
pgporada fd9f37c
Merge branch 'main' into healthcheck-tls
pgporada dafbf48
Update docs
pgporada c76e1b9
Merge branch 'healthcheck-tls' of github.com:pgporada/consul into hea…
pgporada 41e572d
Merge branch 'main' into healthcheck-tls
pgporada af6ba92
Update agent/agent_test.go
pgporada 8a2f5ed
Update website/content/docs/ecs/configuration-reference.mdx
pgporada f786916
Update website/content/docs/ecs/configuration-reference.mdx
pgporada 4395cd1
Update agent/checks/check.go
pgporada 2864f24
Address comments
pgporada eb72235
Remove extraneous bracket
pgporada 67c60ee
Update agent/agent_test.go
pgporada 4ca7dcc
Update agent/agent_test.go
pgporada 8e8b035
Update website/content/docs/ecs/configuration-reference.mdx
pgporada 9c53567
Update the mockTLSServer
pgporada 67d5add
Remove trailing newline
pgporada 576bcc4
Merge branch 'main' into healthcheck-tls
pgporada 0705235
Address comments
pgporada b73cec2
Merge branch 'healthcheck-tls' of github.com:pgporada/consul into hea…
pgporada 7d4b533
Merge branch 'main' into healthcheck-tls
pgporada 97ab75f
Fix merge problem
pgporada dad8aca
Add changelog entry
pgporada 1e4fa20
Merge branch 'main' into healthcheck-tls
pgporada 116be8b
Merge branch 'main' into healthcheck-tls
pgporada File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
```release-note:improvement | ||
checks: It is now possible to configure agent TCP checks to use TLS with | ||
optional server SNI and mutual authentication. To use TLS with a TCP check, the | ||
check must enable the `tcp_use_tls` boolean. By default the agent will use the | ||
TLS configuration in the `tls.default` stanza. | ||
``` |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For lines 982 and 983, I chose not to generate new key material. The
tls.RequireAndVerifyClientCert
is working by virtue of the Consul Agent sending a TLS cert with a SAN that matches a SAN loaded by the mockTLSServer (because they're both using ourdomain_server.cer). If you want me to generate new key material, that's fine by me.