Commit 8f5e8eb
committed
server: fix SetAcceptSQLWithoutTLS for shared-process deployments
We expose `SetAcceptSQLWithoutTLS` method on the test servers which
allows us to tweak whether SQL clients can authenticate without TLS on
a secure cluster. Previously, this method was incorrect for
shared-process deployments, and this is now fixed. The notable
distinction between this mode and single-tenant and external-process
modes is that even though the shared-process tenant has its own copy of
`base.Config` (where `AcceptSQLWithoutTLS` is stored), it does _not_
have its own pre-serve handler. In other words, before the
authentication is performed, the connection is handled by the _system_
tenant, so for things to work we need to propagate the update of the
boolean to the system tenant.
Release note: None1 parent 7d8dc7e commit 8f5e8eb
File tree
4 files changed
+15
-6
lines changed- pkg
- server
- sql/pgwire
4 files changed
+15
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
241 | 245 | | |
242 | 246 | | |
243 | 247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1556 | 1556 | | |
1557 | 1557 | | |
1558 | 1558 | | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
1559 | 1564 | | |
1560 | 1565 | | |
1561 | 1566 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
860 | 860 | | |
861 | 861 | | |
862 | 862 | | |
863 | | - | |
864 | | - | |
865 | | - | |
866 | | - | |
867 | | - | |
868 | | - | |
869 | 863 | | |
870 | 864 | | |
871 | 865 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
175 | 181 | | |
176 | 182 | | |
177 | 183 | | |
| |||
0 commit comments