Class OciSecretsConfigSourceProvider
java.lang.Object
io.helidon.integrations.oci.secrets.configsource.OciSecretsConfigSourceProvider
- All Implemented Interfaces:
ConfigSourceProvider
@Priority(300)
public final class OciSecretsConfigSourceProvider
extends Object
implements ConfigSourceProvider
A
ConfigSourceProvider that creates ConfigSource implementations
that interact with the Oracle Cloud Infrastructure (OCI) Secrets
Retrieval and Vault APIs.
To use, ensure the packaging artifact (e.g. .jar file or similar) containing this class is present on your
class or module path as appropriate, and configure a meta-configuration source with a type of
oci-secrets, following the usual Helidon meta-configuration rules.
More specifically:
- Ensure you have an authentication mechanism set up to connect to OCI (e.g. a valid OCI configuration
file). Authentication with OCI is accomplished via the
OciExtensionclass; please see its documentation for how and when to set up anoci.yamlclasspath resource to further refine the mechanism of authentication. - Ensure there is a classpath resource present named
meta-config.yaml. - Ensure the
meta-config.yamlclasspath resource contains asourceselement with atypeofoci-secretsthat looks similar to the following, substituting values as appropriate:sources: - type: 'oci-secrets' properties: compartment-ocid: 'your vault compartment OCID goes here' vault-ocid: 'your vault OCID goes here'
Refer to Helidon's documentation concerning meta-configuration for more details.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.For use by the Helidon Config subsystem only.Deprecated.For use by the Helidon Config subsystem only.booleanDeprecated.For use by the Helidon Config subsystem only.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.config.spi.ConfigSourceProvider
createMulti
-
Constructor Details
-
OciSecretsConfigSourceProvider
Deprecated.For use byServiceLoaderonly.Creates a newOciSecretsConfigSourceProvider.
-
-
Method Details
-
create
Deprecated.For use by the Helidon Config subsystem only.Creates and returns a non-nullAbstractConfigSourceimplementation that sources its values from an Oracle Cloud Infrastructure (OCI) Vault.- Parameters:
type- one of the supported types; not actually usedmetaConfig- aConfigserving as meta-configuration for this provider; must not benullwhentypeis supported- Returns:
- a non-
nullAbstractConfigSourceimplementation - Throws:
NullPointerException- iftypeis supported andmetaConfigisnull- See Also:
-
supported
Deprecated.For use by the Helidon Config subsystem only.Returns a non-null, immutableSetof supported types suitable for the Helidon Config subsystem to pass to thecreate(String, Config)method.This method returns a
Setwhose sole element is the string "oci-secrets".- Returns:
- a non-
null, immutableSet - See Also:
-
supports
Deprecated.For use by the Helidon Config subsystem only.Returnstrueif and only if theSetreturned by an invocation of thesupported()method contains it.- Parameters:
type- the type to test- Returns:
trueif and only if theSetreturned by an invocation of thesupported()method contains it- See Also:
-
ServiceLoaderonly.