-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Move module-based device trust check to the teleport binary #44105
Conversation
@@ -427,6 +426,8 @@ func ReadResources(filePath string) ([]types.Resource, error) { | |||
|
|||
// ApplyFileConfig applies configuration from a YAML file to Teleport | |||
// runtime config | |||
// | |||
// ApplyFileConfig is used by both teleport and tctl binaries. | |||
func ApplyFileConfig(fc *FileConfig, cfg *servicecfg.Config) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One could argue that tctl using ApplyFileConfig is the real problem, as the function is written mainly with teleport in mind (or at least that was my reading of it).
This is a harder problem to solve (if it's even a problem), so I've opted to move the modules-based check instead.
FYI @benarent. |
@codingllama See the table below for backport results.
|
Move a module-based device mode check from ApplyFileConfig (which is used by both
teleport
andtctl
) exclusively to theteleport
binary.Fixes an issue where an "OSS"
tctl
fails to load a file-based config because it can't clear the modules check.#44089
Changelog: Fixes "device trust mode x requires Teleport Enterprise" errors on
tctl
.