Commit 7c9711f
BUG/MINOR: do not create a user in userlist with empty password for basic authentication
Using Ingress annotations:
- haproxy.org/auth-secret: <namespace>/<secret-name>
- haproxy.org/auth-type: basic-auth
If the secret contains a key with an empty value, Ingress controller was crashing.
In this case, we do not create the user with the empty password in the userlist.1 parent a60dc91 commit 7c9711f
2 files changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
82 | 87 | | |
83 | | - | |
84 | 88 | | |
85 | 89 | | |
86 | 90 | | |
| |||
0 commit comments