You get a customer support ticket that opens with the phrase “I would like to exercise my right of access under PIPEDA.” The clock starts that day. Federal law gives you thirty days to respond, free of charge, with a copy of the personal information your organization holds about the requester — or a written explanation of why you cannot, on grounds the Act allows. On a managed environment the data is not in one place: it is in the application database, the read replica, last night’s backup, the analytics warehouse, the email-platform export, the log shipper’s index, and a CDN cache somewhere that nobody documented. Pulling a complete picture in thirty days, without breaking the application or accidentally exposing somebody else’s data in the export, is the runbook you do not want to be writing for the first time on day twenty-eight.
This article is the runbook, not legal advice. PIPEDA scope, exemptions, and refusal grounds are subject to interpretation by counsel and ultimately the OPC. Stack Harbor operates the infrastructure side; your privacy officer or counsel runs the legal determination.
What’s happening
PIPEDA Section 8 requires an organization to respond to an access request from an individual about their own personal information within thirty days of receipt. The response must be in a form generally understandable to the individual — not a database dump with internal column names. The organization may charge a minimal fee with prior notice, refuse on specific grounds (Section 9 — third-party PII, solicitor-client privilege, ongoing investigation, prohibitive cost), or request a thirty-day extension once, with notice. The OPC can investigate complaints and issue findings; recent enforcement and the 2025 federal privacy modernization conversation have made organizations less casual about response quality.
On a typical managed environment, the personal information about one user lives in at least six locations:
- Primary application database — user record, profile, support tickets, in-app messages.
- Read replica / analytics warehouse — denormalized copies, often with extra derived fields (cohort, churn-risk score) that the user has the right to see and to know about.
- Object storage — uploaded files, profile images, downloaded receipts.
- Backup and snapshot store — historical copies of all of the above.
- Log store — application logs, access logs, audit logs, with the user’s IP, user-agent, and request payloads.
- External processors — email platform, billing platform, CRM, error tracker (Sentry-class). Each is in scope if it holds personal information you control.
The runbook collects from each source, redacts third-party PII (Section 9), packages the result in a form the requester can read, and produces an audit trail for the response itself so the next request — or an OPC complaint about this one — has a paper record.
How to verify
Test your SAR readiness on a synthetic user before a real request lands. Create a test account, generate activity against it for a week, then assemble the access response end-to-end as if the test user had requested it. Time the assembly. If it takes more than half a working day, you are not ready for thirty days under pressure.
Confirm the application can reliably resolve every record tied to one user by primary email and by user ID:
# Application DB — pull every row across tables tied to user_id
psql "$DATABASE_URL" <<'SQL'
\set uid 12345
SELECT 'users' AS source, row_to_json(u) FROM users u WHERE id = :uid
UNION ALL
SELECT 'profiles', row_to_json(p) FROM profiles p WHERE user_id = :uid
UNION ALL
SELECT 'orders', row_to_json(o) FROM orders o WHERE user_id = :uid
UNION ALL
SELECT 'support_tickets', row_to_json(t) FROM support_tickets t WHERE user_id = :uid;
SQL
Confirm the log store can return logs filtered by user ID across the retention window:
# Loki / Grafana stack example
logcli query --since=395d '{app="api"} |= "user_id=12345"' \
| tee /tmp/sar-logs-12345.jsonl | wc -l
Confirm object storage exposes every file owned by the user:
aws s3api list-objects-v2 \
--bucket acme-user-uploads \
--prefix "user/12345/" \
--query 'Contents[].{Key:Key,Size:Size,LastModified:LastModified}' \
--output table
If any of these returns nothing for your test user — or returns less than you produced during the test week — you have an unindexed corner of personal data, and the SAR response will be incomplete by default.
The fix
The fix is a documented runbook your support desk can hand to an operator on day one of the request, plus an export script that produces the deliverable. Below is the structure we operate on managed environments. Save the bash script as /usr/local/sbin/pipeda-sar-export.sh, treat the runbook below as the procedure.
Day 0 (request received). Support desk logs the request in the SAR tracker with timestamp, requester contact, scope statement, and the auto-generated case ID. Acknowledgement is sent within one business day stating the legal deadline. Identity verification is initiated — the request must come from the data subject, not someone claiming to be them. The verification standard is documented; on managed environments we typically accept the verified email on file plus one out-of-band factor (call-back to a phone number on file, or government-ID review where the contract requires it).
Day 1–3 (scoping). Privacy officer or counsel determines: scope of the request (everything we hold, or a specific category), whether any Section 9 grounds for refusal apply, whether third-party PII will need to be redacted, whether legal-hold or ongoing-investigation exemptions are in play. The infrastructure team receives a written scope statement.
Day 4–15 (collection). The export script runs against every system holding personal data. The output is structured by source, machine-readable plus human-readable.
#!/usr/bin/env bash
set -euo pipefail
if [[ $# -lt 2 ]]; then
echo "Usage: $0 <case_id> <user_id_or_email>"
exit 2
fi
CASE="$1"
SUBJECT="$2"
OUT="/var/lib/pipeda-sar/${CASE}"
mkdir -p "$OUT"/{db,object,logs,external,redacted}
echo "==> SAR collection for case=${CASE} subject=${SUBJECT}"
# --- 1. Primary application DB ---
psql "$DATABASE_URL" -v ON_ERROR_STOP=1 -At -F $'\t' \
-f /etc/pipeda-sar/db-export.sql -v subject="$SUBJECT" \
> "$OUT/db/raw.tsv"
# --- 2. Read replica / warehouse (derived fields) ---
psql "$WAREHOUSE_URL" -v ON_ERROR_STOP=1 -At -F $'\t' \
-f /etc/pipeda-sar/warehouse-export.sql -v subject="$SUBJECT" \
> "$OUT/db/derived.tsv"
# --- 3. Object storage ---
USER_ID=$(psql "$DATABASE_URL" -tAc "SELECT id FROM users WHERE id::text='$SUBJECT' OR email='$SUBJECT'")
if [[ -n "$USER_ID" ]]; then
aws s3 sync "s3://acme-user-uploads/user/${USER_ID}/" "$OUT/object/" --quiet
fi
# --- 4. Log store (Loki) ---
logcli query --since=395d --output=jsonl \
"{app=~\"api|web|worker\"} |= \"user_id=${USER_ID}\"" \
> "$OUT/logs/app-logs.jsonl" || true
# --- 5. External processors — controller-side exports ---
# Each of these returns a JSON file the processor produces on request.
# These hit each processor's data-subject-export endpoint.
/etc/pipeda-sar/fetch-stripe.sh "$SUBJECT" > "$OUT/external/stripe.json" || true
/etc/pipeda-sar/fetch-postmark.sh "$SUBJECT" > "$OUT/external/postmark.json" || true
/etc/pipeda-sar/fetch-sentry.sh "$SUBJECT" > "$OUT/external/sentry.json" || true
# --- 6. Manifest + redaction-ready bundle ---
(
cd "$OUT"
find . -type f -print0 | xargs -0 sha256sum > MANIFEST.sha256
echo "case_id=${CASE}" > MANIFEST.meta
echo "subject=${SUBJECT}" >> MANIFEST.meta
echo "collected_at=$(date -u +%FT%TZ)" >> MANIFEST.meta
)
echo "==> Raw collection complete in $OUT"
echo "==> Next: redaction review by privacy officer before delivery"
Day 15–22 (redaction). Raw collection goes to the privacy officer or counsel for Section 9 review. Third-party PII — names of support agents in ticket threads, mentions of other users in messages, payer/payee identifiers in shared transactions — is redacted. Internal classification fields (churn-risk, fraud-risk, “do not service”) are reviewed; the legal posture is that the subject has the right to see derived information about themselves, but the methodology of the model may be exempt under trade-secret or processing-integrity grounds. The redacted bundle is built in $OUT/redacted/.
Day 23–28 (delivery). Bundle is packaged in a human-readable form — a PDF summary plus the underlying machine-readable files in a structured archive. Delivery channel is encrypted (secure share, password-protected archive with the password sent out-of-band). The response includes a written summary of the categories of personal information, the sources, the retention period, the recipients (sub-processors), and the requester’s other PIPEDA rights — correction, withdrawal of consent, complaint to the OPC. The response is logged in the SAR tracker with timestamp and delivery confirmation.
Day 29+ (extension or refusal). If thirty days cannot be met, a written extension notice is issued before day thirty, explaining the reason — Section 8(4) allows extension where the request is for a “large amount of information” or where consultation is necessary. If refusal applies, the written refusal cites the Section 9 ground, explains the recourse, and is logged.
Stress-test the runbook quarterly by running the export against a synthetic user. Time it. Update the runbook when the script breaks because a new processor was added six months ago and nobody mapped it into the SAR flow.
If your privacy program is running ahead of your operational ability to fulfill these requests on a managed environment, our Managed Cloud Ops operates the infrastructure side of SAR fulfillment as part of the standard runbook set — start a scoping conversation.