kordamp / oci-maven-plugin

OCI Java SDK Maven Plugin
Apache License 2.0
5 stars 0 forks source link

Enhancement Request: Support --auth=instance_principal use case #10

Open robertpatrick opened 1 year ago

robertpatrick commented 1 year ago

We are using the plugin from our builds running in dynamically-provisioned OCI slaves. In other OCI CLI operations, we are currently relying on using --config-file=/dev/null --auth=instance_principal as the authentication mechanism. It would be convenience if we could use this mechanism for the oci-maven-plugin.

aalmiray commented 1 year ago

OK. Do you have an idea in how would that work using the OCI Java SDK?

robertpatrick commented 1 year ago

@aalmiray I suspect it involves using this class: https://github.com/oracle/oci-java-sdk/blob/master/bmc-common/src/main/java/com/oracle/bmc/auth/InstancePrincipalsAuthenticationDetailsProvider.java

aalmiray commented 1 year ago

Thanks. I'll have a look at it in the coming days 😄