Commit 70b6a7c
fix: skip duplicate key-auth check for malformed credential JSON
Returning the unmarshal error would deny Consumers with malformed
inline credential config, and also deny new Consumers when any
existing Consumer has a malformed credential (because we'd fail while
reading the existing consumer's keys). Log at debug level and skip
the credential from duplicate detection instead, preserving the
original fail-open behaviour.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 58ce2fb commit 70b6a7c
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
235 | 239 | | |
236 | 240 | | |
237 | 241 | | |
| |||
0 commit comments