Conversation
EmilienM
requested review from
a team,
derekwaynecarr,
mrunalp and
sjenning
as code owners
September 29, 2026 02:26
EmilienM
force-pushed
the
feat/3529-ha-peer-transport/EmilienM
branch
2 times, most recently
from
September 29, 2026 18:38
921abb6 to
0a11343
Compare
8 tasks done
6 tasks done
Signed-off-by: Emilien Macchi <emacchi@redhat.com>
Signed-off-by: Emilien Macchi <emacchi@redhat.com>
Signed-off-by: Emilien Macchi <emacchi@redhat.com>
…peer CA Signed-off-by: Emilien Macchi <emacchi@redhat.com>
Signed-off-by: Emilien Macchi <emacchi@redhat.com>
Signed-off-by: Emilien Macchi <emacchi@redhat.com>
Signed-off-by: Emilien Macchi <emacchi@redhat.com>
EmilienM
force-pushed
the
feat/3529-ha-peer-transport/EmilienM
branch
from
October 5, 2026 19:21
0a11343 to
11b8db9
Compare
2 of 8 tasks
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Gateway replicas on PostgreSQL relay sandbox sessions to each other, authenticated with a ServiceAccount token. Until now that traffic could go over plaintext with just a warning, or trust any platform root CA. This PR requires HTTPS with a pinned peer CA, and adds an HA e2e that runs real sandbox operations through a replica that doesn't own the session while the gateway scales, loses the owner pod, and rolls.
Related Issue #3529
Changes
https://and trust onlyOPENSHELL_PEER_TLS_CA_FILE, never platform roots. At startup the gateway checks the CA, the server name, and its own certificate. Plaintext peers needOPENSHELL_PEER_ALLOW_INSECURE_TRANSPORT=trueon a plaintext gateway, which then logs a warning on every start.server.disableTls=trueunlessserver.peer.allowInsecureTransport=trueis set, and always wires the peer CA when TLS is on.kubernetes_ha_operationse2e. One sandbox lives through scale-up, scale-down, graceful and forced owner loss, and a rolling restart. After each step, exec, file transfer, forwards, and policy and provider updates go through a non-owner replica. The newe2e:kubernetes:ha-tlslane runs it with HTTPS peers.Breaking (PostgreSQL only): releases with
server.disableTls=trueneedserver.peer.allowInsecureTransport=true, custom server TLS Secrets needca.crt, and non-chart HTTPS peers needOPENSHELL_PEER_TLS_CA_FILE. Upgrade steps are in the HA guide.Testing
test:e2e-kuberneteslabel.Checklist
architecture/)