Skip to content
Draft
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
393e539
feat(core): support horizontally scaling platform postgres
jakedoublev Dec 8, 2025
caa2a2b
enhancements
jakedoublev Dec 9, 2025
b76e859
Merge remote-tracking branch 'origin' into feat/horizontal-db
jakedoublev Dec 9, 2025
8779c3b
summarize
jakedoublev Dec 9, 2025
2309239
yaml anchors
jakedoublev Dec 9, 2025
dfc1d7d
improved replication with DBTX interface implementation
jakedoublev Dec 11, 2025
f3fb2bc
gemini and lint fixes
jakedoublev Dec 15, 2025
73307b0
tweak docker compose
jakedoublev Dec 15, 2025
04884bf
fix docker compose in CI
jakedoublev Dec 15, 2025
ebcb7ae
lint fixes
jakedoublev Dec 15, 2025
2aeaf9c
lint fixes
jakedoublev Dec 15, 2025
8f8a0c5
test samenet
jakedoublev Dec 15, 2025
9aa0995
lint fix
jakedoublev Dec 15, 2025
c1d6789
force primary when provisioning
jakedoublev Dec 15, 2025
8a1b5c9
tweak
jakedoublev Dec 15, 2025
c32b3aa
fix provisioning variadic Query call
jakedoublev Dec 15, 2025
214f0bc
test error log assertion
jakedoublev Dec 15, 2025
a2360e2
fix integration tests
jakedoublev Dec 15, 2025
dfbf232
integration cleanup and lint fixes
jakedoublev Dec 15, 2025
874e750
lint fix
jakedoublev Dec 15, 2025
b053f2a
Cleanup
jakedoublev Dec 16, 2025
972d577
cleanup
jakedoublev Dec 16, 2025
579c982
fixes
jakedoublev Dec 16, 2025
6c69396
improve test assertions
jakedoublev Dec 16, 2025
7661edc
test CI with read replicas
jakedoublev Dec 16, 2025
0069278
fix opentdf-dev.yaml
jakedoublev Dec 16, 2025
e9ba99d
tweak
jakedoublev Dec 16, 2025
39d3917
docs
jakedoublev Dec 16, 2025
cb7efa4
ref start-up-with-containers action on this branch and not main for d…
jakedoublev Dec 16, 2025
961e6f9
Revert "ref start-up-with-containers action on this branch and not ma…
jakedoublev Dec 16, 2025
d6e0536
put back opentdf-dev due to differing CI GHA refs pointing to committ…
jakedoublev Dec 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/scripts/postgres-primary-init.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
set -e

echo "Setting up replication user..."
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
DO \$\$
BEGIN
IF NOT EXISTS (SELECT FROM pg_catalog.pg_roles WHERE rolname = 'replicator') THEN
CREATE ROLE replicator WITH REPLICATION PASSWORD 'replicator_password' LOGIN;
END IF;
END
\$\$;
GRANT CONNECT ON DATABASE $POSTGRES_DB TO replicator;
EOSQL

# Allow replication from same Docker network using 'samenet' keyword
# This automatically matches any address in subnets the server is connected to
echo "host replication replicator samenet md5" >> "${PGDATA}/pg_hba.conf"
echo "Replication user configured"
Loading
Loading