Skip to content

ENG-30396: TLS for the cluster and its clients, --ssl (milestone 42) - #41

Closed
jwiebema1 wants to merge 1 commit into
ENG-30396-sqlancer-m41from
ENG-30396-sqlancer-m42
Closed

jwiebema1 wants to merge 1 commit into
ENG-30396-sqlancer-m41from
ENG-30396-sqlancer-m42

Conversation

@jwiebema1

Copy link
Copy Markdown

Milestone 42 of ENG-30396 (tracked in ENG-30581, epic ENG-30580 "SQL Housekeeping"). Stacked on #40; review that and the PRs below it first.

Why

Milestone 41's coverage run found the server's TLS setup (SslSetup, 18 of 348 lines) and its encrypted network paths (TLSPicoNetwork, TLSDecryptionAdapter) never run.

What it changes

  • run-sqlancer.sh --ssl.
    • It makes a self-signed certificate for localhost with keytool: a keystore and a truststore in the cluster's tls/, password sqlancer.
    • It deploys <ssl enabled external internal> with them, so the client and admin ports, and the nodes' connections to each other, use TLS.
  • Clients.
    • SQLancer, and PERMS's users, connect through the JDBC driver with ssl=true and the truststore (--ssl-truststore).
    • sqlcmd gets an --ssl file, and voltadmin --ssl=nocheck.
    • The mirror and the JDBC sink run without TLS and are reached in the clear.
  • Not with --xdcr.
  • Nightly job. The security run uses it (VoltDB/pro, below).

Bugs found

None.

Testing

  • Local trials:
    • 1 node with security, 4 minutes, beside 15 other oracles: PERMS checked 53 statements and IMPORT 577 lines.
    • 3 nodes, k=1, a node killed every minute, 5 minutes: every rejoin over TLS 1.3 passed ("Socket Joiner ... TLS/SSL enabled on internal connection").
  • mvn verify passes.
  • Lab: builds Add random seed to log sqlancer/sqlancer#56 and Log the random seed value sqlancer/sqlancer#57 of matrix-systemtest-apprunner-sqlancer (branch job ENG-30396-sqlancer-nightly, replays with these settings). They ran 16.1.0-SNAPSHOT (master kit 400) beside one node of 16.0.0, 45 minutes per run, with all thirty-one oracles.
    • Build Add random seed to log sqlancer/sqlancer#56 ran fork 585fbb8, milestones 34 to 43 before the last fix.
      • Reproductions: 84 still broken. ENG-30611 reports fixed, and the ticket is closed as fixed in V16.1.0.
      • Kill (3 nodes, k=1, a kill every 300 s): 8 kills, 8 rejoins.
      • Security (1 node, over TLS): PERMS checked 153 allowed and 174 refused statements; TASK made 286 checks.
      • Export with a kill every 300 s (3 nodes, k=2): all 4,617 rows exported, 1,240 through HTTP and 1,120 through JDBC (one twice).
      • Resize every 120 s: 10 grows, 9 shrinks.
      • XDCR: 340 XCONFLICT checks and 115 databases compared after convergence. 24 differing keys had no divergence logged; that is ENG-30679, counted rather than failed.
      • Crash every 600 s: 4 crashes, 4 recoveries.
      • Upgrade from 16.0.0 failed. A node being stopped for its upgrade refused DDL. The next fork commit handles this; see milestone 43.
    • Build Log the random seed value sqlancer/sqlancer#57 ran the upgrade run alone on fork e0cadfe, the head: 3 of 3 nodes upgraded, 414 TASK checks, 612 STATS calls and 15,923 primary key indexes checked.
    • Earlier builds: ENG-30789: the SQLCMD oracle: queries through sqlcmd as well as JDBC (milestone 58) #53 to Bump maven-surefire-plugin from 2.19.1 to 2.22.2 sqlancer/sqlancer#55 ran earlier heads of this stack. Their failures led to ENG-30682, ENG-30683, the ENG-30679 changes, the run-repros.sh port wait and TASK's timing fix.

run-sqlancer.sh --ssl makes a self-signed certificate for localhost (keytool)
and deploys <ssl enabled external internal> with it, so the client, admin and
internal connections use TLS; SQLancer (and PERMS's users) connect with ssl=true
and the truststore (--ssl-truststore), sqlcmd with an --ssl file, voltadmin
with --ssl=nocheck; the mirror and the JDBC sink stay in the clear. Not with
--xdcr. Milestone 41's coverage run found SslSetup and the TLS network paths
never run.
@jwiebema1

Copy link
Copy Markdown
Author

Superseded by #51, which combines every ENG-30396 PR of this repo into one. This PR's branch is kept, and its description still has this milestone's details and lab results.

@jwiebema1 jwiebema1 closed this Nov 18, 2026
@jwiebema1
jwiebema1 deleted the ENG-30396-sqlancer-m42 branch November 25, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant