Skip to content

Commit 287fd7c

Browse files
authored
Merge branch 'main' into 2fa_enforcement_db
2 parents 6a84f82 + 4b7275a commit 287fd7c

38 files changed

Lines changed: 1802 additions & 65 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,4 @@ internal/capgo-394818-68ad1517d330.json
8484
internal/Certificates_p12.p12
8585
internal/AuthKey_8P7Y3V99PJ.p8
8686
internal/CICD.mobileprovision
87+
internal/Certificates.p12

.gitsecret/paths/mapping.cfg

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
internal/how-to-deploy.md:84fb650102327a9a40e845ffe90c9f2e4ab21bdbacee13279fc420bf6a7ddf6a
22
internal/supabase/.env.local:4045b99d44963589c422b460a9c9d029a57b6714905440d5d43fd97eff4a5adb
33
internal/cloudflare/.env.local:df3e28094bb5cea2dbf71368cef66238af8d6c9631fd617fd9c14bd884826138
4-
internal/cloudflare/.env.preprod:1c35d6b06c0acd532fdb14fe1c781a42a62fd2c2968edd1ae02ea8fedc8bb30c
5-
internal/cloudflare/.env.prod:97a1d85b187f681ea25b70d4d5a4752fe0952bdc55c56e62b7200fd659a3dd8b
4+
internal/cloudflare/.env.preprod:725dd8bb110bbb401e552d4d6b5f7b738261b9af33408aa8658c5c3508275ff1
5+
internal/cloudflare/.env.prod:d0217460b1ea767ae1e94f7cf82cdfec32970819f35e226f4b4266ba1c543b81
66
internal/forgr-key.jks:92f8d5f1e532a1d9d6359a142ff922ad2f835f90cfae004222ab2a5cd17fa999
77
internal/forgr-key.jks.base64:0bc27503ed4b743318ac93186a3d731f5326d1e12ea9d50402b8b36bc3efec9e
88
internal/capgo-394818-68ad1517d330.json:de826cfbdcf7412174ff8b14f82635edf2c67ceb7d14928d8cb9067538155fa2
99
internal/Certificates_p12.p12:eff5bb704d17324573425e6dad6414abe9efa2289aa5b7707e2c5b0a946b5b6e
1010
internal/AuthKey_8P7Y3V99PJ.p8:f681dfcfd467ec885ccbdf49e0a6dda4ecbd8aa670eb5c3465c589b7464bcb27
1111
internal/CICD.mobileprovision:e608d28663532adf960152fa8e8a89c4cc38d96ca17b71dcf4a77db8c4228583
12+
internal/Certificates.p12:12be19e51e498b5fece8f85c02b84ff9f66bd54acf79ecfc4247690bd124d84d

AGENTS.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,22 @@
4141
- Cover customer-facing flows with the Playwright MCP suite. Add scenarios under
4242
`playwright/e2e` and run them locally with `bun run test:front` before
4343
shipping UI changes.
44+
45+
## Database replication
46+
47+
Our main database is hosted on Supabase. We use custom replice hosted in Planet
48+
scale
49+
50+
We have 5 read replicas for our main database to ensure high availability and
51+
low latency for read operations. These replicas are synchronized with the
52+
primary database using logical replication. We have one replicate by continent:
53+
54+
- North America (Ohio)
55+
- Europe (Frankfurt)
56+
- Asia (Seoul)
57+
- Australia (Sydney)
58+
- South America (Sao Paulo) Applications are configured to read from the nearest
59+
replica based on the user's
60+
61+
This repartition is done by Cloudflare snippets
62+
cloudflare_workers/snippet/index.js

cloudflare_workers/api/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ import { app as ok } from '../../supabase/functions/_backend/public/ok.ts'
2323
import { app as organization } from '../../supabase/functions/_backend/public/organization/index.ts'
2424
import { app as replication } from '../../supabase/functions/_backend/public/replication.ts'
2525
import { app as statistics } from '../../supabase/functions/_backend/public/statistics/index.ts'
26-
import { app as clear_app_cache } from '../../supabase/functions/_backend/triggers/clear_app_cache.ts'
27-
import { app as clear_device_cache } from '../../supabase/functions/_backend/triggers/clear_device_cache.ts'
2826
import { app as cron_clear_versions } from '../../supabase/functions/_backend/triggers/cron_clear_versions.ts'
2927
import { app as cron_email } from '../../supabase/functions/_backend/triggers/cron_email.ts'
3028
import { app as cron_stat_app } from '../../supabase/functions/_backend/triggers/cron_stat_app.ts'
@@ -82,8 +80,6 @@ appPrivate.route('/events', events)
8280
// Triggers
8381
const functionNameTriggers = 'triggers'
8482
const appTriggers = createHono(functionNameTriggers, version)
85-
appTriggers.route('/clear_app_cache', clear_app_cache)
86-
appTriggers.route('/clear_device_cache', clear_device_cache)
8783
appTriggers.route('/cron_email', cron_email)
8884
appTriggers.route('/cron_clear_versions', cron_clear_versions)
8985
appTriggers.route('/logsnag_insights', logsnag_insights)
-1 Bytes
Binary file not shown.
-1 Bytes
Binary file not shown.

internal/Certificates.p12.secret

4.15 KB
Binary file not shown.
-1 Bytes
Binary file not shown.
-2 Bytes
Binary file not shown.
-2 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)