-
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
Setting EC2 instance http_endpoint/token metadata_options breaks teleport config #10962
Comments
Confirmed and PR opened (#13417). Thanks for the great bug report! |
@AHARIC I'm going to reopen for now since you mentioned customer is still experiencing this issue, however please verify with them first that they're using the new version. The PR basically implements the change that the ticket description says fixes the issue for them. It should be available in 9.3.9. cc @fheinecke FYI |
Is this the same issue as #14359? |
@webvictim Strictly speaking I don't believe so. They appear interrelated but the only way this code is hit is if the I am reasonably certain that the root cause of #14359 is https://github.com/gravitational/teleport/blob/master/lib/utils/ec2.go#L128. It looks like when Teleport starts up it calls that function to determine if the host is an EC2 instance, then calls sets the node name if true: https://github.com/gravitational/teleport/blob/master/lib/service/service.go#L853-L854 The check in
Additionally the |
Since we can't reproduce this anymore and it's been fixed, I am going to close this ticket. Please create another ticket if this still occurs in Teleport 10. |
Description
What happened:
After setting this on the proxy launch configuration:
Customer's teleport configuration gets injected with raw html and mangles the customer config as seen below:
It appears that the issue is related to the way the we're setting/using the IMDS_TOKEN_HEADER
Customer testing showed that switching from the following:
to the following:
seems to have resolved the problem in the customer environment.
What you expected to happen:
Should be able to set instance metadata as specified above and not corrupt the teleport.yaml config
Server Details
teleport version
):gz#4227
The text was updated successfully, but these errors were encountered: