Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Metadata server: Use 301 rather than 308 redirects #173

Merged
merged 1 commit into from
Nov 7, 2018

Conversation

stevenjm
Copy link
Contributor

@stevenjm stevenjm commented Nov 6, 2018

Fixes #172. Tested and confirmed that this allows the Go SDK version 1.4.10 to retrieve credentials from kiam.

In 20b1c39, requests for the
security-credentials URL were changed to redirect to
security-credentials/ with a trailing slash. However, this uses
http.StatusPermanentRedirect, which corresponds to a 308, whereas
the real metadata API issues a 301 redirect
(http.StatusMovedPermanently).

Some clients do not handle the 308 correctly and fail to retrieve
credentials. We've noticed broken behaviour in the Go sdk version
1.4.10, which is used by docker-machine.
@pingles pingles merged commit 59fb5db into uswitch:master Nov 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants