Package org.openmetadata.service.secrets
Class SecretsManager
java.lang.Object
org.openmetadata.service.secrets.SecretsManager
- Direct Known Subclasses:
DBSecretsManager,ExternalSecretsManager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordprotected static final record -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSecretsManager(SecretsManagerProvider secretsManagerProvider, SecretsManager.SecretsConfig secretsConfig) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringbuildSecretId(boolean addClusterPrefix, String... secretIdValues) protected SecretsManager.SecretsIdConfigOverride this method in any Secrets Manager implementation that has other requirementsvoiddecryptAuthenticationMechanism(String name, AuthenticationMechanism authenticationMechanism) voiddecryptIngestionPipeline(IngestionPipeline ingestionPipeline) decryptOpenMetadataConnection(OpenMetadataConnection openMetadataConnection) decryptServiceConnectionConfig(Object connectionConfig, String connectionType, ServiceType serviceType) decryptWorkflow(Workflow workflow) protected abstract voiddeleteSecretInternal(String secretName) voiddeleteSecretsFromServiceConnectionConfig(Object connectionConfig, String connectionType, String connectionName, ServiceType serviceType) voiddeleteSecretsFromWorkflow(Workflow workflow) voidencryptAuthenticationMechanism(String name, AuthenticationMechanism authenticationMechanism) voidencryptIngestionPipeline(IngestionPipeline ingestionPipeline) encryptOpenMetadataConnection(OpenMetadataConnection openMetadataConnection, boolean store) encryptServiceConnectionConfig(Object connectionConfig, String connectionType, String connectionName, ServiceType serviceType) encryptWorkflow(Workflow workflow) getTags(SecretsManager.SecretsConfig secretsConfig) protected abstract StringstoreValue(String fieldName, String value, String secretId, boolean store)
-
Constructor Details
-
SecretsManager
protected SecretsManager(SecretsManagerProvider secretsManagerProvider, SecretsManager.SecretsConfig secretsConfig)
-
-
Method Details
-
builSecretsIdConfig
Override this method in any Secrets Manager implementation that has other requirements -
encryptServiceConnectionConfig
public Object encryptServiceConnectionConfig(Object connectionConfig, String connectionType, String connectionName, ServiceType serviceType) -
decryptServiceConnectionConfig
public Object decryptServiceConnectionConfig(Object connectionConfig, String connectionType, ServiceType serviceType) -
encryptAuthenticationMechanism
public void encryptAuthenticationMechanism(String name, AuthenticationMechanism authenticationMechanism) -
decryptAuthenticationMechanism
public void decryptAuthenticationMechanism(String name, AuthenticationMechanism authenticationMechanism) -
encryptIngestionPipeline
-
decryptIngestionPipeline
-
encryptWorkflow
-
decryptWorkflow
-
encryptOpenMetadataConnection
public OpenMetadataConnection encryptOpenMetadataConnection(OpenMetadataConnection openMetadataConnection, boolean store) -
decryptOpenMetadataConnection
public OpenMetadataConnection decryptOpenMetadataConnection(OpenMetadataConnection openMetadataConnection) -
storeValue
-
buildSecretId
-
deleteSecretInternal
-
deleteSecretsFromServiceConnectionConfig
public void deleteSecretsFromServiceConnectionConfig(Object connectionConfig, String connectionType, String connectionName, ServiceType serviceType) -
deleteSecretsFromWorkflow
-
getTags
-