Skip to content

Task 2.2: Implement User Principal Authentication #101

Closed

Description

@slin1237

Description: Implement authentication using OCI configuration files and API keys. This includes parsing OCI config files, handling private keys, and implementing request signing according to OCI specifications.

Dependencies: Task 2.1

Deliverables:

  • User principal logic in factory.go createUserPrincipal method
  • pkg/auth/oci/config.go with UserPrincipalConfig type
  • OCI SDK handles config parsing and signing

Implementation Status:

  • UserPrincipalConfig struct with validation
  • Environment variable support (OCI_CONFIG_FILE, OCI_PROFILE)
  • Default locations (~/.oci/config)
  • Profile selection support
  • Session token support via UseSessionToken flag
  • Leverages OCI SDK's CustomProfileConfigProvider

Acceptance Criteria:

  • Reads from standard OCI config locations
  • Supports DEFAULT and named profiles
  • OCI SDK handles private key operations
  • OCI SDK implements signature scheme
  • Config validation via Validate() method
  • Custom config paths supported
  • Unit tests validate configuration
  • Integration tests in storage package

Activity

  1. added
    auth
    on Jun 30, 2025
  2. self-assigned this
    on Jun 30, 2025
  3. added a commit that references this issue on Jun 24, 2026
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