Commit 083478b
authored
fix: cluster topology connect fails with NOAUTH when username is empty string (#252)
When connecting to a discovered cluster node via the Cluster Topology page,
credentials were silently dropped if username was an empty string (e.g. the
ElastiCache 'default' user).
The condition `primary.username && primary.password` short-circuits to false
when username is "", so neither username nor password was sent in the
connectPending payload, causing a NOAUTH error on the server side.
Fix: gate only on password presence and default username to empty string.
Also includes a Dockerfile fix to install ca-certificates for TLS connections.
Signed-off-by: Alexey Temnikov <attemnik@amazon.com>1 parent 2317a02 commit 083478b
File tree
2 files changed
+5
-2
lines changed- apps/frontend/src/components/cluster-topology
- docker
2 files changed
+5
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
| 46 | + | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| |||
0 commit comments