Repository navigation
Commit d8be462
Fix Keystone Memcached endpoints for TLS and IPv6
The [keystone_authtoken] section configured memcached independently of the
Memcached TLS status, which caused three problems:
- memcached_servers was always rendered from MemcachedServers (the TLS
listener list). For a non-TLS Memcached this used the wrong list and
dropped the inet/inet6 prefix needed for correct IPv6 formatting. It now
branches on .MemcachedTLS and uses MemcachedServersWithInet when base TLS
is disabled, mirroring the [cache] section.
- memcache_tls_enabled and the MTLS cert files were gated on MemcachedAuthCert
(MTLS presence) instead of .MemcachedTLS (base TLS). memcache_tls_enabled is
now emitted whenever Memcached runs with TLS, with the cert files nested
inside as an optional MTLS extra.
- A stray tls_enabled=true line (a [cache]-only oslo.cache option, not valid
in keystone_authtoken) was dropped.
Add functional tests covering the non-TLS keystone_authtoken output and the
MTLS server list selection.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 174022d commit d8be462
2 files changed
Lines changed: 34 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | | - | |
44 | | - | |
45 | | - | |
| 44 | + | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1207 | 1207 | | |
1208 | 1208 | | |
1209 | 1209 | | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
1210 | 1232 | | |
1211 | 1233 | | |
1212 | 1234 | | |
| |||
1304 | 1326 | | |
1305 | 1327 | | |
1306 | 1328 | | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
1307 | 1334 | | |
1308 | 1335 | | |
1309 | 1336 | | |
| |||
0 commit comments