gravitational / teleport

The easiest, and most secure way to access and protect all of your infrastructure.
https://goteleport.com
GNU Affero General Public License v3.0
16.95k stars 1.7k forks source link

Move most of the service.Connector functionality into methods #43654

Open espadolini opened 2 days ago

espadolini commented 2 days ago

This PR makes the "client identity" and "server identity" members of service.Connector private, moving just about everything into accessor methods, so that in the future the connector can be updated while the rest of the code uses it.

In addition, this PR changes agentpool and rcmanager to use a slice of ssh.AuthMethods rather than a ssh.Signer used as a fixed private key.