• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jtblin / kube2iam
18%
master: 8%

Build:
Build:
LAST BUILD BRANCH: (HEAD detached at 0.13.0) master
DEFAULT BRANCH: master
Repo Added 24 Jun 2017 11:10AM UTC
Files 10
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH 0.9.1
branch: 0.9.1
CHANGE BRANCH
x
Reset
  • 0.9.1
  • (HEAD detached at 0.13.0) master
  • 0.10.1
  • 0.10.10
  • 0.10.11
  • 0.10.2
  • 0.10.3
  • 0.10.4
  • 0.10.5
  • 0.10.6
  • 0.10.7
  • 0.10.7-rc2
  • 0.10.7-rc3
  • 0.10.8
  • 0.10.9
  • 0.11.1
  • 0.7.0
  • 0.8.0
  • 0.8.2
  • 1.10-api
  • feat/add-pr-template
  • feat/chart-update-docker-image
  • fix-ci
  • fix/sts-endpoint
  • gh-page-helm-chart
  • kube2iam-2.5.2
  • kube2iam-2.6.0
  • master
  • release-0.11.2
  • release-0.13.0
  • release-kube2iam-2.6.0

pending completion
67

push

travis-ci

jtblin
Fix missing redirect on m5/c5 instances (#130)

The AWS metadata service works differently on new instance types like
m5.large and c5.large.

The behavior on old instances is that if you call:

```
169.254.169.254/latest/meta-data/iam/security-credentials
```

It will redirect to:

```
169.254.169.254/latest/meta-data/iam/security-credentials/
```

Which will respond with the IAM role name.

On new instances there is no redirect, it just responds with the IAM role name directly.

Since kube2iam didn't intercept the URL without the slash, the pod will
initially get the worker node role and then try to request credentials for that
role, which kube2iam will deny.

Fix is to intercept both versions of the URL.

Fix #127

56 of 303 relevant lines covered (18.48%)

2.66 hits per line

Relevant lines Covered
Build:
Build:
303 RELEVANT LINES 56 COVERED LINES
2.66 HITS PER LINE
Source Files on 0.9.1
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
67 0.9.1 Fix missing redirect on m5/c5 instances (#130) The AWS metadata service works differently on new instance types like m5.large and c5.large. The behavior on old instances is that if you call: ``` 169.254.169.254/latest/meta-data/iam/securi... push 26 Mar 2018 04:04AM UTC jtblin travis-ci pending completion  
See All Builds (288)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc