Skip to content

Task 3.5: Implement ECS Task Role Authentication #110

Closed

Description

@slin1237

Description: Implement authentication for ECS tasks using task IAM roles. This retrieves credentials from the ECS credential provider endpoint.

Time Estimate: 2 days

Dependencies: Task 3.1

Deliverables:

  • ECS task role implementation in factory.go
  • ECS credential endpoint client via SDK
  • Fargate compatibility

Implementation Status:

  • Uses endpointcreds provider from AWS SDK v2
  • Supports both relative URI (EC2) and full URI (Fargate)
  • Environment variable support:
    • AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
    • AWS_CONTAINER_CREDENTIALS_FULL_URI
    • AWS_CONTAINER_AUTHORIZATION_TOKEN
  • Authorization token support for enhanced security
  • Automatic credential refresh handled by SDK

Acceptance Criteria:

  • Detects ECS task environment via env vars
  • Retrieves credentials from ECS endpoint
  • Handles both EC2 and Fargate launch types
  • Supports custom credential endpoints
  • Automatic credential refresh
  • Proper timeout handling via SDK
  • Unit tests with configuration validation
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