Skip to content

Commit

Permalink
1999 connectors connection test endpoints can clog up the whole server (
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsachs authored Dec 8, 2022
1 parent 4f4655c commit 5a180f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/fides/api/ops/api/v1/endpoints/connection_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def connection_status(
dependencies=[Security(verify_oauth_client, scopes=[CONNECTION_CREATE_OR_UPDATE])],
response_model=TestStatusMessage,
)
async def put_connection_config_secrets(
def put_connection_config_secrets(
connection_key: FidesOpsKey,
*,
db: Session = Depends(deps.get_db),
Expand Down Expand Up @@ -392,7 +392,7 @@ async def put_connection_config_secrets(
dependencies=[Security(verify_oauth_client, scopes=[CONNECTION_READ])],
response_model=TestStatusMessage,
)
async def test_connection_config_secrets(
def test_connection_config_secrets(
connection_key: FidesOpsKey,
*,
db: Session = Depends(deps.get_db),
Expand Down
2 changes: 1 addition & 1 deletion src/fides/api/ops/service/connectors/fides/fides_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def request_status(self, privacy_request_id: str = None) -> List[Dict[str, Any]]
if privacy_request_id
else None,
)
response = self.session.send(request)
response = self.session.send(request, timeout=5)
if not response.ok:
log.error(
f"Error retrieving status of privacy request [{privacy_request_id}] on remote Fides {self.uri}",
Expand Down

0 comments on commit 5a180f6

Please sign in to comment.