Commit 06efa8c
committed
fix: relax jwtAuth private_key requirement and add CEL validation
Previously, private_key was marked as required in the CRD schema, which
rejected symmetric JWT configurations (e.g. HS256 + secret) before they
reached the translator.
Changes:
- Add omitempty to PrivateKey JSON tag so the CRD schema no longer
requires it unconditionally
- Add CEL validation rule: asymmetric algorithms (RS*/ES*/PS*/EdDSA)
require at least one of public_key or private_key; symmetric algorithms
(HS256/HS384/HS512 or unset) have no key requirement
- Regenerate CRD manifest
Fixes #4001 parent b02e842 commit 06efa8c
2 files changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
133 | 138 | | |
134 | 139 | | |
135 | 140 | | |
| |||
138 | 143 | | |
139 | 144 | | |
140 | 145 | | |
141 | | - | |
| 146 | + | |
142 | 147 | | |
143 | 148 | | |
144 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
214 | 213 | | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
215 | 220 | | |
216 | 221 | | |
217 | 222 | | |
| |||
0 commit comments