oci-go-sdk icon indicating copy to clipboard operation
oci-go-sdk copied to clipboard

Add support for Private Key Content Injection

Open damithkothalawala opened this issue 9 months ago • 0 comments

Hi Team,

@ddevadat is working on an integration with OCI GO SDK where he is trying to push key contents via env variable (base64 encoded) but due to the nature of the current SDK works, it requires key file to be physically present at key location.

Could you guys please look in to environmentProvider := environmentConfigurationProvider{EnvironmentVariablePrefix: "TF_VAR"} section and introduce a method to get this done ? And this would be helpful for our multi-cloud deployments via k8s config maps where we do not have instance-principals as a luxury.

https://github.com/oracle/oci-go-sdk/blob/cbd797fd54e1557327a702b8e27ba59b4658c804/common/client.go#L334

Thank you in Advance.

damithkothalawala avatar Feb 28 '25 01:02 damithkothalawala