Skip to content

Commit

Permalink
Decrease default opa query timeout to 1sec
Browse files Browse the repository at this point in the history
  • Loading branch information
roekatz committed Oct 30, 2023
1 parent 7dddb31 commit 35e4979
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions horizon/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ class SidecarConfig(Confi):

OPA_CLIENT_QUERY_TIMEOUT = confi.float(
"OPA_CLIENT_QUERY_TIMEOUT",
5 * 60, # This is also aiohttp's default timeout
description="the timeout for querying OPA for an allow decision, 0 means no timeout",
1, # aiohttp's default timeout is 5m, we want to be more aggressive
description="the timeout for querying OPA for an allow decision, in seconds. 0 means no timeout",
)

# internal OPA config
Expand Down

0 comments on commit 35e4979

Please sign in to comment.