revert(platform-postgres): hand the tech-log pg_hba fix to W1
This reverts commit 1c4ef9a.
W1 owns the CNPG backup work, which changes the same Cluster manifest
(services/platform-postgres/base/cluster.yaml). The program rule is that
another session does not edit files in W1's scope; overlaps are recorded
as findings and handed over. The drift itself is unchanged: the live
Cluster still has two techlog pg_hba rules the repository does not
declare, so applying the current render would cut the production
backend off its database. The exact change, its render invariants and
the RED/GREEN evidence are in the maturity review, section 6.
Verification: git diff origin/main...HEAD no longer lists any
services/platform-postgres or scripts/validate/render-phase1.sh path.
This commit is contained in:
@@ -21,16 +21,9 @@ platform-postgres-rw.platform-data.svc.cluster.local:5432
|
||||
업그레이드한다.
|
||||
|
||||
Cluster의 사용자 정의 `pg_hba` 규칙은 `gitea`가 `gitea` Database에만,
|
||||
`keycloak`이 `keycloak` Database에만, `techlog`가 `techlog` Database에만 인증하도록
|
||||
허용한 뒤 각 Role의 다른 모든 Database 접근을 거부한다. 이 규칙들은
|
||||
CloudNativePG의 기본 fallback 인증 규칙보다 앞에 배치된다.
|
||||
|
||||
`techlog` 규칙 쌍은 운영 tech-log(hyeonworks.com)가 쓰는 것으로, 클러스터에는
|
||||
이 저장소 밖에서 먼저 들어갔다(2026-11-11 점검에서 확인). 이 규칙 쌍이 없는 렌더를
|
||||
적용하면 운영 backend가 DB에 접속하지 못하므로 공통 Cluster에 둔다. `techlog`
|
||||
`DatabaseRole`·`Database`, `platform-data/techlog-db-credentials`와 tech-log용
|
||||
NetworkPolicy는 아직 어느 저장소에도 없다. 둘 곳은 소유자가 정한다
|
||||
(`docs/reviews/2026-11-11-k3s-maturity-review.md` 4절).
|
||||
`keycloak`이 `keycloak` Database에만 인증하도록 허용한 뒤 각 Role의 다른 모든
|
||||
Database 접근을 거부한다. 이 규칙들은 CloudNativePG의 기본 fallback 인증 규칙보다
|
||||
앞에 배치된다.
|
||||
|
||||
## Phase 1 Secret 계약
|
||||
|
||||
|
||||
@@ -24,8 +24,6 @@ spec:
|
||||
- host all gitea all reject
|
||||
- host keycloak keycloak all scram-sha-256
|
||||
- host all keycloak all reject
|
||||
- host techlog techlog all scram-sha-256
|
||||
- host all techlog all reject
|
||||
|
||||
storage:
|
||||
size: 20Gi
|
||||
|
||||
Reference in New Issue
Block a user