internalsGet Pro

Module 17 · Lesson 8 of 10Pro

Encryption and secrets in data pipelines

Level
Intermediate
Topic
Governance, privacy and security
Reading time
17 min

When you finish this page you can

  1. Map where a data platform’s data is stored and moved, and name the key or certificate that protects each place.
  2. Turn on SSE-KMS with an S3 Bucket Key, and decide whether Snowflake needs a customer-managed key.
  3. Move pipeline credentials into a secrets backend and onto key-pair service users, out of code, notebooks and logs.
  4. Replace or rotate a credential with an overlap, so the nightly run never meets a dead key.
  1. Cloud basics: accounts, access and networks14 min
  2. Writing Airflow DAGs: operators and sensors16 min
  3. Access control: roles, rows and columns17 min

A password in a notebook

At 09:30 IST on Monday 15 January 2029, a secret scanner flags one line in the ML team’s notebook repository. It is the password of AIRFLOW_KARTLY, the Snowflake user behind Airflow’s connection snowflake_kartly, pasted into a notebook 10 months ago. That user can read and write every table in RAW and ANALYTICS. Nobody has changed its password in 22 months, because every nightly load and the dbt build log in with it.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan