mirror of
https://github.com/gravitational/teleport
synced 2024-10-21 09:44:51 +00:00
3e3b9b42b5
This changes tbot's configuration to access the token via a getter/setter instead of a direct property, to allow us to fetch the token (possibly reading it from a file) when we need it instead of when the configuration is created. This also changes the identity fetching logic, to try and read the token when there is an identity present but not error, allowing for the token file to have been deleted between restarts. If it can read the token, it'll check to see if it has changed and refetch the identity if so. |
||
---|---|---|
.. | ||
botfs | ||
config | ||
destination | ||
identity | ||
testhelpers | ||
tshwrap | ||
configtemplate_test.go | ||
identity_test.go | ||
renew.go | ||
renew_test.go | ||
tbot.go |