Skip to content

Add IMDS Integration - #164

Closed
gargipanatula wants to merge 18 commits into
aws:mainfrom
gargipanatula:imds-cleanup
Closed

gargipanatula wants to merge 18 commits into
aws:mainfrom
gargipanatula:imds-cleanup

Conversation

@gargipanatula

@gargipanatula gargipanatula commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Issue #, if available:

Description of changes:

Adds support to fetch IMDS credentials.

  • Introduces a chained retriever and imds delegate. The standard eksauth delegate is replaced by the chained retriever, which will call (in order), IMDS and the eksauth when fetching credentials
    • The chained retriever will choose the topmost credential. So, if IMDS has a credential, it'll use that. If IMDS has an expired or missing credential, it will fall back to Auth Service.
  • Nothing about the behavior of auth credentials is changed
  • For IMDS creds, there are a few differences in how they're handled:
    • They are never evicted on expiry
    • They are refreshed every 30 minutes
    • They're evicted when the credential is no longer in IMDS
  • A feature flag to gate the integration - when off, the agent only picks credentials from eksauth

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Comment thread internal/cloud/imds/service.go Outdated
//
// ErrPodNotInMapping (irrecoverable): the pod is absent from the agent's
// namespaceMapping. The mapping is refreshed every 60s in the background,
// and credentials are delivered to IMDS within ~15 minutes of pod creation.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

30 mins

@gargipanatula gargipanatula changed the title Imds cleanup Add IMDS Integration Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant