Skip to content

Commit

Permalink
✨add decoy.string in validator
Browse files Browse the repository at this point in the history
  • Loading branch information
TarradeMarc committed Nov 6, 2024
1 parent 4a15a26 commit c01265c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified proxy/wasm/cloud-active-defense.wasm
Binary file not shown.
4 changes: 2 additions & 2 deletions proxy/wasm/config_parser/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ func (v *validator) validateDecoy(decoy DecoyType) {
if decoy == EmptyDecoy() {
v.addError(v.currentPlace, "can not be empty")
}
if breaksRequired(decoy.Key) && breaksRequired(decoy.DynamicKey) {
v.addError(v.currentPlace+".key and dynamicKey", "can not both be empty ")
if breaksRequired(decoy.Key) && breaksRequired(decoy.DynamicKey) && breaksRequired(decoy.String) {
v.addError(v.currentPlace+".key, dynamicKey and string", "can not all be empty ")
}
if invalidRegex(decoy.DynamicKey) {
v.addError(v.currentPlace+".dynamicKey", "needs to be valid regex")
Expand Down

0 comments on commit c01265c

Please sign in to comment.