teleport configure --token redacted
generates an invalid configuration
#13558
Labels
bug
regression
test-plan-problem
Issues which have been surfaced by running the manual release test plan
I first noticed this as the instructions provided under "Add Application" in the webapp generate an invalid configuration.
The instructions provide the following command to generate the configuration:
This produces a configuration block that looks like:
Running with this configuration produces:
This is because the config file loader expects that the
teleport.auth_token
field is used when providing a token, and not that thetoken_name
field is used to provide this value. This regression was introduced by #13097 , as previouslyteleport configure
used theteleport.auth_token
field.I think the best solution here would be to allow the
teleport.join_params.token_name
field to be used to provide the token as well as continuing to support theteleport.auth_token
field (until a later configuration schema version where we can remove theauth_token
field). We should probably also adjustteleport configure
to explicitly set the join params method to "token" when only--token
is provided with no method. This seems like the best solution, as it brings Teleport in line with the behaviour described in the documentation.The other solution would be to adjust
teleport configure
to use theteleport.auth_token
field again with the value of--token
. This solution has the least effect on the current behaviour of Teleport, but we would also need to update the documentation as that is currently incorrect.The text was updated successfully, but these errors were encountered: