Commit 35d9987
fix(sap-demo): default DB URL to 127.0.0.1 + sslmode=disable for keploy-friendly local dev
Spring Boot's default JDBC URL (jdbc:postgresql://localhost:5432/customer360)
resolves to ::1 on most Linux stacks and opts in to SSL negotiation. Both
break Keploy's eBPF proxy: the v6 connection is not hooked, and the SSL
negotiation fails with EOF during the enableSSL packet exchange under the
proxy's MITM.
Default now binds the v4 loopback and disables SSL so out-of-the-box
`keploy record` works without env overrides. Compose (`hostname: postgres`)
and the k8s manifests already supply SPRING_DATASOURCE_URL, so the change
is invisible to those flows.
Reproduction:
SPRING_DATASOURCE_URL unset, postgres on localhost → app boots but
keploy record sees no v4 traffic → no postgres mocks captured.
Root cause:
localhost → ::1 on Debian/Ubuntu; postgresql driver negotiates SSL by
default.
Fix:
127.0.0.1 + ?sslmode=disable as the built-in default; SPRING_DATASOURCE_URL
still overrides it.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent d8c9869 commit 35d9987
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
16 | 24 | | |
17 | 25 | | |
18 | 26 | | |
| |||
0 commit comments