-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Agent<->Landscape over TLS by default
Previously, if the Landscape server's SSL public key wasn't provided we'd default to insecure credentials for gRPC. That's not nice when the system trusts the server cert. A browser would happily render the page as safe, but the agent would fail to connect to the server's hostagent messenger. We should assume TLS by default. If the server cert path is not provided, load the system's cert pool and try to connect based on the system's chain of trust. To avoid complicating the existing tests, we preserve the use of insecure credentials via a context value. If set, we don't even check the cert path. Otherwise, TLS by default.
- Loading branch information
1 parent
8404d08
commit 0c788ce
Showing
2 changed files
with
25 additions
and
5 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