Skip to content

Commit

Permalink
fix(config): validate non zero poll duration for authz sources
Browse files Browse the repository at this point in the history
Signed-off-by: George MacRorie <[email protected]>
  • Loading branch information
GeorgeMac committed May 24, 2024
1 parent 0ed210a commit 07d77c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/config/authorization.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ func (a *AuthorizationSourceConfig) validate() (err error) {
return errors.New("local: path must be non-empty string")
}

if a.PollDuration <= 0 {
return errors.New("local: poll_duration must be non-zero")
}

return nil
}

Expand Down

0 comments on commit 07d77c0

Please sign in to comment.