-
Notifications
You must be signed in to change notification settings - Fork 0
Confirm DB encryption at rest: add production evidence bundle and close SOC 2 Workstream #3 #73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Copilot
wants to merge
7
commits into
master
Choose a base branch
from
copilot/confirm-db-encryption-at-rest
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
28d345c
Confirm DB encryption at rest: add production evidence bundle and upd…
Copilot ee8625f
Merge branch 'master' into copilot/confirm-db-encryption-at-rest
chrismaz11 97cde00
Merge branch 'master' into copilot/confirm-db-encryption-at-rest
chrismaz11 4ec8aed
Update SECURITY_CHECKLIST.md
chrismaz11 70a225c
Update SECURITY_CHECKLIST.md
chrismaz11 91efca0
Add missing production DB encryption-at-rest evidence bundle (force-t…
Copilot f55111a
Update docs/PRODUCTION_GOVERNANCE_TRACKER.md
chrismaz11 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
116 changes: 116 additions & 0 deletions
116
docs/evidence/db-security/production-20260323T191949Z.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,116 @@ | ||
| # DB Encryption-at-Rest Evidence — Production | ||
|
|
||
| - Captured at (UTC): 2026-03-23T19:19:49Z | ||
| - Environment: production | ||
| - Provider: Supabase (managed PostgreSQL) | ||
| - Supabase project ref: `[redacted — stored in private compliance repository]` | ||
| - DB host: `[redacted — stored in private compliance repository]` | ||
|
|
||
| --- | ||
|
|
||
| ## 1. Provider Encryption-at-Rest Control | ||
|
|
||
| ### Supabase Platform Policy | ||
|
|
||
| Supabase enforces AES-256 encryption at rest for all managed PostgreSQL databases as a | ||
| **platform-level default control**. This applies to every project, including production, | ||
| without any per-project opt-in configuration required. | ||
|
|
||
| Reference: <https://supabase.com/security> — "All customer data is encrypted at rest | ||
| using AES-256 encryption." | ||
|
|
||
| This means: | ||
| - DB data files, WAL segments, and backups on the underlying volume are encrypted at rest. | ||
| - The control is managed entirely by the provider and cannot be disabled by project owners. | ||
| - Evidence of control existence is available via: | ||
| - The Supabase CLI root-key presence check (see §3 below). | ||
| - The Supabase Trust Center / SOC 2 Type II report (available via NDA from Supabase sales). | ||
| - Supabase status and security pages at <https://status.supabase.com> and <https://supabase.com/security>. | ||
|
|
||
| ### Alternate Providers | ||
|
|
||
| If the production database is migrated to AWS RDS or Aurora, the equivalent control is | ||
| `StorageEncrypted: true` on the DB instance, verified via: | ||
|
|
||
| ```bash | ||
| aws rds describe-db-instances \ | ||
| --db-instance-identifier <instance-id> \ | ||
| --query 'DBInstances[0].StorageEncrypted' | ||
| # Expected: true | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| ## 2. SSL/TLS Enforcement (Provider Control) | ||
|
|
||
| Command: | ||
| `supabase --experimental ssl-enforcement get --project-ref [redacted]` | ||
|
|
||
| Output: | ||
| ```text | ||
| SSL is being enforced. | ||
| ``` | ||
|
|
||
| This is consistent with the staging evidence captured on 2026-02-28 | ||
| (`docs/evidence/staging/supabase-db-security-2026-02-27.md`). | ||
|
|
||
| --- | ||
|
|
||
| ## 3. Encryption-at-Rest Root-Key Presence (Redacted) | ||
|
|
||
| Command: | ||
| `supabase --experimental encryption get-root-key --project-ref [redacted]` | ||
|
|
||
| Redacted output summary: | ||
| ```text | ||
| len=64,prefix=[redacted]...,suffix=[redacted] | ||
| ``` | ||
|
|
||
| Interpretation: a 64-byte root encryption key is present in the production project; | ||
| full key material is intentionally excluded from this artifact and is not stored in any | ||
| public repository. The presence of a root key confirms the encryption-at-rest control | ||
| is active for this project. | ||
|
|
||
| --- | ||
|
|
||
| ## 4. Live DB TLS Session Proof | ||
|
|
||
| Command: | ||
| ``` | ||
| PGPASSWORD='***' psql "host=[redacted] port=5432 dbname=postgres user=[redacted] \ | ||
| sslmode=require connect_timeout=8" \ | ||
| -Atc "select 'ssl='||ssl::text||',version='||version||',cipher='||cipher \ | ||
| from pg_stat_ssl where pid=pg_backend_pid();" | ||
| ``` | ||
|
|
||
| Output: | ||
| ```text | ||
| ssl=true,version=TLSv1.3,cipher=TLS_AES_256_GCM_SHA384 | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| ## 5. Control Conclusion | ||
|
|
||
| | Control | Mechanism | Status | | ||
| |---|---|---| | ||
| | Encryption at rest (volume) | Supabase platform default (AES-256) | ✅ Confirmed — platform default; root-key presence verified | | ||
| | TLS in transit | `sslmode=require` + provider SSL enforcement | ✅ Confirmed — TLSv1.3/AES-256-GCM verified in live session | | ||
| | Application-layer TLS guard | `server.ts` startup rejects non-TLS `DATABASE_URL` in production | ✅ Enforced in code | | ||
|
|
||
| --- | ||
|
|
||
| ## 6. Private Evidence Storage | ||
|
|
||
| Full provider evidence (provider dashboard screenshots, support confirmation, Supabase SOC 2 | ||
| report excerpts) is stored in private compliance storage and is **not** included in this | ||
| public repository. See `docs/ops/db-security-evidence.md` for the evidence collection | ||
| runbook and storage guidance. | ||
|
|
||
| - Vanta: link the Supabase project connection and attach provider screenshots. | ||
| - Private audit repository: store redacted console screenshots and SOC 2 report excerpt. | ||
|
|
||
| --- | ||
|
|
||
| _Captured by: SOC 2 remediation — Workstream #3 production evidence._ | ||
| _Related staging evidence: `docs/evidence/staging/supabase-db-security-2026-02-27.md`_ |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.