-
Notifications
You must be signed in to change notification settings - Fork 318
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
Optional support for trailing slash on AWS metadata service #119
Conversation
Will review the test failures shortly and resolve. |
7e446ed
to
8656950
Compare
I'm having the same issue with m5 instnaces, I was able to reproduce it! +1 for this issue! |
replicated as well +1 |
Seeing this also on m5 instances. |
Had the exact same issue with our encrypted copy of the Debian image on M5s. Reverting to m4s fixed the issue. |
likewise: m4's work, m5's don't. any update on when this might be accepted and released? |
This is currently stopping us from upgrading to M5s. We are running our own container with this patch in non prod now, but would like to use an official image for production. So just another +1 |
Been 2 months today since this was opened =( |
In the meantime, I have pushed this fix to my docker hub /cc @jtblin can you please look at this PR #119 (or #121) and merge the fix you prefer? |
Sorry for the lag, I've merged #130 which does the same and will deploy a new version. |
Some instances have experienced difference response behavior when calling the AWS metadata without a trailing slash. I have included an example of this behavior I observed below. AWS was not helpful when I opened a ticket asking them to look into the metadata service behavior.
Trailing slash example
Instance A
(AMIk8s-1.7-debian-jessie-amd64-hvm-ebs-2017-07-28
, kops cluster, m4.large)Instance B
(An encrypted copy of AMIk8s-1.8-debian-stretch-amd64-hvm-ebs-2017-12-02
, kops cluster, m5.xlarge)Additional background.
I noticed this behavior attempting to used
kube2iam
withcluster-autoscaler
on thekops k8s 1.8
cluster withInstance B
.From a test
cluster-autoscaler
container with annotated rolekops-cas-test-role
forkube2iam
.kube2iam
log output fromcluster-autoscaler
Fix summary
I have added a optional, unmatched forward slash regex to the end of the
meta-data/iam/security-credentials
proxy route.