Skip to content

Operations Examples

Status: Available in ETLantic 0.21.0. Minimal patterns for secrets, schema drift, and CI SARIF — beside the green path.

Secrets (runtime references only)

Never put secret values in plans, reports, or contracts. Use SecretRef and a provider (env/file, or etlantic-keyring).

from etlantic import SecretRef

db_password = SecretRef(provider="env", key="ETLANTIC_DB_PASSWORD")

See Secrets Management and Optional packages (etlantic-keyring).

Schema drift (observe / acknowledge)

Schema history stores fingerprints and metadata — never source rows.

etlantic schema inspect path.py:MyContract --format json
etlantic schema check path.py:MyContract --format json
etlantic schema history --format json

See CLI etlantic schema --help and Known limitations.

SARIF in CI

etlantic validate path/to/pipeline.py:MyPipeline \
  --profile ./profiles/prod.json \
  --format sarif > etlantic.sarif

Production profiles require a non-empty plugin_allowlist. Starter JSON: CI starter / prod.example.json (not installed with the PyPI wheel—create profiles/prod.json yourself). See CI integration.