**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
Activity