-
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
Auto Discover Server must not overwrite manual changes #44637
Auto Discover Server must not overwrite manual changes #44637
Conversation
ac29b7f
to
30de68a
Compare
This PR changes the flow so that only discover managed installations might have their teleport.yaml configuration replaced.
30de68a
to
28efbad
Compare
Co-authored-by: Ryan Clark <[email protected]>
@GavinFrazar can you please take a look? |
Co-authored-by: Roman Tkachenko <[email protected]>
oops, sorry I don't know how I missed this last Friday |
@marcoandredinis See the table below for backport results.
|
* Auto Discover Server must not overwrite manual changes This PR changes the flow so that only discover managed installations might have their teleport.yaml configuration replaced. * Update lib/srv/server/installer/autodiscover.go Co-authored-by: Ryan Clark <[email protected]> * Update lib/srv/server/installer/autodiscover.go Co-authored-by: Roman Tkachenko <[email protected]> * Update lib/srv/server/installer/autodiscover.go --------- Co-authored-by: Ryan Clark <[email protected]> Co-authored-by: Roman Tkachenko <[email protected]> Co-authored-by: Gavin Frazar <[email protected]>
This PR changes the flow so that only discover managed installations might have their teleport.yaml configuration replaced.
Demo
Started by using a DiscoveryConfig which had a typo in the installer params.
As expected, the command was executed but the node couldn't join
Discover notice file was created:
The discover notice file was removed and the typo was fixed.
The script refused to re-configure teleport because the discover file was not present.
After fixing the typo and running the suggested command, and after a new iteration of SSM Run (discover flow), teleport was able to recover and join the cluster.