teleport/lib/tbot
Ryan Clark 3e3b9b42b5
Change tbot to allow reading the token from a file (#14087)
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.
2022-07-13 15:48:08 +00:00
..
botfs Refactor tbot (#12855) 2022-06-01 17:15:26 +00:00
config Change tbot to allow reading the token from a file (#14087) 2022-07-13 15:48:08 +00:00
destination Refactor tbot (#12855) 2022-06-01 17:15:26 +00:00
identity Refactor tbot (#12855) 2022-06-01 17:15:26 +00:00
testhelpers Change tbot to allow reading the token from a file (#14087) 2022-07-13 15:48:08 +00:00
tshwrap Refactor tbot (#12855) 2022-06-01 17:15:26 +00:00
configtemplate_test.go Properly handle empty list of role requests (#13456) 2022-06-27 16:25:12 +00:00
identity_test.go Fix listener flakiness in tbot tests 2022-06-10 11:12:01 +02:00
renew.go Change tbot to allow reading the token from a file (#14087) 2022-07-13 15:48:08 +00:00
renew_test.go Properly handle empty list of role requests (#13456) 2022-06-27 16:25:12 +00:00
tbot.go Change tbot to allow reading the token from a file (#14087) 2022-07-13 15:48:08 +00:00