Open barchetta opened 1 month ago
Possibly related to PR #8486
The root cause is this: https://github.com/helidon-io/helidon/blob/4.0.8/archetypes/archetypes/src/main/archetype/mp/oci/oci-mp.xml#L85
Those values are not documented as being supported by the OciExtension
portable extension: https://helidon.io/docs/v4/apidocs/io.helidon.integrations.oci.sdk.cdi/io/helidon/integrations/oci/sdk/cdi/OciExtension.html#configuration-heading
This has been true for a while; see (arbitrarily) version 4.0.0: https://github.com/helidon-io/helidon/blob/4.0.0/integrations/oci/sdk/cdi/src/main/java/io/helidon/integrations/oci/sdk/cdi/OciExtension.java#L324-L330
Work-around is to edit the server/src/main/resources/META-INF/*.properties
files and change occurrences of:
instance_principals
to instance-principals
config_file
to config-file
resource_principal
to resource-principal
For example:
oci.auth-strategy=config-file,instance-principals,resource-principal
An easier workaround is to supply values on the command line as system properties. Also note the OciExtension
javadoc that lists supported keys and values.
Environment Details
JDK version: 21.0.3
Problem Description
Running the OCI archetype project server results in an exception (see below). This works with 4.0.7. Two problems:
Steps to reproduce