From 44b3e9ac69d776250ebe38fe80ad72b6f1047d75 Mon Sep 17 00:00:00 2001 From: aevolution-gitops-bot Date: Mon, 5 Oct 2026 09:14:54 -0400 Subject: [PATCH] Revert "Prepare private pgpass in region init container" This reverts commit cd91dee95ae3d8971423f85b26e47394e30bf301. --- deploy/kubernetes/region/base/deployment.yaml | 20 ++++--------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/deploy/kubernetes/region/base/deployment.yaml b/deploy/kubernetes/region/base/deployment.yaml index f7fbe86..b8b345e 100644 --- a/deploy/kubernetes/region/base/deployment.yaml +++ b/deploy/kubernetes/region/base/deployment.yaml @@ -42,29 +42,17 @@ spec: fsGroup: 10001 fsGroupChangePolicy: Always seccompProfile: {type: RuntimeDefault} - initContainers: - - name: prepare-pgpass - image: aevolution-server - command: ["/bin/bash", "-c"] - args: ["set -eu; umask 077; cp /run/postgres/pgpass /tmp/pgpass; chmod 0600 /tmp/pgpass"] - securityContext: - runAsUser: 0 - runAsGroup: 0 - runAsNonRoot: false - allowPrivilegeEscalation: false - readOnlyRootFilesystem: true - capabilities: {drop: [ALL]} - volumeMounts: - - {name: connection, mountPath: /run/postgres, readOnly: true} - - {name: scratch, mountPath: /tmp} containers: - name: evo-server image: aevolution-server - # The init container copies pgpass to private memory, then exec so evo-server is PID 1 and receives SIGTERM directly. + # libpq ignores group-readable password files: copy to private memory, then + # exec so evo-server is PID 1 and receives SIGTERM directly. command: ["/bin/bash", "-c"] args: - | set -eu + umask 077 + cp /run/postgres/pgpass /tmp/pgpass # Builds that wrote this region's history stay recoverable (ADR-0068). retained=() for build in $REGION_RETAINED; do retained+=(--retained "$build"); done