Repository navigation
Commit f01ff35
fix(httpapi): percent-decode the secret name on DELETE /secrets/{name}
Secret names may contain any character but '}', so ${keyring:openai:prod}
is a valid reference. The Web UI builds the delete URL with
encodeURIComponent and chi routes on RawPath, so {name} arrived as
openai%3Aprod and the keyring delete targeted an entry that does not
exist, leaving the real secret in place. Decode it with decodePathParam
like the other path-param handlers.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent c82d515 commit f01ff35
2 files changed
Lines changed: 50 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5059 | 5059 | | |
5060 | 5060 | | |
5061 | 5061 | | |
5062 | | - | |
| 5062 | + | |
5063 | 5063 | | |
5064 | 5064 | | |
5065 | 5065 | | |
| |||
0 commit comments