Custom secret stores
Learning how to develop a custom secret store.
Create a custom secret store
The secrets store acts as the one-stop shop for all the secrets to which your pipeline or stack components might need access. It is responsible for storing, updating and deleting only the secrets values for ZenML secrets, while the ZenML secret metadata is stored in the SQL database. The secrets store interface implemented by all available secrets store back-ends is defined in the zenml.zen_stores.secrets_stores.secrets_store_interface
core module and looks more or less like this:
Build your own custom secrets store
If you want to create your own custom secrets store implementation, you can follow the following steps:
Create a class that inherits from the
zenml.zen_stores.secrets_stores.base_secrets_store.BaseSecretsStore
base class and implements theabstractmethod
s shown in the interface above. UseSecretsStoreType.CUSTOM
as theTYPE
value for your secrets store class.If you need to provide any configuration, create a class that inherits from the
SecretsStoreConfiguration
class and add your configuration parameters there. Use that as theCONFIG_TYPE
value for your secrets store class.
Last updated