Skip to content
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

[ec2] Add trailing slash to metadata lists endpoints #1750

Merged
merged 2 commits into from
Jul 17, 2015

Conversation

olivielpeau
Copy link
Member

Thanks to @dspangen for the initial fix.

I've also added the trailing slash to the public-keys endpoint as it might break in the same way in the future.

Dan Spangenberger and others added 2 commits July 6, 2015 16:03
EC2 appears to have changed how you access the collection members of instance metadata--you now need a `/` after each collection to list them:
```
curl http://169.254.169.254/latest/meta-data/iam/security-credentials # nothing
curl http://169.254.169.254/latest/meta-data/iam/security-credentials/
ec2-staging-es
```

Rebased: [olivier.vielpeau@datadoghq.com] Merge the trailing slash
to `/iam/security-credentials` in iam_params request
Without the trailing slash we get a 301 permanent redirection
to the URL with the trailing slash. Add the trailing slash in
case the redirection is removed in the future.
@dspangen
Copy link
Contributor

dspangen commented Jul 9, 2015

Is this going to merge soon? This is preventing datadog agent from restarting on any of our ec2 instances.

@olivielpeau
Copy link
Member Author

@dspangen This fix will be merged soon and shipped with v5.5.0 of the agent. The issue shouldn't prevent the agent from restarting though (currently the agent should start fine but with these metadata tags missing).

If you have any trouble with the agent not restarting properly feel free to contact support.

remh added a commit that referenced this pull request Jul 17, 2015
…ng-slash

[ec2] Add trailing slash to metadata lists endpoints
@remh remh merged commit 28333fa into master Jul 17, 2015
@olivielpeau olivielpeau deleted the olivielpeau/ec2-metadata-trailing-slash branch July 28, 2015 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants