forked from linkerd/linkerd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add TLS client config option to disable it (linkerd#1856)
TLS is enabled if the TLS param is set at all. In the case of a per-client config, this means that if any matching config for a client enables TLS, it is impossible for a later client config to override this with a value that disables TLS. We add an `enabled` property to the TLS client config which defaults to true, but can be set to false to disable client TLS. Example config excerpt: ``` client: kind: io.l5d.static configs: # enables TLS for all "inet" clients - prefix: "/$/inet/{service}" tls: commonName: "{service}" # override the above to disable TLS for localhost - prefix: /$/inet/localhost tls: enabled: false ``` Fixes linkerd#1845 Signed-off-by: Alex Leong <[email protected]>
- Loading branch information
Showing
5 changed files
with
30 additions
and
3 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
namers: [] | ||
|
||
routers: | ||
- protocol: http | ||
dtab: | | ||
/svc/foo => /$/inet/www.google.com/443 ; | ||
/svc/bar => /$/inet/localhost/7777 | ||
servers: | ||
- port: 4140 | ||
|
||
client: | ||
kind: io.l5d.static | ||
configs: | ||
- prefix: "/$/inet/{service}" | ||
tls: | ||
commonName: "{service}" | ||
- prefix: /$/inet/localhost | ||
tls: | ||
enabled: false |