Skip to content

Task 3.4: Implement EC2 Instance Profile Authentication #109

Closed

Description

@slin1237

Description: Implement authentication for EC2 instances using the Instance Metadata Service (IMDS). This includes support for both IMDSv1 and IMDSv2.

Time Estimate: 2 days

Dependencies: Task 3.1

Deliverables:

  • pkg/auth/aws/instance_profile.go with implementation
  • pkg/auth/aws/imds_client.go for metadata service
  • IMDSv2 session token handling

Acceptance Criteria:

  • Detects when running on EC2 instance
  • Supports IMDSv2 with session tokens
  • Falls back to IMDSv1 when appropriate
  • Retrieves credentials from instance metadata
  • Handles credential rotation automatically
  • Implements proper retry logic for IMDS
  • Respects IMDSv2 hop limit settings
  • Unit tests with mocked IMDS
  • Integration tests on EC2 instance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

authfeaturemulti-cloud

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions