Challenge faced by client
The challenge
The client needed Salesforce data in their GCP environment, encrypted under GDPR. Data had to stay in three regions: a hub region plus two regional zones, each needing its own keys. Every new Salesforce table meant a new pipeline to build and test.
What I built
How it works
An incremental Salesforce pipeline on Dataflow and Airflow, deployed as Docker images from Artifact Registry. Secrets sit in Secret Manager, keys in Cloud KMS, and data is staged in Google Cloud Storage before loading into BigQuery. Encryption uses AES-GCM, the mode approved in NIST SP 800-38D.
Pipeline
Follow the batch
- Extract incrementallyAirflow schedules Salesforce pulls for the tables in the config.
- Encrypt with regional keysAES-GCM encryption, with each region's key held in Cloud KMS.
- Stage in GCSEncrypted files land in the right regional bucket.
- Load to BigQueryTables load and every run is written to the audit table.
Stages describe the process. Sample data only.
Impact
Outcome & effort reduced
85%faster onboarding of new sources with metadata-driven pipelines (benchmark: 30–45 days down to 4–7)
80%less pipeline build time with metadata-driven ingestion (benchmark: 36 hours down to 8)
0code changes to add or stop a Salesforce table: it is a config edit
AES-GCMencryption mode approved under NIST SP 800-38D
Data reaches BigQuery encrypted with regional keys, and new Salesforce tables are onboarded by a config edit instead of a new build.
Benchmark sources
Benchmarks are vendor-reported results for similar pipelines, not measured results from this engagement.