Skip to content

Task 2.4: Implement Resource Principal Authentication #103

Closed

Description

@slin1237

Description: Implement authentication for OCI resources like Functions and Container Instances using Resource Principal tokens. This enables serverless and containerized applications to authenticate.

Dependencies: Task 2.1

Deliverables:

  • Resource principal logic in factory.go createResourcePrincipal method
  • OCI SDK handles RPT token operations
  • Session token handling by SDK

Implementation Status:

  • Uses authlib.ResourcePrincipalConfigurationProvider()
  • OCI SDK detects environment variables
  • SDK handles all RPT token parsing
  • JWT claim extraction by SDK
  • Session token management by SDK
  • Automatic refresh handled by SDK

Acceptance Criteria:

  • SDK detects OCI_RESOURCE_PRINCIPAL_VERSION
  • SDK supports version 2.2
  • SDK retrieves RPT token
  • SDK parses JWT claims
  • SDK handles session tokens
  • SDK manages token refresh
  • Unit tests verify factory integration
  • Integration tests require OCI Functions
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