Skip to content

Task 2.3: Implement Instance Principal Authentication #102

Closed

Description

@slin1237

Description: Implement authentication for compute instances using the Instance Metadata Service (IMDS). This allows applications running on OCI compute instances to authenticate without storing credentials.

Time Estimate: 3 days

Dependencies: Task 2.1

Deliverables:

  • Instance principal logic in factory.go createInstancePrincipal method
  • OCI SDK handles IMDS communication internally
  • Certificate handling by OCI SDK

Implementation Status:

  • Uses authlib.InstancePrincipalConfigurationProvider()
  • Enables instance metadata service lookup
  • OCI SDK handles all IMDS v2 communication
  • Automatic certificate rotation handled by SDK
  • Region extraction handled by SDK
  • Timeout and retry logic in SDK

Acceptance Criteria:

  • SDK detects when on OCI instance
  • SDK retrieves certificates from IMDS v2
  • SDK handles certificate rotation
  • SDK implements token refresh
  • SDK extracts region from metadata
  • SDK handles IMDS timeouts/retries
  • Graceful fallback via factory pattern
  • Unit tests verify factory integration
  • Integration tests require OCI instance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

authmulti-cloud

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions