Open
Description
The OCI CLI and SDKs requires a temporary security token via oci session authenticate
to be reference through a file-based configuration( security_token_file
in ~/.oci/config
). This is limiting for use cases such as CI/CD pipelines, containerized deployments, terraform cloud API based runs, or automation scripts that need to authenticate non-interactive and connot write to disk reliably.
AWS supports temporary credentials via environment variables, such as:
export AWS_ACCESS_KEY_ID=ASIAIOSFODNN7EXAMPLE
export AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
export AWS_SESSION_TOKEN=AQoDYXdzEJr...<remainder of session token>
aws ec2 describe-instances --region us-west-1
This enables automation platforms(Octopus Deploy, Bamboo, etc.) to inject credentials dynamically without writing config files or managing temp files.
Request
Add support in the OCI CLI to read temporary security tokens and user/tenancy OCIDs via environment variables, such as:
export OCI_USER_OCID=ocid1.user.oc1...
export OCI_TENANCY_OCID=ocid1.tenancy.oc1...
export OCI_REGION=us-ashburn-1
export OCI_SECURITY_TOKEN=eyJraWQiOiJ...
References:
Metadata
Metadata
Assignees
Labels
No labels