File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed
pkg/apis/configuration/v1 Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -186,9 +186,14 @@ spec:
186186 jwt :
187187 properties :
188188 claim :
189+ pattern : ^([^$\s"'])*$
189190 type : string
190191 match :
192+ pattern : ^([^$\s."'])*$
191193 type : string
194+ required :
195+ - claim
196+ - match
192197 type : object
193198 type : object
194199 delay :
Original file line number Diff line number Diff line change @@ -348,9 +348,14 @@ spec:
348348 jwt :
349349 properties :
350350 claim :
351+ pattern : ^([^$\s"'])*$
351352 type : string
352353 match :
354+ pattern : ^([^$\s."'])*$
353355 type : string
356+ required :
357+ - claim
358+ - match
354359 type : object
355360 type : object
356361 delay :
Original file line number Diff line number Diff line change @@ -622,10 +622,10 @@ type RateLimitCondition struct {
622622
623623type JWTCondition struct {
624624 // +kubebuilder:validation:Required
625- // +kubebuilder:validation:Pattern=^([^$\s"'])*$
625+ // +kubebuilder:validation:Pattern=` ^([^$\s"'])*$`
626626 Claim string `json:"claim"`
627627 // +kubebuilder:validation:Required
628- // +kubebuilder:validation:Pattern=^([^$\s."'])*$
628+ // +kubebuilder:validation:Pattern=` ^([^$\s."'])*$`
629629 Match string `json:"match"`
630630}
631631
You can’t perform that action at this time.
0 commit comments