Skip to content

Commit

Permalink
Add configurable client timeout
Browse files Browse the repository at this point in the history
This is done for AA and PDP to be able to handle
timeouts before infrastructure limits are met.

#1777
  • Loading branch information
pablothedude committed Jan 29, 2025
1 parent 653faa4 commit e824cf7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/config/parameters.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ parameters:
api.users.deprovision.username: lifecycle
api.users.deprovision.password: secret

##########################################################################################
## CLIENT SETTINGS
##########################################################################################
## Currently this is used for the outgoing requests with the PDP and AA client
http_client.timeout: 10

##########################################################################################
## PDP SETTINGS
##########################################################################################
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ services:
# Verify CAs for certificates for prod, but not for other environments
# as we are working with self signed signatures
verify: "@=service('kernel').getEnvironment() === 'prod'"
timeout: "%http_client.timeout%"

engineblock.authentication.authentication_loop_guard:
class: OpenConext\EngineBlockBundle\Authentication\AuthenticationLoopGuard
Expand Down Expand Up @@ -255,6 +256,7 @@ services:
class: GuzzleHttp\Client
arguments:
- auth: ["%attribute_aggregation.username%", "%attribute_aggregation.password%", "Basic"]
timeout: "%http_client.timeout%"

engineblock.metadata.repository.cached_doctrine:
class: OpenConext\EngineBlock\Metadata\MetadataRepository\CachedDoctrineMetadataRepository
Expand Down

0 comments on commit e824cf7

Please sign in to comment.