Skip to content

Commit

Permalink
VA: Check that maxRemoteValidationFailures is non-negative (#7150)
Browse files Browse the repository at this point in the history
Prevents a panic when the VA config field `maxRemoteValidationFailures`
is set to a negative number by adding validation tags
 
Fixes #7149
  • Loading branch information
pgporada committed Nov 15, 2023
1 parent f57bd30 commit 104c393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/boulder-va/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type Config struct {
DNSAllowLoopbackAddresses bool

RemoteVAs []cmd.GRPCClientConfig `validate:"omitempty,dive"`
MaxRemoteValidationFailures int
MaxRemoteValidationFailures int `validate:"omitempty,min=0,required_with=RemoteVAs"`

Features map[string]bool

Expand Down

0 comments on commit 104c393

Please sign in to comment.