Setting TELEPORT_PROXY
and TELEPORT_CLUSTER
environment variables prevent tsh login --request-id
from working
#50721
Labels
Expected behavior:
If
TELEPORT_PROXY
andTELEPORT_CLUSTER
environment variables are set, it should still get updated certificates from the requested role. The behaviour should not differ from when the environment variables are not set (which works).Current behavior:
If
TELEPORT_PROXY
andTELEPORT_CLUSTER
environment variables are set, it is not possible totsh login --request-id
unless the variables are unset. Iftsh request create
is run and not cancelled or specified with--nowait
then there are no issues pulling the right certificates after approval.Bug details:
Recreation steps:
TELEPORT_PROXY
andTELEPORT_CLUSTER
environment variablestsh login --proxy my-teleport-url:443 my-teleport-url
tsh request create --role my-role --reason='test'
Ctrl+C
tctl
export TELEPORT_PROXY=my-teleport-url:443; export TELEPORT_CLUSTER=my-teleport-url;
tsh login --request-id=<request-id>
Approval received, getting updated certificates...
Audit Logs
The text was updated successfully, but these errors were encountered: