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
OciExtension
class; please see its documentation for how and when to set up anoci.yaml
classpath resource to further refine the mechanism of authentication. - Ensure there is a classpath resource present named
meta-config.yaml
. - Ensure the
meta-config.yaml
classpath resource contains asources
element with atype
ofoci-secrets
that 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
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.For use by the Helidon Config subsystem only.Deprecated.For use by the Helidon Config subsystem only.boolean
Deprecated.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, wait
Methods inherited from interface io.helidon.config.spi.ConfigSourceProvider
createMulti
-
Constructor Details
-
OciSecretsConfigSourceProvider
Deprecated.For use byServiceLoader
only.Creates a newOciSecretsConfigSourceProvider
.
-
-
Method Details
-
create
Deprecated.For use by the Helidon Config subsystem only.Creates and returns a non-null
AbstractConfigSource
implementation that sources its values from an Oracle Cloud Infrastructure (OCI) Vault.- Parameters:
type
- one of the supported types; not actually usedmetaConfig
- aConfig
serving as meta-configuration for this provider; must not benull
whentype
is supported- Returns:
- a non-
null
AbstractConfigSource
implementation - Throws:
NullPointerException
- iftype
is supported andmetaConfig
isnull
- See Also:
-
supported
Deprecated.For use by the Helidon Config subsystem only.Returns a non-null
, immutableSet
of supported types suitable for the Helidon Config subsystem to pass to thecreate(String, Config)
method.This method returns a
Set
whose sole element is the string "oci-secrets
".- Returns:
- a non-
null
, immutableSet
- See Also:
-
supports
Deprecated.For use by the Helidon Config subsystem only.Returnstrue
if and only if theSet
returned by an invocation of thesupported()
method contains it.- Parameters:
type
- the type to test- Returns:
true
if and only if theSet
returned by an invocation of thesupported()
method contains it- See Also:
-
ServiceLoader
only.