* Move configuration from lib/service to lib/service/servicecfg
The new servicecfg package will hold only configuration for services.
This will allow other packages (like tctl and tsh) to depend on
servicecfg without pulling in all of lib/service (which has a number
of platform-specific details).
This is the first step towards being able to build tctl for Windows.
* Move PAM and BPF config into servicecfg
This breaks a compile-time dependency on BPF/PAM for tctl.
* check if proxy requested already has an active profile that is not expired before relogging the user in
maintain cert reissue
use site name
make client for currently logged in proxy
simplify if
remove cert reissue
simplify and add test
revert comment
explicitly save profile
add initial commands
add better output
* review comments
* Update tool/tctl/common/proxy_command.go
Co-authored-by: Nic Klaassen <nic@goteleport.com>
* Update tool/tctl/common/proxy_command.go
Co-authored-by: Nic Klaassen <nic@goteleport.com>
* remove stdout redirect for now
* lint
Co-authored-by: Nic Klaassen <nic@goteleport.com>