Back to integrations
Using Dagster with Hashicorp Vault
Community / Partner Supported

Using Dagster with Hashicorp Vault

Centrally manage credentials and certificates, then use them in your pipelines.

About this integration

Package for integrating Hashicorp Vault into Dagster so that you can securely manage tokens and passwords.


pip install dagster-hashicorp


# See the Resources docs to learn more:

from dagster import asset, repository, with_resources
from dagster_hashicorp.vault import vault_resource
import os

def example_asset(context):
    secret_data = context.resources.vault.read_secret(
    context.log.debug(f"Secret: {secret_data}")

assets = with_resources(
    {"vault": vault_resource.configured({
        "url": "vault-host:8200",
        "auth_type": {"token": {"token": os.environ['VAULT_AUTH_TOKEN']}},

About Hashicorp Vault

HashiCorp provides open-source tools and commercial products that enable developers, operators and security professionals to provision, secure, run and connect cloud-computing infrastructure. HashiCorp Vault secures, stores, and tightly controls access to tokens, passwords, certificates, API keys, and other secrets in modern computing.

Community / Partner integration:

This integration was built and is maintained by a community user or a technology partner from outside of Dagster Labs.