Skip to main content

vibedata-dlt-redshift-studio

The dlt runtime execution unit for an Amazon Redshift Domain, installed in the Studio-local intent venv.

import dlt
from vibedata.dlt.redshift import setup_environment, finalize

setup_environment()
pipeline = dlt.pipeline(
    pipeline_name="my_pipeline", destination="redshift", dataset_name="analytics"
)
try:
    pipeline.run(source)
except Exception as e:
    finalize(pipeline, error_message=str(e))
    raise
finalize(pipeline)

setup_environment() registers the Domain's Secret Store provider and mints the Ephemeral database's password into this process, under dlt's own DESTINATION__REDSHIFT__CREDENTIALS__PASSWORD. Studio publishes the other four coordinates — HOST, PORT, DATABASE, USERNAME — into the Intent environment under the matching names, and dlt reads those natively, so the pipeline names no VD_* variable itself.

The password is separate because Redshift authenticates with a credential minted per invocation, scoped to one database and valid for at most an hour.

The Broker's database_password answer also names the database user the password was minted for, and the password is valid for that user only. That username replaces the projected USERNAME, verbatim: a composite such as IAMA:<user>:<group> is the whole login name and is not parsed. An older Broker answers with access_token alone, and the projected username stays.

The credential is minted once per run and is not refreshed. A connection opened after it expires fails to authenticate, so a single dlt command is bounded by the credential's lifetime.

Without one, dlt refuses to configure the destination and names DESTINATION__REDSHIFT__CREDENTIALS__PASSWORD — which no authored pipeline sets, so this unit fails at the mint and names the Broker instead. A blank password is the case worth guarding: dlt resolves it cleanly and the load then reaches Redshift as a real login attempt, so an empty Broker answer is refused rather than set.

On a CI runner (domain-cicd's dlt-gate) there is no Broker. With VD_DLT_CREDENTIAL_SOURCE=ci-aws, setup_environment() makes no Broker call: it keeps the username and password the CI engine set in dlt's variables just before the run, and fails naming DESTINATION__REDSHIFT__CREDENTIALS__PASSWORD when it is missing or blank. An AWS Secrets Manager store then reads as the runner's ambient AWS session. Any Studio configuration alongside the switch is an error.

The minted password lives in os.environ for the life of the process, as the MotherDuck unit's token does — inherited by any child it spawns.

finalize() persists the audit tables. A Redshift load writes directly, so there is nothing to sync afterwards.

It also narrows dlt's dataset-exists check to the connected database. dlt asks svv_redshift_schemas, which lists every database's schemas on the cluster or workgroup, so from an Intent's Ephemeral database it would find the Domain's schema of the same name and never create its own (VD-7407). That is the one private seam this unit patches, which is why its dlt range has an upper bound.

Metadata

Release files for vibedata-dlt-redshift-studio 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vibedata-dlt-redshift-studio 0.5.0
File Size Uploaded Provenance Actions
vibedata_dlt_redshift_studio-0.5.0.tar.gz 10.4 kB With provenance Details for vibedata_dlt_redshift_studio-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vibedata-dlt-redshift-studio 0.5.0
File Interpreter ABI Platform Actions
vibedata_dlt_redshift_studio-0.5.0-py3-none-any.whl Python 3 none any Details for vibedata_dlt_redshift_studio-0.5.0-py3-none-any.whl

Total release size: 17.4 kB

Release files / vibedata_dlt_redshift_studio-0.5.0.tar.gz

Download URL vibedata_dlt_redshift_studio-0.5.0.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d3f536712d1ad1de00503e22c155ace412811f6d339cc98098677f7b3148d819
BLAKE2b-256 checksum
How to use checksums
a510503342f6aa25508fb9d7e6ac8a99dd6b80a735e8524ba7e3841a1e04a5b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / vibedata_dlt_redshift_studio-0.5.0-py3-none-any.whl

Download URL vibedata_dlt_redshift_studio-0.5.0-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2f156f834c3935159faff1c1ac3ec9fd2cf123ebbbeaa4c1fcb40ed604ed4101
BLAKE2b-256 checksum
How to use checksums
31a75490945bbb6e0ccd5691b44eb3ccfa709fa0f5068971e8c04ca526fc0e41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Security for vibedata-dlt-redshift-studio 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for vibedata_dlt_redshift_studio-0.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page